joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5d0
Capabilities:
Create thread
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x528
mov eax, dword [0x47201c]
xor eax, esp
mov dword [esp + 0x524], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00454970
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x122]
push edx
mov dword [esp + 0x18], 0
mov word [esp + 0x124], cx
call fcn.00454970
add esp, 0xc
call fcn.00408ff0
lea eax, [esp + 0xc]
push eax
push fcn.0040c5d0
push 4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov edx, dword [esp + 0xc]
push 0x104
lea ecx, [esp + 0x11c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x118]
push eax
call fcn.00402730
add esp, 4
push 0
call fcn.0044ff96
add esp, 4
push eax
call fcn.0044ffe7
add esp, 4
push 0x40c5a0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push esi
lea ecx, [esp + 0x324]
call fcn.004090e0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 4
test eax, eax
je 0x40c756
lea ecx, [esp + 0x320]
push ecx
call fcn.00402730
add esp, 4
push 0
push 0
push 0x104
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x334]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, 0x4796b8
lea ecx, [esp + 0x10]
call fcn.00409260
test eax, eax
je 0x40c756
push str._IniParser_Success
call fcn.00402730
add esp, 4
push 0x479f3c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push eax
push 0x40c530
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
call esi
test eax, eax
jne 0x40c74c
push 0x80
lea edx, [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call esi
mov ecx, 0x4796b8
call fcn.0040b250
lea ecx, [esp + 0x10]
push ecx
call esi
test eax, eax
jne 0x40c774
push 0x80
lea edx, [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call esi
mov edi, 0x4796b8
call fcn.0040a5a0
call fcn.0040a620
push str.RunAD
push str._s_:_Quit_
call fcn.004026c0
mov ecx, dword [esp + 0x534]
add esp, 8
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044eeef
mov esp, ebp
pop ebp
ret 4

Function at 0x40c7b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
lea eax, [ebp - 4]
push eax
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
call esi
push eax
push str.Run_AD_Preveal_:_PathCommand__s
call fcn.00402730
add esp, 8
push str.GGTC
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebp - 4], 2
je 0x40c803
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 4]
push ecx
call fcn.0040c5d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c8c0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x40ca6a
test esi, esi
je 0x40ca6a
cmp dword [ebp + 0xc], 0
je 0x40ca6a
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.0040c840
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jl 0x40ca6a
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x13
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
js 0x40c9e6
cmp dword [ebp - 8], ebx
jne 0x40c960
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x40c9ce
mov edx, eax
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
shl ecx, 6
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
dec edx
jne 0x40c966
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea edx, [edx + eax*4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
cmp edx, ebx
jle 0x40c941
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
sub ecx, eax
je 0x40ca56
lea edx, [ecx + 1]
test edx, edx
je 0x40ca56
xor eax, eax
test ecx, ecx
jle 0x40ca01
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x40ca0f
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x40ca1c
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x40ca39
mov ecx, edx
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_Global_]
mov byte [esi], bl
inc esi
shl eax, 6
dec ecx
jne 0x40ca25
add dword [ebp - 4], edx
mov edi, 4
sub edi, edx
test edi, edi
jle 0x40ca53
push edi
push 0x3d
push esi
call fcn.00454970
add esp, 0xc
add dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40cbb9
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40cbb0
sub eax, edx
push esi
push edi
lea edi, [eax + 0x95]
push edi
call fcn.0044fc13
mov esi, eax
add esp, 4
test esi, esi
jne 0x40cbd4
pop edi
pop esi
pop ebp
ret
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [esi], edi
mov dword [esi + 8], 0
test eax, eax
je 0x40cc02
push eax
add edi, 0xffffff6c
lea ecx, [esi + 0x94]
push edi
push ecx
call fcn.0044faf4
add esp, 0xc
mov eax, dword [ebp + 8]
test eax, eax
je 0x40cc1b
push eax
lea edx, [esi + 0x14]
push 0x80
push edx
call fcn.0044faf4
add esp, 0xc
call fcn.0040f260
mov ecx, dword [esi]
sub ecx, 8
mov eax, 0xedcba987
lea edx, [esi + 8]
je 0x40cc4b
nop
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x479170]
inc edx
dec ecx
jne 0x40cc30
not eax
pop ebx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40d310
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c0
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x47a474], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x5b4], eax
mov edi, edx
mov dword [ebp - 0x5b0], ecx
mov dword [ebp - 0x5b8], 0
jne 0x40d35e
call fcn.0040e400
call fcn.0040df20
mov dword [0x47a474], 1
lea edx, [ebp - 0x5ac]
push edx
push 0x202
call dword [0x47a4c0]
call fcn.0040ca80
mov esi, eax
mov dword [ebp - 0x5bc], esi
test esi, esi
je 0x40d558
test dword [esi], 0x10000
je 0x40d551
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d396
sub eax, edx
cmp eax, dword [esi + 0x140c]
ja 0x40d551
mov ecx, dword [esi + 0x1408]
xor eax, eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], eax
mov eax, 2
push ecx
mov word [ebp - 0x41c], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x47349c
mov word [ebp - 0x41a], ax
call dword [0x47a4d8]
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x418], eax
call fcn.0040e9e0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40d551
mov ecx, dword [ebp - 0x5b0]
mov edx, dword [ebp - 0x5b4]
push ecx
push edi
push edx
call fcn.0040cba0
mov edi, eax
mov esi, dword [edi]
add esp, 0xc
add esi, 4
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi]
push edx
mov dword [ebp - 0x5b0], eax
add eax, 4
push edi
push eax
call fcn.004575e0
add esp, 0xc
push edi
call fcn.00450199
add esp, 4
xor edi, edi
test esi, esi
je 0x40d486
mov ecx, dword [ebp - 0x5b0]
push 0
mov eax, esi
sub eax, edi
push eax
lea edx, [edi + ecx]
push edx
push ebx
call dword [0x47a4e0]
test eax, eax
jle 0x40d480
add edi, eax
cmp edi, esi
jb 0x40d45c
jmp 0x40d486
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 4
lea eax, [ebp - 0x5b4]
push eax
push 0x1006
push 0xffff
push ebx
mov dword [ebp - 0x5b8], 0
mov dword [ebp - 0x5b4], 0x3e8
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x400
lea ecx, [ebp - 0x40c]
push ecx
push ebx
call dword [0x47a4dc]
cmp eax, 0xffffffff
je 0x40d53e
cmp dword [ebp - 0x40c], 0x43435553
mov esi, 7
mov ecx, str.SUCCESS
lea edx, [ebp - 0x40c]
jne 0x40d4fa
mov esi, 3
mov ecx, 0x464c04
lea edx, [ebp - 0x408]
movzx eax, byte [edx]
movzx edi, byte [ecx]
sub eax, edi
jne 0x40d52b
movzx eax, byte [edx + 1]
movzx edi, byte [ecx + 1]
sub eax, edi
jne 0x40d52b
movzx eax, byte [edx + 2]
movzx edi, byte [ecx + 2]
sub eax, edi
jne 0x40d52b
cmp esi, 3
jbe 0x40d577
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov dword [ebp - 0x5b8], ecx
mov edx, dword [ebp - 0x5b0]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x5bc]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [0x47a4bc]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x5b8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044eeef
mov esp, ebp
pop ebp
ret 4
xor eax, eax
jmp 0x40d531
Function at 0x40e970
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xbb8
jae 0x40e9c0
jmp 0x40e990
mov eax, dword [ebp + 8]
push eax
call dword [0x47a4d4]
test eax, eax
jne 0x40e9c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
sub eax, ebx
cmp eax, 0xbb8
jb 0x40e990
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40e9e0
Capabilities:
Check for time delay via gettickcount
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 1
push 2
mov ebx, ecx
call dword [0x47a4e4]
mov esi, eax
cmp esi, 0xffffffff
je 0x40eb38
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 0x21c]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x21c], 1
call edi
push 0x10
push ebx
push esi
call dword [0x47a4d0]
lea ecx, [ebp - 0x21c]
push ecx
push 0x8004667e
push esi
mov dword [ebp - 0x21c], 0
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0x3e8
ja 0x40eaec
lea ebx, [ebx]
mov eax, 1
lea edx, [ebp - 0x224]
push edx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x220], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40eb4c
lea edx, [ebp - 0x110]
push edx
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x40eb5f
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x40eb4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x40eafd
mov edi, 0x102
push 4
lea ecx, [ebp - 0x21c]
push ecx
push 0xffffff7f
push 0xffff
push esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
push 2
push esi
call dword [sym.imp.WS2_32.dll_shutdown]
push esi
call dword [0x47a4cc]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044eeef
mov esp, ebp
pop ebp
ret
js 0x40eaec
call edi
sub eax, ebx
cmp eax, 0x3e8
jbe 0x40ea70
jmp 0x40eaec
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044eeef
mov esp, ebp
pop ebp
ret
Function at 0x40fcf0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0x11
mov ebx, eax
push str.HTTP_1.1_200_OK_r_n
push ebx
call fcn.0044fb53
add esp, 0xc
test eax, eax
je 0x40fd11
xor eax, eax
pop ebx
pop ebp
ret 8
test ebx, ebx
jne 0x40fd19
xor eax, eax
jmp 0x40fd54
push str.Content_Length:
push ebx
call fcn.0044f640
add esp, 8
test eax, eax
je 0x40fd32
push 0x10
add eax, 0x10
jmp 0x40fd49
push str._r_n_r_n
push ebx
call fcn.0044f640
add esp, 8
test eax, eax
je 0x40fd54
push 0xa
add eax, 4
push 0
push eax
call fcn.0044ff6a
add esp, 0xc
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x78], eax
test ebx, ebx
je 0x40fda7
push str.Content_Length:
push ebx
call fcn.0044f640
neg eax
sbb esi, esi
push str._r_n_r_n
push ebx
neg esi
call fcn.0044f640
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40fda7
add edi, 4
test esi, esi
jne 0x40fda3
push 0x4636f8
push edi
call fcn.0044f640
mov edi, eax
add esp, 8
test edi, edi
je 0x40fda7
add edi, 2
test edi, edi
jne 0x40fdb0
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x94]
sub eax, 0xffffff80
cmp edx, 0x10
jb 0x40fdc5
mov esi, dword [eax]
jmp 0x40fdc7
mov esi, eax
mov ecx, dword [eax + 0x10]
add esi, ecx
cmp edx, 0x10
jb 0x40fdd5
mov edx, dword [eax]
jmp 0x40fdd7
mov edx, eax
add ecx, edx
mov edx, dword [ebp + 8]
push edx
push esi
push ecx
push eax
mov edx, edi
mov ecx, ebx
call fcn.00410810
mov esi, 0x400
sub esi, edi
sub esi, ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x78]
cmp esi, eax
jb 0x40fdfe
mov esi, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push edi
push eax
mov dword [ebx + 0x7c], eax
call fcn.004575e0
mov eax, dword [ebx + 0x78]
add esp, 0xc
cmp eax, esi
jne 0x40fe28
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
push 4
lea ecx, [ebp + 8]
push ecx
sub eax, esi
push 0x1006
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x7c]
push 0xffff
push edx
add edi, esi
mov dword [ebp + 8], 0x3e80
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x40fe91
xor esi, esi
test ebx, ebx
je 0x40fe7f
nop
mov edx, dword [ebp + 0xc]
push 0
mov eax, ebx
sub eax, esi
push eax
lea ecx, [esi + edi]
push ecx
push edx
call dword [0x47a4dc]
test eax, eax
jle 0x40fe91
add esi, eax
cmp esi, ebx
jb 0x40fe60
xor eax, eax
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
test eax, eax
sete cl
pop edi
pop esi
pop ebx
mov eax, ecx
pop ebp
ret 8
Function at 0x4143f0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jns 0x414408
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414414
or esi, 1
push 1
call edi
test ax, ax
jns 0x414420
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x41442c
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x414438
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x414f00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ebx, eax
cmp dword [edi + 0xd8], esi
jle 0x414f53
jmp 0x414f20
mov eax, dword [edi + 0xd4]
mov byte [ebp - 1], 0
mov ecx, dword [eax + esi*4]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [ebp - 1]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push eax
call edx
cmp byte [ebp - 1], 0
jne 0x4150d3
inc esi
cmp esi, dword [edi + 0xd8]
jl 0x414f20
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x41506b
sub eax, 4
je 0x414fc4
sub eax, 2
jne 0x415060
push ebx
mov dword [ebp + 8], eax
call fcn.004592f3
mov ecx, dword [edi + 0x54]
add esp, 4
mov word [ebp + 8], ax
mov edx, dword [ecx]
mov edx, dword [edx + 0xf4]
push reloc.WS2_32.dll_ioctlsocket
lea eax, [ebp + 8]
push eax
push 0x4184e0
call edx
mov esi, eax
test esi, esi
je 0x415060
mov eax, dword [esi]
mov edx, dword [eax + 0xe8]
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
mov ecx, esi
call edx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 0x58], 0
je 0x415060
mov ecx, dword [edi + 0x6c]
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x68]
mov word [ebp - 0x10], bx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor esi, esi
call ebx
test ax, ax
jns 0x415012
mov esi, 8
push 2
call ebx
test ax, ax
jns 0x41501e
or esi, 1
push 1
call ebx
test ax, ax
jns 0x41502a
or esi, 2
push 0x10
call ebx
test ax, ax
jns 0x415036
or esi, 4
push 0x12
call ebx
test ax, ax
jns 0x415042
or esi, 0x20
mov word [ebp - 0xe], si
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x58]
mov dword [ebp - 0x1c], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x100]
lea eax, [ebp - 0x24]
push eax
call edx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp ebx, 9
jne 0x415060
cmp dword [edi + 0x58], 0
je 0x4150c0
mov ecx, dword [edi + 0x58]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc0]
call edx
test al, al
je 0x4150c0
mov ecx, dword [edi + 0x58]
mov eax, dword [ecx]
mov edx, dword [eax + 0xcc]
call edx
test al, al
je 0x4150c0
mov ecx, dword [edi + 0x58]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push str.RichEditUI
call edx
push eax
call fcn.0044f6c6
add esp, 8
test eax, eax
je 0x4150c0
mov eax, dword [edi + 0x58]
cmp byte [eax + 0x43d], 0
jne 0x415060
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns bl
call fcn.00417340
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416e50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push edi
mov edi, eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi]
cmp eax, ecx
je 0x416e75
cmp esi, dword [edi + 0x58]
je 0x416e75
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x58]
cmp esi, eax
je 0x416f71
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x416ee5
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], esi
call ebx
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x100]
lea edx, [esp + 8]
push edx
call eax
mov ecx, dword [edi + 0x58]
push 0
push 0
push ecx
mov ecx, str.killfocus
call fcn.00417810
mov dword [edi + 0x58], 0
test esi, esi
je 0x416f71
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, edi
jne 0x416f71
mov edx, dword [esi]
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
test al, al
je 0x416f71
mov edx, dword [esi]
mov eax, dword [edx + 0xcc]
mov ecx, esi
call eax
test al, al
je 0x416f71
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [edi + 0x58], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call ebx
mov ecx, dword [edi + 0x58]
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x100]
lea eax, [esp + 8]
push eax
call edx
mov eax, dword [edi + 0x58]
push 0
push 0
push eax
mov ecx, str.setfocus
call fcn.00417810
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4222f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x47201c]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 8], eax
mov dword [edi + 0x10], eax
push esi
lea eax, [esp + 0x10]
push eax
mov eax, edi
call fcn.004224b0
mov ecx, dword [edi + 0x10]
cmp byte [ecx + 0x431], 0
mov esi, 0x40000080
je 0x422338
mov esi, 0x400000a0
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov eax, dword [eax]
sub edx, ecx
push edx
mov edx, dword [esp + 0x14]
sub ebx, edx
push ebx
push ecx
push edx
push 0
push esi
push 0
push eax
mov eax, edi
call fcn.0041e5a0
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov ebx, dword [ecx + 0x40c]
call eax
mov esi, eax
mov eax, ebx
call fcn.00417eb0
mov ecx, dword [eax]
mov edx, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
push ebx
push ecx
push 0x30
push edx
call esi
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x42c]
mov edx, dword [edi + 4]
push 0
push ecx
push 0xc5
push edx
call esi
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x431], 0
je 0x4223ce
movzx eax, word [eax + 0x432]
mov ecx, dword [edi + 4]
push 0
push eax
push 0xcc
push ecx
call esi
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x20]
push eax
call edx
mov eax, dword [eax]
mov ecx, dword [edi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
cmp eax, edx
je 0x4223ff
push eax
call fcn.00450199
add esp, 4
mov eax, dword [edi + 4]
push 0
push 0
push 0xb9
push eax
call esi
mov ecx, dword [edi + 4]
push 0
push 3
push 0xd3
push ecx
call esi
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xcc]
call eax
mov edx, dword [edi + 4]
xor ecx, ecx
cmp al, bl
sete cl
push ecx
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 4]
xor ecx, ecx
cmp byte [eax + 0x430], bl
push 0
sete cl
push ecx
push 0xcf
push edx
call esi
mov eax, dword [edi + 4]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0x64c]
or edx, eax
mov eax, dword [edi + 4]
push edx
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [edi + 4]
push 4
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [esp + 0xac]
pop esi
mov byte [edi + 0x18], bl
pop ebx
xor ecx, esp
call fcn.0044eeef
mov esp, ebp
pop ebp
ret 4
Function at 0x422770
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47201c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x4227dd
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
lea eax, [esi + esi]
call fcn.00458990
mov ebx, esp
test ebx, ebx
je 0x4227dd
mov ecx, dword [edi + 4]
push esi
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [edi + 0x10]
push ebx
add esi, 0x134
or eax, 0xffffffff
call fcn.00418a20
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
push 0
push 0
push ecx
call eax
mov ecx, str.textchanged
mov edi, eax
call fcn.00417810
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044eeef
mov esp, ebp
pop ebp
ret