joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f620
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x41f635
cmp byte [ebx], 0
jne 0x41f63c
xor eax, eax
jmp 0x41f76e
push 0x4f1f21
push ebx
call fcn.004015a0
add esp, 8
test eax, eax
je 0x41f655
xor eax, eax
jmp 0x41f76e
push ebx
call fcn.00401318
pop ecx
mov edi, eax
mov dword [0x5054b4], edi
test edi, edi
jg 0x41f66f
xor eax, eax
jmp 0x41f76e
mov edx, dword [0x5054b4]
mov al, byte [ebx + edx - 1]
cmp al, 0x5c
je 0x41f687
mov edx, dword [0x5054b4]
cmp al, 0x2f
jne 0x41f69d
mov ecx, dword [0x5054b4]
mov byte [ebx + ecx], 0x2e
mov eax, dword [0x5054b4]
mov byte [ebx + eax + 1], 0
jmp 0x41f6c8
mov edx, dword [0x5054b4]
cmp byte [ebx + edx - 1], 0x3a
jne 0x41f6c0
mov ecx, dword [0x5054b4]
mov byte [ebx + ecx], 0x5c
mov eax, dword [0x5054b4]
mov byte [ebx + eax + 1], 0
jmp 0x41f6c8
xor edx, edx
mov dword [0x5054b4], edx
xor ecx, ecx
mov dword [0x5054b0], ecx
cmp dword [0x515ee8], 0
je 0x41f706
test esi, 2
je 0x41f706
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
mov edi, eax
mov dword [0x5054b8], edi
cmp edi, 0xffffffff
je 0x41f706
test edi, 0x10
je 0x41f706
mov dword [0x5054b0], 1
cmp dword [0x5054b0], 0
jne 0x41f757
push 0x50548b
push ebx
call fcn.004073dc
add esp, 8
test eax, eax
jne 0x41f757
test esi, 1
je 0x41f73c
test byte [0x505490], 0x80
je 0x41f73c
mov dword [0x5054b0], 1
test esi, 2
je 0x41f757
test byte [0x505490], 0x40
je 0x41f757
mov dword [0x5054b0], 1
cmp dword [0x5054b4], 0
je 0x41f769
mov eax, dword [0x5054b4]
mov byte [ebx + eax], 0
mov eax, dword [0x5054b0]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41f8c4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp byte [0x518038], 0
jne 0x41f8f2
push 0x4fda48
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_SetWindowTextA
push 7
call fcn.004e4198
jmp 0x41f971
push 0x518038
push 0x4fda48
push 0x4f1f35
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 0xf
push ebx
call fcn.004d7fb8
mov edx, dword [0x4fd9ec]
push edx
call sub.USER32.dll_GetWindowTextLengthA
mov edi, eax
push ebx
call fcn.00401318
pop ecx
cmp edi, eax
jne 0x41f95e
push 0x3b5
push esi
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_GetWindowTextA
mov eax, ebx
mov edx, esi
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x41f95e
test cl, cl
je 0x41f95c
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x41f95e
add eax, 2
add edx, 2
test cl, cl
jne 0x41f940
je 0x41f971
push ebx
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_SetWindowTextA
push 7
call fcn.004e4198
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41faa8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
push 0x8001
call sub.KERNEL32.dll_SetErrorMode
push 5
push 0x4f7cec
push 0
push ebx
push 0x4f1f61
mov eax, dword [0x4fd9ec]
push eax
call sub.SHELL32.dll_ShellExecuteA
cmp eax, 0x20
jbe 0x41faea
push 0
call sub.KERNEL32.dll_SetErrorMode
mov eax, 1
jmp 0x41fb8a
push 0
push 0x4000
push ebx
call fcn.00406b7c
add esp, 0xc
mov esi, eax
mov dword [0x5054e0], esi
test esi, esi
jl 0x41fb56
push 0x5054bc
push esi
call fcn.00406d00
add esp, 8
cmp dword [0x5054ce], 0xe678
jle 0x41fb35
push ebx
push 0x4f1f67
push 0x5120fc
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x41fb48
push ebx
push 0x4f1f75
push 0x5120fc
call sub.USER32.dll_wsprintfA
add esp, 0xc
mov eax, dword [0x5054e0]
push eax
call fcn.0040471c
pop ecx
jmp 0x41fb69
push ebx
push 0x4f1f85
push 0x5120fc
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0
call sub.KERNEL32.dll_SetErrorMode
push 0xa
push 0x5120fc
call sub.KERNEL32.dll_WinExec
cmp eax, 0x20
jae 0x41fb85
xor eax, eax
jmp 0x41fb8a
mov eax, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x41fc64
Capabilities:
Open clipboard
Read clipboard data
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_OpenClipboard
test eax, eax
je 0x41fe1d
xor edx, edx
mov dword [0x5054ec], edx
cmp dword [ebp + 0xc], 1
jne 0x41fd2b
push 1
call sub.USER32.dll_GetClipboardData
mov edi, eax
mov dword [0x5054e8], edi
test edi, edi
je 0x41fd2b
push edi
call sub.KERNEL32.dll_GlobalLock
mov esi, eax
mov dword [0x5054e4], esi
test esi, esi
je 0x41fd2b
push esi
call fcn.00401318
pop ecx
mov esi, eax
push ebx
call fcn.00401318
pop ecx
add esi, eax
add esi, 5
push esi
call fcn.0040c55c
pop ecx
mov edi, eax
mov dword [0x5054ec], edi
test edi, edi
je 0x41fd20
mov eax, dword [0x5054e4]
push edi
mov esi, edi
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
mov eax, dword [0x5054ec]
push eax
call fcn.0040123c
add esp, 8
mov ebx, dword [0x5054ec]
mov eax, dword [0x5054e8]
push eax
call sub.KERNEL32.dll_GlobalUnlock
call sub.USER32.dll_EmptyClipboard
test eax, eax
jne 0x41fd52
call sub.USER32.dll_CloseClipboard
mov eax, dword [0x5054ec]
test eax, eax
je 0x41fe1d
push eax
call fcn.0040c454
pop ecx
jmp 0x41fe1d
push ebx
call fcn.00401318
pop ecx
add eax, 5
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
mov dword [0x5054e8], esi
test esi, esi
jne 0x41fd8e
call sub.USER32.dll_CloseClipboard
mov eax, dword [0x5054ec]
test eax, eax
je 0x41fe1d
push eax
call fcn.0040c454
pop ecx
jmp 0x41fe1d
mov edx, dword [0x5054e8]
push edx
call sub.KERNEL32.dll_GlobalLock
mov esi, eax
mov dword [0x5054e4], esi
test esi, esi
jne 0x41fdd4
mov eax, dword [0x5054e8]
push eax
call sub.KERNEL32.dll_GlobalUnlock
mov edx, dword [0x5054e8]
push edx
call sub.KERNEL32.dll_GlobalFree
call sub.USER32.dll_CloseClipboard
mov eax, dword [0x5054ec]
test eax, eax
je 0x41fe1d
push eax
call fcn.0040c454
pop ecx
jmp 0x41fe1d
mov edx, dword [0x5054e4]
mov esi, edx
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x5054e8]
push eax
push 1
call sub.USER32.dll_SetClipboardData
call sub.USER32.dll_CloseClipboard
mov eax, dword [0x5054ec]
test eax, eax
je 0x41fe1d
push eax
call fcn.0040c454
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x420138
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.KERNEL32.dll_GetVersionExA
test eax, eax
je 0x420204
cmp dword [ebp - 0x84], 0
jne 0x4201a0
mov esi, 0x4f1fc2
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 0x88]
push edx
mov ecx, dword [ebp - 0x8c]
push ecx
mov eax, dword [ebp - 0x90]
push eax
push 0x4f1fc7
push ebx
call sub.USER32.dll_wsprintfA
add esp, 0x14
jmp 0x420225
cmp dword [ebp - 0x84], 1
jne 0x4201d7
cmp dword [ebp - 0x90], 4
jne 0x4201c9
cmp dword [ebp - 0x8c], 1
jb 0x4201c9
mov esi, 0x4f1fdf
mov edi, ebx
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x420225
mov esi, 0x4f1fe3
mov edi, ebx
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x420225
cmp dword [ebp - 0x84], 2
jne 0x420204
cmp dword [ebp - 0x90], 5
jb 0x4201f6
mov esi, 0x4f1fe7
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x420225
mov esi, 0x4f1fed
mov edi, ebx
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x420225
cmp dword [0x515ee8], 0
je 0x42021b
mov esi, 0x4f1ff1
mov edi, ebx
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x420225
mov esi, 0x4f1ff5
mov edi, ebx
mov eax, edi
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x420de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
push 2
mov edx, dword [ebp + 0x10]
push edx
mov ebx, dword [0x4fd9e8]
push ebx
call sub.KERNEL32.dll_FindResourceA
push eax
push ebx
call sub.KERNEL32.dll_LoadResource
test eax, eax
je 0x420f63
push eax
call sub.KERNEL32.dll_LockResource
mov ebx, eax
test ebx, ebx
je 0x420f63
mov eax, dword [0x4fd9ec]
push eax
call sub.USER32.dll_GetDC
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x420f63
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x420e4b
mov esi, eax
jmp 0x420e56
mov cx, word [ebx + 0xe]
mov esi, 1
shl esi, cl
xor eax, eax
mov dword [ebp - 8], eax
test esi, esi
jle 0x420f1a
cmp esi, 0x100
jg 0x420f1a
lea edx, [esi - 1]
shl edx, 2
add edx, 8
push edx
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x420f1a
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_GlobalLock
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov word [eax + 2], si
mov edx, dword [ebp - 4]
mov word [edx], 0x300
lea edx, [ebx + 0x28]
xor edi, edi
mov eax, dword [ebp - 4]
add eax, 4
add edx, 2
cmp esi, edi
jle 0x420ed9
mov cl, byte [edx]
mov byte [eax], cl
mov cl, byte [edx - 1]
mov byte [eax + 1], cl
mov cl, byte [edx - 2]
mov byte [eax + 2], cl
mov byte [eax + 3], 0
inc edi
add eax, 4
add edx, 4
cmp esi, edi
jg 0x420eba
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.dll_CreatePalette
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.dll_GlobalUnlock
mov edx, dword [ebp - 0xc]
push edx
call sub.KERNEL32.dll_GlobalFree
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
je 0x420f1a
push 0
push eax
mov edx, dword [ebp - 0x10]
push edx
call sub.GDI32.dll_SelectPalette
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.GDI32.dll_RealizePalette
movzx eax, word [ebx]
add eax, ebx
shl esi, 2
movzx edx, si
add eax, edx
mov esi, eax
push 0
push ebx
push esi
push 4
push ebx
mov ecx, dword [ebp - 0x10]
push ecx
call sub.GDI32.dll_CreateDIBitmap
mov edx, dword [ebp + 8]
mov dword [edx], eax
cmp dword [ebp - 8], 0
je 0x420f53
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.GDI32.dll_SelectPalette
mov eax, dword [ebp - 0x10]
push eax
mov edx, dword [0x4fd9ec]
push edx
call sub.USER32.dll_ReleaseDC
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4218cc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004eae80
mov esi, eax
test esi, esi
je 0x421a1e
mov eax, dword [esi + 0x4b4]
test eax, eax
je 0x4219bb
mov ebx, eax
test ebx, ebx
je 0x421906
cmp dword [ebx + 0x18], 1
je 0x421906
mov ebx, dword [ebx + 0x30]
test ebx, ebx
jne 0x4218f9
test ebx, ebx
je 0x421987
cmp dword [ebx + 0x30], 0
je 0x421987
mov eax, dword [ebx + 0x30]
cmp dword [eax], 0
je 0x421987
xor edx, edx
mov dword [ebx + 0x18], edx
mov ebx, dword [ebx + 0x30]
mov dword [ebx + 0x18], 1
mov ecx, dword [ebx]
push ecx
push 0
push 0xc
mov eax, dword [esi + 0x5d0]
push eax
call sub.USER32.dll_SendMessageA
mov edx, dword [ebx]
push edx
call fcn.00401318
pop ecx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.00401318
pop ecx
push eax
push 0xb1
push 0x427
mov eax, dword [esi]
push eax
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xb7
push 0x427
mov edx, dword [esi]
push edx
call sub.USER32.dll_GetDlgItem
push eax
call sub.USER32.dll_SendMessageA
jmp 0x421a1e
mov eax, dword [esi + 0x4b4]
cmp ebx, dword [eax + 0x34]
jne 0x4219bb
mov ebx, eax
test ebx, ebx
je 0x4219a4
xor eax, eax
mov dword [ebx + 0x18], eax
mov ebx, dword [ebx + 0x30]
test ebx, ebx
jne 0x421998
push 0x4f20c4
push 0
push 0xc
mov edx, dword [esi + 0x5d0]
push edx
call sub.USER32.dll_SendMessageA
jmp 0x421a1e
push 0x515aff
push 0x3e6
push 0xd
mov ecx, dword [esi + 0x5d0]
push ecx
call sub.USER32.dll_SendMessageA
push 0x4f20c8
push 0x515aff
call fcn.004015f8
add esp, 8
test eax, eax
je 0x4219ec
mov byte [eax], 0
cmp byte [0x515aff], 0
je 0x421a02
push 0x515aff
push edi
call fcn.00421668
jmp 0x421a09
push 0
call sub.USER32.dll_MessageBeep
push 0x4f20cc
push 0
push 0xc
mov eax, dword [esi + 0x5d0]
push eax
call sub.USER32.dll_SendMessageA
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x421a28
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004eae80
mov ebx, eax
test ebx, ebx
je 0x421aa8
mov eax, dword [ebx + 0x4b4]
test eax, eax
je 0x421a53
cmp dword [eax + 0x18], 0
jne 0x421aa8
mov eax, dword [eax + 0x30]
test eax, eax
jne 0x421a46
push 0x515aff
push 0x3e6
push 0xd
mov edx, dword [ebx + 0x5d0]
push edx
call sub.USER32.dll_SendMessageA
push 0x4f20d0
push 0x515aff
call fcn.004015f8
add esp, 8
test eax, eax
je 0x421a84
mov byte [eax], 0
cmp byte [0x515aff], 0
je 0x421aa8
push 0x515aff
push esi
call fcn.00421668
mov ecx, dword [ebx + 0x4b4]
mov eax, dword [ecx + 0x34]
mov dword [eax + 0x18], 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x424044
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5128ca
push 0
push 0
push 0x184
push 0x10a
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_SendDlgItemMessageA
xor esi, esi
push esi
push 0x4f23a4
push edi
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x4f2218
push 0x3e7
push 0x5124e3
push 0x4f23b3
push edi
push 0x4f23a9
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x5124e3], 0
je 0x424151
push 0x20
push 0x5124e3
call fcn.00401278
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x42410d
mov byte [ebx], 0
push esi
push edi
mov esi, edi
mov edi, 0x5124e3
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov byte [ebx], 0x20
jmp 0x4240e9
inc ebx
cmp byte [ebx], 0x20
je 0x4240e8
cmp byte [ebx], 0
je 0x424135
push 0x4f23b7
push edi
call fcn.0040123c
add esp, 8
push ebx
push edi
call fcn.0040123c
add esp, 8
jmp 0x424135
push esi
push edi
mov esi, edi
mov edi, 0x5124e3
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push edi
push 0
push 0x180
push 0x10a
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_SendDlgItemMessageA
inc esi
jmp 0x424068
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x424290
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x5124e3
push 0x20
push esi
call fcn.00401278
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4242b9
mov eax, dword [ebp - 4]
mov byte [eax], 0
xor ebx, ebx
push ebx
push 0x4f23d3
push 0x5128ca
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x4f2218
push 0x3e7
push edi
push 0x4f23e2
push 0x5128ca
push 0x4f23d8
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [edi], 0
je 0x424315
push 0x20
push edi
call fcn.00401278
add esp, 8
test eax, eax
je 0x424304
mov byte [eax], 0
push esi
push edi
call fcn.004014a8
add esp, 8
test eax, eax
je 0x424315
inc ebx
jmp 0x4242bb
cmp dword [ebp - 4], 0
je 0x424321
mov eax, dword [ebp - 4]
mov byte [eax], 0x20
test ebx, ebx
jl 0x42434d
push ebx
push 0x4f23e6
push 0x5128ca
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x4f2218
push esi
push 0x5128ca
push 0x4f23eb
call fcn.0048326c
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x424dc0
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, 0x4f246c
push 0x4f7dec
push 0x32
push 0x5080c8
lea eax, [ebx + 0x14]
push eax
lea edx, [ebx + 0xe]
push edx
push ebx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x5080c8], 0
je 0x424e3e
push 0
push 0x5080c8
call fcn.0045bd68
push 0x4f7dec
push 0
lea ecx, [ebx + 0x26]
push ecx
lea eax, [ebx + 0x18]
push eax
call fcn.0048326c
push 0x5080c8
push 0x50464c
call sub.USER32.dll_wsprintfA
add esp, 8
push 0x50464c
call fcn.0045bb34
push 0x4f7dec
push 0x50464c
lea edx, [ebx + 0x3a]
push edx
lea ecx, [ebx + 0x2c]
push ecx
call fcn.0048326c
pop ebx
ret
push 0x4f7dec
push 0x32
push 0x5080c8
lea eax, [ebx + 0x54]
push eax
lea edx, [ebx + 0x4e]
push edx
lea ecx, [ebx + 0x40]
push ecx
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x5080c8
call fcn.0045bb5c
pop ebx
ret

Function at 0x424edc
Capabilities:
Read .ini file

Disassembly:
push ebx
push esi
mov ebx, 0x4f246c
mov esi, 0x507fc8
push 0x4f7dec
push pe_nt_image_headers32
push esi
lea eax, [ebx + 0x94]
push eax
lea edx, [ebx + 0x8e]
push edx
lea ecx, [ebx + 0x80]
push ecx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [esi], 0
je 0x424f6b
push 0
push esi
call fcn.0045bd68
push 0x4f7dec
push 0
lea eax, [ebx + 0xa6]
push eax
lea edx, [ebx + 0x98]
push edx
call fcn.0048326c
push esi
push 0x50464c
call sub.USER32.dll_wsprintfA
add esp, 8
push 0x50464c
call fcn.0045bb34
push 0x4f7dec
push 0x50464c
lea ecx, [ebx + 0xba]
push ecx
lea eax, [ebx + 0xac]
push eax
call fcn.0048326c
jmp 0x424f96
push 0x4f7dec
push pe_nt_image_headers32
push esi
lea edx, [ebx + 0xd6]
push edx
lea ecx, [ebx + 0xcf]
push ecx
lea eax, [ebx + 0xc1]
push eax
call sub.KERNEL32.dll_GetPrivateProfileStringA
push esi
call fcn.0045bb5c
push esi
call fcn.004d7e5c
pop esi
pop ebx
ret

Function at 0x425094
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
mov byte [0x507ec8], 0
push 0x4f7dec
push pe_nt_image_headers32
push 0x507dc8
push 0x4f2582
push 0x4f257e
push 0x4f2570
call sub.KERNEL32.dll_GetPrivateProfileStringA
push 0x507dc8
push 0x4f7cec
push 0x4f2590
push 0x504a33
call sub.USER32.dll_wsprintfA
add esp, 0x10
push 1
push 0x504a33
call fcn.0041f620
test eax, eax
jne 0x425100
mov esi, 0x4f2596
mov edi, 0x507dc8
mov eax, edi
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.00424edc
call fcn.00424dc0
pop edi
pop esi
ret
Function at 0x425ad8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
lea ebx, [ebp - 4]
push 0x180
push 0
push 0x4301
mov eax, dword [ebp + 8]
push eax
call fcn.00406b7c
add esp, 0x10
mov esi, eax
mov dword [0x4f2460], esi
test esi, esi
jge 0x425b14
push 0
call sub.USER32.dll_MessageBeep
jmp 0x425cfb
push 0x7f02
push 0
call sub.USER32.dll_LoadCursorA
push eax
call sub.USER32.dll_SetCursor
mov dword [ebp - 8], eax
push 0x180
push 0x515718
mov eax, dword [0x4fda00]
push eax
call sub.USER32.dll_GetWindowTextA
push 0
push 0x57c
call fcn.0041f178
push eax
push 0x515718
call fcn.004015f8
add esp, 8
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x425b93
add dword [ebx], 4
mov edx, dword [ebx]
push edx
call fcn.00401318
pop ecx
push eax
mov ecx, dword [ebx]
push ecx
mov eax, dword [0x4f2460]
push eax
call fcn.004066d0
add esp, 0xc
push 1
push 0x4f2604
mov edx, dword [0x4f2460]
push edx
call fcn.004066d0
add esp, 0xc
xor edi, edi
push ebx
push edi
push 0x189
push 0x425
mov eax, dword [0x4fda00]
push eax
call sub.USER32.dll_SendDlgItemMessageA
inc eax
je 0x425cdb
cmp dword [ebx], 0
je 0x425cdb
mov edx, dword [ebx]
push edi
mov esi, 0x515718
mov edi, edx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov dword [ebx], 0x515718
jmp 0x425bee
inc dword [ebx]
mov eax, dword [ebx]
cmp byte [eax], 0x20
je 0x425bec
mov edx, dword [ebx]
cmp byte [edx], 0
je 0x425cd5
push 9
mov ecx, dword [ebx]
push ecx
call fcn.00401278
add esp, 8
mov esi, eax
test esi, esi
je 0x425cd5
mov byte [esi], 0
mov eax, dword [ebx]
push eax
call fcn.00401318
pop ecx
push eax
mov edx, dword [ebx]
push edx
mov ecx, dword [0x4f2460]
push ecx
call fcn.004066d0
add esp, 0xc
inc esi
cmp byte [esi], 0
je 0x425cc0
mov dword [ebx], esi
push 9
mov eax, dword [ebx]
push eax
call fcn.00401278
add esp, 8
mov esi, eax
test esi, esi
je 0x425c58
mov byte [esi], 0
push 1
push 0x4f2607
mov eax, dword [0x4f2460]
push eax
call fcn.004066d0
add esp, 0xc
mov edx, dword [ebx]
push edx
call fcn.00401318
pop ecx
push eax
mov ecx, dword [ebx]
push ecx
mov eax, dword [0x4f2460]
push eax
call fcn.004066d0
add esp, 0xc
test esi, esi
je 0x425cc0
inc esi
cmp byte [esi], 0
je 0x425cc0
push 1
push 0x4f260a
mov edx, dword [0x4f2460]
push edx
call fcn.004066d0
add esp, 0xc
push esi
call fcn.00401318
pop ecx
push eax
push esi
mov ecx, dword [0x4f2460]
push ecx
call fcn.004066d0
add esp, 0xc
push 1
push 0x4f260d
mov eax, dword [0x4f2460]
push eax
call fcn.004066d0
add esp, 0xc
inc edi
jmp 0x425b95
mov edx, dword [0x4f2460]
push edx
call fcn.0040471c
pop ecx
mov dword [0x4f2460], 0xffffffff
mov ecx, dword [ebp - 8]
push ecx
call sub.USER32.dll_SetCursor
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x428f88
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x428f9a
xor eax, eax
jmp 0x429043
cmp dword [ebx + 0x51c], 3
je 0x428fb3
cmp dword [ebx + 0x530], 2
je 0x428fb3
xor eax, eax
jmp 0x429043
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x868], eax
push 0
push 0x3e6
push 0x508962
mov edx, dword [ebx + 0x86c]
push edx
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x428fef
mov byte [eax + 0x508962], 0
push eax
push ebx
call fcn.00428edc
xor eax, eax
jmp 0x429043
test eax, eax
jge 0x42903b
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x429006
cmp eax, 0x2734
jne 0x429024
push 0x23
push 0x41d
mov edx, dword [0x4fd9ec]
push edx
mov ecx, dword [ebx + 0x86c]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
xor eax, eax
jmp 0x429043
push ebx
push 0
push 0x527
call fcn.0041f178
push eax
call fcn.004271d4
xor eax, eax
jmp 0x429043
push ebx
call fcn.00429154
xor eax, eax
pop ebx
pop ebp
ret 4

Function at 0x42a20c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx ecx, dx
mov dword [0x4f298c], ecx
shr edx, 0x10
and dx, 0xffff
movzx edx, dx
mov dword [0x4f2990], edx
xor edx, edx
mov dword [0x4f2994], edx
cmp eax, 7
ja 0x42a25e
test al, 1
je 0x42a246
inc dword [0x4f2994]
test al, 8
je 0x42a251
add dword [0x4f2994], 2
test al, 4
je 0x42a296
add dword [0x4f2994], 4
jmp 0x42a296
push 1
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x42a270
inc dword [0x4f2994]
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x42a283
add dword [0x4f2994], 2
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x42a296
add dword [0x4f2994], 4
pop ebp
ret 8

Function at 0x42a758
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, 0x4f2a64
xor ebx, ebx
mov esi, 0x5098ac
push ebx
push edi
push 0x504a33
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x4f7dec
push 0x3e7
push 0x50464c
lea eax, [edi + 0xa]
push eax
push 0x504a33
lea edx, [edi + 5]
push edx
call sub.KERNEL32.dll_GetPrivateProfileStringA
cmp byte [0x50464c], 0
je 0x42a7c3
push 0xa
lea ecx, [ebp - 4]
push ecx
push 0x50464c
call fcn.0040af3c
add esp, 0xc
push eax
mov eax, dword [ebp + 8]
push eax
call sub.GDI32.dll_GetNearestColor
mov dword [esi], eax
inc ebx
add esi, 4
cmp ebx, 0x10
jl 0x42a76b
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4