joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474bb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040b244
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0046ec8c
test ebx, ebx
jne 0x474c03
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00474a2c
mov ebx, eax
test ebx, ebx
je 0x474cf9
cmp esi, ebx
je 0x474c2c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x474c41
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x474c79
add eax, 0xffffff5f
sub eax, 2
jb 0x474c91
dec eax
sub eax, 2
jb 0x474ca5
dec eax
sub eax, 2
jb 0x474c9b
jmp 0x474caf
add eax, 0xfffffdff
sub eax, 2
jb 0x474c91
dec eax
sub eax, 2
jb 0x474ca5
dec eax
sub eax, 2
jb 0x474c9b
jmp 0x474caf
mov byte [esp + 0x120], 0
jmp 0x474cb7
mov byte [esp + 0x120], 2
jmp 0x474cb7
mov byte [esp + 0x120], 1
jmp 0x474cb7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.004a0ce0
mov esi, eax
call fcn.0046b5d8
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00470638
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x474cfb
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406eb8
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x48b88d
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00407be8
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x490e3c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x490f75
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x44c7dc]
call fcn.0044d918
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x490f4b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0044da00
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00407be8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x490f90
call fcn.00407d98
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0044dc7c
test al, al
je 0x490f35
lea ecx, [ebp - 4]
mov edx, 0x491004
mov eax, dword [ebp - 0xc]
call fcn.0044e4c4
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00424230
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x490f2e
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x49101c
mov eax, dword [ebp - 8]
push eax
call fcn.0040c1f4
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x52f830]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490f35
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490f52
mov eax, dword [ebp - 0xc]
call fcn.00405464
ret

Function at 0x491080
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4910c7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4910aa
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4910bb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4910c7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x4a07e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
mov edi, eax
test bl, bl
je 0x4a0809
test edi, 0x40000
je 0x4a0823
test bl, bl
jne 0x4a08a4
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4a08a4
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x4a0856
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x4a086b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x4a087a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4a088b
cmp byte [esp + 2], 0
je 0x4a08a4
cmp byte [esp + 2], 0
je 0x4a089c
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x4a08a4
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4a0b50
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x4a0b76
mov eax, esp
push eax
push 0x4a0b18
call sub.user32.dll_EnumWindows
jmp 0x4a0b89
mov eax, esp
push eax
push 0x4a0af8
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4a0c4c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4a0c9c]
test bl, 4
je 0x4a0c60
or si, 1
test bl, 8
je 0x4a0c69
or si, 4
test bl, 1
je 0x4a0c72
or si, 8
test bl, 2
je 0x4a0c7b
or si, 0x10
test bl, 0x10
je 0x4a0c84
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a0c94
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4a0ca0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4a0cdc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a0cbb
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4a0ccb
or bx, 4
test esi, 0x20000000
je 0x4a0cd7
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4a97d4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a97e6
add esp, 0xfffffff0
call fcn.0040597c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00448a8c
mov eax, dword [0x530d6c]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a9c10
mov eax, dword [0x530d78]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a9c1c
mov eax, ebx
call fcn.004a9c28
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x43108c]
call fcn.00405434
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x43108c]
call fcn.00405434
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x43108c]
call fcn.00405434
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x43108c]
call fcn.00405434
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x43108c]
call fcn.00405434
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, 0x4a464c
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x45009c]
call fcn.00455330
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x45009c]
call fcn.00455330
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x45009c]
call fcn.00455330
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x45009c]
call fcn.00455330
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x45009c]
call fcn.00455330
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004aa180
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9ff0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9ff0
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9ff0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9ff0
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a9ff0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a995d
call fcn.004059d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a9d90
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 0x4a9f3b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4a9f1c
mov dl, 1
mov eax, dword [0x433868]
call fcn.00440284
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00406eb8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a9f0b
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.0047e224
test al, al
je 0x4a9efe
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, 0x4a9f4c
lea eax, [ebp - 0x394]
call fcn.0041e088
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a9efe
xor eax, eax
push ebp
push 0x4a9ef7
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 0x4a9fbc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a9ee0
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407be8
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 0x4a9ee0
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a9efe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a9e01
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.004401c0
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 0x4a9f42
lea eax, [ebp - 0x3a0]
call fcn.00406eb8
ret

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

Disassembly:
push ecx
mov eax, dword [0x5372ac]
cmp byte [eax + 0xad], 0
jne 0x4aab0a
cmp dword [0x5372c4], 0
jne 0x4aaaca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x52fe30]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5372c4], eax
cmp dword [0x5372c0], 0
jne 0x4aaae5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5372c0], eax
cmp dword [0x5372c8], 0
jne 0x4aab0a
push esp
push 0
push 0
mov eax, dword [0x52fe2c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5372c8], eax
pop edx
ret
Function at 0x4aae20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4aae37
add esp, 0xfffffff0
call fcn.0040597c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00448a8c
mov eax, dword [0x530ca0]
cmp byte [eax], 0
jne 0x4aae64
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x530f10]
cmp word [eax + 2], 0
jne 0x4aae7e
mov eax, dword [0x530f10]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004acee8
mov eax, dword [0x530fec]
cmp word [eax + 2], 0
jne 0x4aae98
mov eax, dword [0x530fec]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004ad0ec
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x45009c]
call fcn.00455330
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4ad664
mov dl, 1
mov eax, dword [0x43108c]
call fcn.00405434
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x43108c]
call fcn.00405434
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 [0x453994]
call fcn.0045c178
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4ab078
mov eax, dword [0x530df0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045c60c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4ad94c
mov dl, 1
mov eax, dword [0x43108c]
call fcn.00405434
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x530df0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041de84
test eax, eax
je 0x4aafa9
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041dbdc
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041de68
test eax, eax
je 0x4aafc1
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.00407be8
push ebx
push 0x4ac8d4
call fcn.004a0c30
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x530ca0]
cmp byte [eax], 0
jne 0x4ab012
mov eax, ebx
call fcn.004ab1ec
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.004adb78
mov eax, ebx
call fcn.004ae7a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4ab06f
call fcn.004059d4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ab4b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4ab55a
cmp dword [ebx + 0x94], 0
jne 0x4ab554
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4ab404
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4ab554
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 0x4ab51a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4ab554
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.0043c764
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4ab529
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5372ac]
cmp dword [eax + 0x170], 0
je 0x4ab8dd
test bl, bl
jne 0x4ab82b
cmp dword [esi + 0x9c], 0
jne 0x4ab820
mov eax, esi
call fcn.004ae5f8
push eax
push 0x4ab684
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4ab7f1
mov eax, dword [0x5372ac]
cmp byte [eax + 0xd3], 0
je 0x4ab7f1
mov eax, dword [esi + 0xd8]
call fcn.00408c6c
mov edi, eax
cmp edi, 0
jl 0x4ab7f1
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 0x4ab7da
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ab820
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043c764
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ab800
inc dword [esi + 0x9c]
jmp 0x4ab8dd
cmp dword [esi + 0x9c], 0
jle 0x4ab8dd
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4ab8dd
cmp dword [esi + 0x44], 0
je 0x4ab888
mov eax, dword [0x5372ac]
cmp byte [eax + 0xd3], 0
je 0x4ab888
mov eax, dword [esi + 0xd8]
call fcn.00408c6c
mov edi, eax
cmp edi, 0
jl 0x4ab888
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 0x4ab871
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4ab8b7
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043c764
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4ab897
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 [0x49eb08]
call fcn.00408e2c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4ac520
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 0x4ac58b
cmp byte [ebx + 0xd3], 0
jne 0x4ac58b
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.00407020
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4ac578
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ac598
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00407278
jmp 0x4ac598
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00407278
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4add60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4addce
mov eax, esi
call fcn.004783b8
test al, al
je 0x4addce
mov eax, dword [ebx + 0x84]
call fcn.00478038
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4addce
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4addc2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00478038
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0046f06c
jmp 0x4addce
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004adb98
pop esi
pop ebx
ret

Function at 0x4dba24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20e]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x20e]
call fcn.0041df84
mov esp, ebp
pop ebp
ret

Function at 0x4dba90
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004dba54
test al, al
je 0x4dbb17
mov eax, dword [ebp - 4]
call fcn.00407b34
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
jne 0x4dbb0f
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00407b34
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4dbb06
test byte [ebp - 0xb], 4
je 0x4dbb06
test byte [ebp - 0xc], 0x10
je 0x4dbb06
mov eax, dword [ebp - 4]
call fcn.00407b34
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 6], al
jmp 0x4dbb0f
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetLastError
mov al, byte [ebp - 6]
mov byte [ebp - 5], al
jmp 0x4dbb1b
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x50d980
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x50da09
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x537450
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x50d9f3
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00420df0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x50da24
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x53106c]
mov dl, 1
mov eax, dword [0x50b2a0]
call fcn.00421f2c
call fcn.004065bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50da10
lea eax, [ebp - 0x1c]
call fcn.00406eb8
ret

Function at 0x50e16c
Capabilities:
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, eax
xor esi, esi
xor edi, edi
movzx eax, byte [0x50e1c8]
cmp al, byte [ebx + 0x28]
je 0x50e190
mov esi, 0x401
mov eax, ebx
call fcn.0050e2d8
mov edi, eax
movzx eax, byte [ebx + 0x28]
push eax
push esi
push edi
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
movzx eax, byte [0x50e1c8]
cmp al, byte [ebx + 0x28]
jne 0x50e1c0
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_ioctlsocket
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x50e260
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0050e16c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004056ec
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x50e2c8
call fcn.0050d8c8
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x50e2b6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004056ec
pop esi
pop ebx
ret

Function at 0x50e750
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x50e7dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
mov edx, ebx
mov ecx, 0
call fcn.00407940
mov eax, dword [ebp - 0xc]
call fcn.00407824
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.00404c50
test ebx, ebx
je 0x50e7c0
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
movzx ecx, byte [edx]
mov byte [ebp - 8], cl
movzx ecx, byte [edx + 1]
mov byte [ebp - 7], cl
movzx ecx, byte [edx + 2]
mov byte [ebp - 6], cl
movzx eax, byte [edx + 3]
mov byte [ebp - 5], al
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e7e3
lea eax, [ebp - 0xc]
call fcn.00406edc
ret