joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100612f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006b768]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.10051b98
mov dword [ebp - 0x14], eax
cmp dword [0x10658720], esi
jne 0x100613e8
push 0x800
push esi
push 0x1000988c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10061375
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100614c8
push esi
push esi
push 0x1000988c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x100614c8
push 0x100098a4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100614c8
push eax
call ebx
push 0x100098b0
push edi
mov dword [0x10658720], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100098c0
push edi
mov dword [0x10658724], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100098d4
push edi
mov dword [0x10658728], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10658730], eax
test eax, eax
je 0x100613e5
push 0x100098f0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065872c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006140d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10061400
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x10061422
push 4
pop eax
jmp 0x100614ca
cmp dword [ebp - 0x14], esi
je 0x10061422
push dword [0x10658720]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10061407
mov eax, dword [0x1065872c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x10061480
cmp dword [0x10658730], edi
je 0x10061480
push eax
call ebx
push dword [0x10658730]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10061480
test eax, eax
je 0x10061480
call ecx
test eax, eax
je 0x10061475
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10061475
test byte [ebp - 8], 1
jne 0x10061480
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x100614b0
mov eax, dword [0x10658724]
cmp eax, edi
je 0x100614ad
push eax
call ebx
test eax, eax
je 0x100614ad
call eax
mov esi, eax
test esi, esi
je 0x100614ad
mov eax, dword [0x10658728]
cmp eax, edi
je 0x100614ad
push eax
call ebx
test eax, eax
je 0x100614ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10658720]
call ebx
test eax, eax
je 0x100614c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x100614ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004f15b
mov esp, ebp
pop ebp
ret
Function at 0x401cbc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
push ebp
push 0x401d84
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x54a5cc
call sub.KERNEL32.DLL_WriteFile
cmp byte [0x54a04d], 0
je 0x401ceb
push 0x54a5cc
call sub.KERNEL32.DLL_WritePrivateProfileStringA
mov eax, 0x54a5ec
call fcn.00401538
mov eax, 0x54a5fc
call fcn.00401538
mov eax, 0x54a628
call fcn.00401538
push 0xff8
push 0
call sub.KERNEL32.DLL_VirtualProtect
mov dword [0x54a624], eax
cmp dword [0x54a624], 0
je 0x401d63
mov eax, 3
mov edx, dword [0x54a624]
xor ecx, ecx
mov dword [edx + eax*4 - 0xc], ecx
inc eax
cmp eax, 0x401
jne 0x401d28
mov dword [ebp - 4], 0x54a60c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov dword [0x54a618], eax
mov byte [0x54a5c4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401d8b
cmp byte [0x54a04d], 0
je 0x401d83
push 0x54a5cc
call sub.KERNEL32.DLL_lstrcpyA
ret

Function at 0x4036b4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x543008], 0x8088405
inc edx
mov dword [ebx + 0x543008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404c28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, 0x54a638
mov esi, 0x54a048
cmp byte [ebx + 0x28], 0
jne 0x404c53
cmp dword [esi], 0
je 0x404c53
mov eax, dword [esi]
mov dword [esp], eax
xor eax, eax
mov dword [esi], eax
call dword [esp]
cmp dword [esi], 0
jne 0x404c42
cmp dword [0x543004], 0
je 0x404c6d
call fcn.00404b10
call fcn.00404b9c
xor eax, eax
mov dword [0x543004], eax
cmp byte [ebx + 0x28], 2
jne 0x404c81
cmp dword [section.DATA], 0
jne 0x404c81
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00404964
cmp byte [ebx + 0x28], 1
jbe 0x404c95
cmp dword [section.DATA], 0
je 0x404cb8
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x404cb8
mov eax, edi
call fcn.00406b38
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebp + 0x10]
cmp esi, dword [ebp + 4]
je 0x404cb8
test esi, esi
je 0x404cb8
push esi
call sub.KERNEL32.DLL_MulDiv
call fcn.0040493c
cmp byte [ebx + 0x28], 1
jne 0x404cc6
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x404cd1
call fcn.00404b6c
cmp dword [ebx], 0
jne 0x404cf0
cmp dword [0x54a028], 0
je 0x404ce5
call dword [0x54a028]
mov eax, dword [section.DATA]
push eax
call sub.KERNEL32.DLL_LockResource
mov eax, dword [ebx]
mov esi, eax
mov edi, ebx
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
jmp 0x404c6d
Function at 0x4065b8
Capabilities:
Move file
Resume thread
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda4
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x40676c
call sub.KERNEL32.DLL_ResetEvent
mov esi, eax
test esi, esi
je 0x406624
push 0x40677c
push esi
call sub.KERNEL32.DLL_ResumeThread
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x406624
push 0x105
lea eax, [ebp - 0x25b]
push eax
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x406624
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x25b]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
jmp 0x406760
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x40666d
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x5c
jne 0x406760
mov eax, dword [ebp - 4]
add eax, 2
call fcn.0040658c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
je 0x406760
mov eax, dword [ebp - 0x10]
inc eax
call fcn.0040658c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
je 0x406760
jmp 0x406676
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
sub ebx, dword [ebp - 4]
lea eax, [ebx + 1]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x25b]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
jmp 0x406740
mov eax, dword [ebp - 0x10]
inc eax
call fcn.0040658c
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
sub edi, dword [ebp - 0x10]
mov eax, edi
add eax, ebx
inc eax
cmp eax, 0x105
jg 0x406760
inc edi
push edi
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x25b]
add eax, ebx
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
lea eax, [ebp - 0x156]
push eax
lea eax, [ebp - 0x25b]
push eax
call sub.KERNEL32.DLL_MoveFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x406760
push esi
call sub.KERNEL32.DLL_MapViewOfFile
lea eax, [ebp - 0x12a]
push eax
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebx + 1]
add eax, edx
inc eax
cmp eax, 0x105
jg 0x406760
mov byte [ebp + ebx - 0x25b], 0x5c
mov eax, 0x105
sub eax, ebx
dec eax
push eax
lea eax, [ebp - 0x12a]
push eax
lea eax, [ebp - 0x25b]
add eax, ebx
inc eax
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
lea eax, [ebp - 0x12a]
push eax
call sub.KERNEL32.DLL_SetFilePointer
inc eax
add ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x406695
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x25b]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4070f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40715a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_ReadFile
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00405034
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004036d0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407144
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407161
lea eax, [ebp - 0x10]
call fcn.00404dc4
ret

Function at 0x40aff8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
call fcn.004052a0
push eax
call sub.user32.dll_EnumWindows
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40e22c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
push 0x100
lea eax, [ebp - 0x10c]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0x3200
call sub.user32.dll_GetKeyboardLayout
mov dword [ebp - 0xc], eax
jmp 0x40e263
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jle 0x40e27b
mov eax, dword [ebp - 0xc]
mov al, byte [ebp + eax - 0x10d]
sub al, 0x21
jb 0x40e260
sub al, 0xd
je 0x40e260
lea edx, [ebp - 0x10c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.00404eb4
mov esp, ebp
pop ebp
ret

Function at 0x40e578
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40e624
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
call sub.user32.dll_IsChild
mov ecx, 0x40e638
mov edx, 0x100b
call fcn.0040e290
mov eax, dword [ebp - 0xc]
mov edx, 1
call fcn.0040a29c
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 0xfffffffd
sub eax, 3
jae 0x40e60e
push 4
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_IsChild
push eax
push 0x40e4a0
call sub.user32.dll_GetClipboardData
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x54a768], 0xffffffff
inc dword [ebp - 4]
cmp dword [ebp - 4], 8
jne 0x40e5e1
push 3
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_IsChild
push eax
push 0x40e4ec
call sub.user32.dll_GetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e62b
lea eax, [ebp - 0xc]
call fcn.00404dc4
ret
Function at 0x40f5d4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40f6b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404e5c
lea eax, [ebp - 0xc]
call fcn.004052f0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004052a0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40f69c
mov eax, dword [ebp - 0x10]
call fcn.00402b6c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40f695
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004052a0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f67f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x40f6c0
mov eax, dword [ebp - 0x18]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f67f
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f69c
mov eax, dword [ebp - 0x18]
call fcn.00402b9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f6b9
lea eax, [ebp - 0xc]
call fcn.00404dc4
ret

Function at 0x411928
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x411962
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.user32.dll_GetWindowTextA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x411962
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x41c9dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x41c9f9
mov eax, dword [0x54a668]
mov dword [ebp - 8], eax
push 0xa
mov eax, dword [ebp - 4]
call fcn.004052a0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetKeyNameTextA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x41ca77
mov eax, dword [ebp - 4]
push eax
push 0xa
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41ad58]
call fcn.00420da8
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x41ca6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov eax, dword [ebp - 0x18]
call fcn.004205b0
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca73
mov eax, dword [ebp - 0x18]
call fcn.00403e74
ret
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x420ed0
Capabilities:
Log keystrokes via polling
Open clipboard

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_GetKeyNameTextA
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x420f06
push ebp
call fcn.00420e60
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_OpenClipboard
mov edx, dword [ebp - 8]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x420f2c
push ebp
call fcn.00420e60
pop ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_SendNotifyMessageA
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.user32.dll_PeekMessageA
mov edx, eax
mov eax, dword [ebp - 8]
pop ecx
call fcn.00420950
mov esp, ebp
pop ebp
ret 4

Function at 0x42b94c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405290
xor eax, eax
push ebp
push 0x42ba36
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004050a0
dec eax
jle 0x42b9b5
mov edx, dword [ebp - 4]
mov eax, 0x42ba4c
call fcn.004053e4
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004050a0
dec eax
cmp ebx, eax
jne 0x42b9b5
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
call fcn.004050a0
mov ecx, eax
sub ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405300
mov eax, dword [ebp - 4]
call fcn.004050a0
mov ebx, eax
test ebx, ebx
jle 0x42b9ec
mov dword [ebp - 8], 1
lea eax, [ebp - 4]
call fcn.004052f8
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 8]
dec ebx
jne 0x42b9ca
mov eax, dword [ebp - 4]
call fcn.004050a0
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [ebp - 8], 0
jle 0x42ba20
lea eax, [ebp - 4]
call fcn.004052f8
mov edx, eax
mov ecx, dword [ebp - 8]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ba3d
lea eax, [ebp - 4]
call fcn.00404dc4
ret
Function at 0x42bf18
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edx, [ebp - 4]
mov ecx, 4
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040542c
cmp dword [ebp - 4], 0
jle 0x42bf55
mov eax, ebx
call fcn.004052f8
mov edx, eax
mov ecx, dword [ebp - 4]
mov eax, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebx]
call fcn.004050a0
mov esi, eax
test esi, esi
jle 0x42bf89
mov dword [ebp - 4], 1
mov eax, ebx
call fcn.004052f8
mov edx, dword [ebp - 4]
mov ecx, dword [ebx]
mov edi, dword [ebp - 4]
mov cl, byte [ecx + edi - 1]
xor cl, 0x62
mov byte [eax + edx - 1], cl
inc dword [ebp - 4]
dec esi
jne 0x42bf69
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x42d904
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, ecx
shl edx, 2
add edx, eax
mov dword [esp], edx
mov eax, dword [esp]
call fcn.004064cc
test eax, eax
je 0x42d95e
lea eax, [esp + 4]
push eax
push pe_nt_image_headers32
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.user32.dll_SetFocus
mov eax, dword [esp]
mov dword [eax], ebx
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
push 4
mov eax, dword [esp + 0xc]
push eax
call sub.user32.dll_SetFocus
push 4
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetMessagePos
push eax
call sub.user32.dll_GetKeyState
pop ecx
pop edx
pop ebx
ret

Function at 0x42e510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
mov edx, pe_nt_image_headers32
mov eax, ebx
call fcn.0042a5e4
test al, al
je 0x42e564
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x42e564
cmp dword [eax + 0x3c], 0
je 0x42e564
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [ebp - 4], eax
mov edx, 0xf8
mov eax, dword [ebp - 4]
call fcn.0042a5e4
test al, al
je 0x42e55f
mov eax, dword [ebp - 4]
cmp dword [eax], 0x4550
je 0x42e564
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop ebx
pop ecx
pop ebp
ret
Function at 0x42e8dc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov ebx, edx
test ebx, ebx
js 0x42e8f7
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x42e8f0
mov eax, esp
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x4010f0]
call fcn.00405b10
mov eax, dword [ebp - 0xc]
call fcn.00405290
mov eax, dword [ebp + 0x14]
call fcn.00405290
xor eax, eax
push ebp
push 0x42ea05
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0x14]
call fcn.004052a0
push eax
mov eax, dword [ebp - 0xc]
call fcn.004052a0
push eax
call sub.user32.dll_GetWindowRect
push eax
call sub.user32.dll_GetWindowTextA
mov dword [ebp - 0x18], eax
mov edi, dword [ebp - 8]
test edi, edi
jl 0x42e9c5
inc edi
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
call fcn.004052a0
push eax
call sub.user32.dll_GetWindowRect
mov esi, eax
test esi, esi
je 0x42e9bf
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp - 0xc]
push 0x42ea28
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405160
mov eax, dword [ebp - 0x1c]
push eax
mov al, byte [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0042e5d0
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0xd], 0
jne 0x42e9ba
cmp dword [ebp - 0x14], 0
jne 0x42e9ba
xor eax, eax
jmp 0x42e9bc
mov al, 1
mov byte [ebp - 0xd], al
add ebx, 4
dec edi
jne 0x42e961
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ea0c
lea eax, [ebp - 0x1c]
call fcn.00404dc4
lea eax, [ebp - 0xc]
call fcn.00404dc4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc ecx
mov edx, dword [0x4010f0]
call fcn.004059d0
lea eax, [ebp + 0x14]
call fcn.00404dc4
ret

Function at 0x42ede0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.004052a0
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.00403694
cmp dword [esp + 4], 0
je 0x42ee32
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x42f0a4
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42f211
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x24], 0
jne 0x42f1f6
push 0
mov eax, dword [ebx + 0x1c]
push eax
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x28], esi
inc esi
jne 0x42f10e
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x10]
call fcn.0040e22c
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x42f228
mov eax, ebx
call fcn.0042ee44
mov word [ebx + 4], 2
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.0042ede0
mov dword [ebx + 8], eax
mov ax, word [ebx + 0x18]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 6], ax
push 0
push 0
push 0
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_ioctlsocket
push 0x10
lea eax, [ebx + 4]
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x42f190
push 0
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x14]
call fcn.0040e22c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea ecx, [ebp - 0xc]
mov edx, 0x42f248
mov eax, ebx
call fcn.0042ee44
cmp dword [ebx + 0x28], 0xffffffff
setne al
mov byte [ebx + 0x24], al
lea eax, [ebp - 0x18]
push eax
xor eax, eax
mov al, byte [ebx + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0
xor eax, eax
mov al, byte [ebx + 9]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebx + 0xa]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebx + 0xb]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
movzx eax, word [ebx + 0x18]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x40]
mov ecx, 4
mov eax, 0x42f268
call fcn.0040b808
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x2c]
call fcn.00404e18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42f218
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404de8
ret