joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464875
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46498d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46498d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00498b09
mov esi, eax
test esi, esi
je 0x46498d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46498d
mov ecx, esi
call fcn.004647e0
cmp edi, eax
jge 0x46498d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x464913
mov dword [esp + 0x34], 1
jmp 0x46496e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46498d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00462fe0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x497e95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004a2047
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x497ec6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00497ed9
pop edi
pop esi
pop ebx
ret 8

Function at 0x4994ad
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4994e5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004974f6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004974ce
jmp 0x4994f1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x49ad9d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49addf
call fcn.004a2047
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49addf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49add6
xor eax, eax
jmp 0x49ade7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049aded
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a2577
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a25a5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a25c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a24dd
jmp 0x4a25c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a25c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a24dd
test edi, edi
mov eax, edi
jne 0x4a25ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42f418
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.0047dac0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, str.Kernel32
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleW
sub esp, 4
mov dword [ebp - 0x18], eax
mov eax, 0x6cf920
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateRemoteThread
sub esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x42f4c7
mov dword [ebp - 0xc], 0
jmp 0x42f517
nop
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
sub esp, 8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetExitCodeThread
sub esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
nop
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x42f69d
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.0047dac0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.0047df30
sub esp, 8
mov ecx, 0
mov eax, 0x1c
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x48], ecx
add eax, 4
cmp eax, edx
jb 0x42f6d8
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [esp + 8], 0xf003f
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.ADVAPI32.dll_OpenSCManagerW
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x42f796
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0xf01ff
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.dll_OpenServiceW
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42f77c
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.dll_QueryServiceStatus
sub esp, 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.ADVAPI32.dll_CloseServiceHandle
sub esp, 4
mov dword [ebp - 0x28], eax
jmp 0x42f77d
nop
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.ADVAPI32.dll_CloseServiceHandle
sub esp, 4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
jmp 0x42f79e
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047de50
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x430264
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0xc], 0
call fcn.0047dac0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp + 0xc]
mov dword [esp], eax
call fcn.0047df30
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp + 0x10]
mov dword [esp], eax
call fcn.0047df30
sub esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCreateKeyExW
sub esp, 0x24
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x43035a
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.ADVAPI32.dll_RegSetValueExW
sub esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sub.ADVAPI32.dll_RegCloseKey
sub esp, 4
mov dword [ebp - 0x20], eax
jmp 0x43035b
nop
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.0047de50
sub esp, 4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0047de50
sub esp, 4
mov eax, dword [ebp - 0xc]
leave
ret 0x18
Function at 0x44027a
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x440312
push edi
push 0x6d8840
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x6d7640]
test edi, edi
je 0x4402e6
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4402df
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x6d7640
call fcn.0047d4f6
pop ecx
pop ecx
jmp 0x4402e1
mov edi, dword [edi]
test edi, edi
jne 0x4402b6
pop ebx
mov eax, dword [0x6d3dc4]
mov esi, eax
inc eax
push 0x10
push 0x6d7640
mov dword [0x6d3dc4], eax
call fcn.0047d536
pop ecx
pop ecx
push 0x6d8840
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x4404e7
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.0044038b
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x6d8840
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x6d7640]
jmp 0x440518
cmp dword [esi + 0xc], edi
je 0x44051e
mov esi, dword [esi]
test esi, esi
jne 0x440511
jmp 0x440536
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x6d7640
call fcn.0047d4f6
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x440a87
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
push dword [0x6d7648]
xor ebp, ebp
mov edi, ebp
mov dword [esp + 0x18], ebp
call fcn.0047cdc7
mov esi, eax
test esi, esi
je 0x440c1c
mov ecx, dword [esi]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x14], ebp
je 0x440b31
push ebx
call fcn.00440df7
jmp 0x440ac9
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], 0
jne 0x440ac1
push dword [esi + 0x14]
call fcn.00441201
mov eax, dword [esp + 0x1c]
push ebp
push esi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x20], eax
call fcn.00440a12
pop ecx
pop ecx
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
push 0x440c36
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x440b0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0xffffffff
je 0x440b1f
push dword [esp + 0x20]
push ebx
call fcn.00440ecb
mov eax, dword [esi]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [esi]
push 1
jmp 0x440bd1
test byte [esp + 0x1c], 1
je 0x440b40
mov dword [esp + 0x10], 1
test byte [esp + 0x1c], 2
je 0x440bdb
push esi
call fcn.004409a9
lea eax, [esi + 4]
push 0x10
push eax
call fcn.0047d536
pop ecx
pop ecx
mov ecx, dword [0x6d7664]
mov edi, eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x1c]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x14]
test eax, eax
jne 0x440c1c
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov eax, dword [esp + 0x10]
mov byte [edi + 5], al
mov byte [edi + 4], 1
mov eax, dword [esp + 0x18]
push dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x18]
push dword [esi + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
cmp dword [esp + 0x20], 0xffffffff
je 0x440bbc
push edi
push dword [esp + 0x24]
push ebx
call fcn.00440e2b
jmp 0x440bc9
mov eax, dword [esp + 0x18]
push dword [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 0x18]
push dword [esp + 0x10]
mov ecx, dword [eax]
push ebp
push ebp
push eax
call dword [ecx + 0x30]
jmp 0x440c1c
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
mov eax, dword [esp + 0x18]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
cmp dword [esp + 0x20], 0xffffffff
je 0x440bfd
push dword [esp + 0x20]
push ebx
call fcn.00440ecb
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
push ebx
push ebp
mov ecx, dword [eax]
push ebp
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x440c1c
xor edi, edi
mov byte [esi + 0x1c], 1
inc edi
mov byte [esi + 0x1e], bl
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4418f1
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x441946
push dword [esp + 0x10]
push 0x441870
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x6d76ac]
test esi, esi
je 0x44199f
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x44193e
cmp byte [esi + 0x10], 0
je 0x44193e
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x44191a
jmp 0x44199f
mov esi, dword [0x6d76ac]
test esi, esi
je 0x44199f
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x441998
cmp byte [esi + 0x11], 0
je 0x441974
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x44198b
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x6d76ac
call fcn.0047d4f6
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x441953
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x45c3b5
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x6d8bb8]
call fcn.0047cc56
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x45c4b5
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x45c40b
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x45c403
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x45c44b
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x45c48d
push 0x22
pop edx
cmp cx, dx
je 0x45c43d
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x45c42d
xor ecx, ecx
cmp word [eax], cx
je 0x45c48d
mov ecx, eax
add eax, 2
jmp 0x45c48f
test dx, dx
je 0x45c495
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x45c43d
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x45c483
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x45c48d
cmp cx, dx
je 0x45c480
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x45c470
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x45c455
jmp 0x45c43d
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x45c497
xor edx, edx
cmp dword [ebp], ebx
jne 0x45c4a0
test edi, edi
jne 0x45c4bd
test edx, edx
je 0x45c4a5
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x45c3f9
test edi, edi
jne 0x45c4ce
mov eax, ebx
jmp 0x45c4d2
test esi, esi
je 0x45c4ce
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x45c4d2
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x45c53b
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebx, eax
cmp dword [esp + 0x24], 0x18
je 0x45c5ea
cmp dword [esp + 0x24], 2
je 0x45c5ea
push 0x2000
push edi
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x45c5bd
cmp dword [esp + 0x18], 2
jne 0x45c5d5
test ebx, ebx
jne 0x45c5a6
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x45c5d5
cmp ax, 0xd
je 0x45c5bd
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x45c57d
push dword [esp + 0x28]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0049b7c0
jmp 0x45c670
push eax
push 0
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
jmp 0x45c63c
cmp dword [esp + 0x18], 1
jne 0x45c654
test ebx, ebx
jne 0x45c62b
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x45c654
cmp al, 0xd
je 0x45c63c
mov byte [esi + edi], al
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call ebp
test eax, eax
jne 0x45c603
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x28]
mov byte [esi + edi], 0
push esi
jne 0x45c66b
call fcn.0049b810
jmp 0x45c670
call fcn.0049b760
push esi
push 0
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x45d825
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x45d774
push 0x10
push 0x2c
call fcn.0047ce9a
push 0
push 0
push 8
mov dword [0x6d76c8], eax
call fcn.0047ccc1
cmp word [0x6d76c0], 0
mov dword [0x6d8bc8], eax
jne 0x45d90a
push edi
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
inc edi
test eax, eax
jne 0x45d87d
mov word [0x6d76c0], di
jmp 0x45d885
xor eax, eax
mov word [0x6d76c0], ax
push str.ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6d76dc], eax
test eax, eax
je 0x45d909
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x6d76dc]
mov dword [0x6d76cc], eax
call esi
push str.getnameinfo
push dword [0x6d76dc]
mov dword [0x6d76d0], eax
call esi
push str.WSAStringToAddressA
push dword [0x6d76dc]
mov dword [0x6d76d4], eax
call esi
cmp dword [0x6d76cc], 0
mov dword [0x6d76d8], eax
pop esi
je 0x45d909
cmp dword [0x6d76d0], 0
je 0x45d909
cmp dword [0x6d76d4], 0
je 0x45d909
test eax, eax
je 0x45d909
mov dword [0x6d76c4], edi
pop edi
add esp, 0x190
ret
Function at 0x460ec2
Capabilities:
Hide graphical window

Disassembly:
push ebx
push ebp
push esi
push dword [0x6d8be4]
call fcn.0047cc56
xor ebx, ebx
mov ebp, eax
cmp dword [0x6d7cc0], ebx
jne 0x460f56
mov esi, 0xa4
push esi
push ebx
push 0x6d7cc8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x6d7ccc], esi
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x6d7cc8], 0xa
mov dword [0x6d7cd0], 0x460a57
push 0x7f89
push ebx
mov dword [0x6d7d40], 0x46486d
mov dword [0x6d7d44], 0x464847
mov dword [0x6d7cd4], 0x460a76
mov dword [0x6d7d58], 0x460a96
call esi
mov dword [0x6d7cc0], eax
test eax, eax
jne 0x460f56
push 0x7f00
push ebx
call esi
mov dword [0x6d7cc0], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0046a332
push ebx
push dword [0x6d6de8]
push 0xffffffffffffffff
push dword [ebp]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0x40000000
push dword [esp + 0x48]
push str.STATIC
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x461022
push edi
push dword [esp + 0x14]
push dword [0x6d881c]
call fcn.0047ce06
mov edi, eax
push 8
or dword [edi + 0x10], 0xffffffff
call dword [sym.imp.USER32.dll_GetSysColor]
push 0x14
push 0
mov dword [edi + 0x14], eax
push dword [0x6d6de4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x6d7cc8
push ebx
push edi
push dword [esp + 0x20]
mov dword [esi], ecx
mov ecx, dword [esp + 0x40]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0xc], ecx
mov byte [esi + 0x10], 0
mov dword [edi + 0x1c], esi
call fcn.00464734
push 0x460b7c
push 0xfffffffffffffffc
push dword [edi]
mov ebx, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0x20

Function at 0x462915
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x6d881c]
call fcn.0047cdc7
mov ebx, eax
test ebx, ebx
je 0x462979
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x46293e
push dword [esp + 0xc]
push ebx
call eax
jmp 0x462979
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0047e090
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0047e410
pop edi
pop esi
pop ebx
ret 8

Function at 0x46300e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x463028
inc esi
push 2
call edi
test bx, ax
je 0x463034
or esi, 2
push 4
call edi
test bx, ax
je 0x463040
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret