joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405145
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0xc8], ebx
je 0x405214
call fcn.004049a4
cmp dword [esi + 0x60], ebx
je 0x405179
xor eax, eax
mov ecx, esi
cmp dword [ebp + 0xc], eax
sete al
push eax
call fcn.00404941
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], ebx
lea eax, [edi + 1]
test eax, eax
jg 0x4051af
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x405214
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00404ac5
push edi
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00404c09
xor eax, eax
inc eax
jmp 0x405216
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push ebx
push dword [esi + 0xc8]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor ebx, ebx
test eax, eax
setg bl
test eax, eax
jle 0x4051eb
push 0
push dword [esi + 0xc8]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
xor ebx, ebx
test eax, eax
setg bl
test eax, eax
jg 0x40518b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2efd
je 0x4051ff
cmp eax, 0x2efe
jne 0x405214
mov eax, dword [esp + 0xc]
lea ecx, [edi + 1]
inc eax
mov dword [esp + 0xc], eax
cmp eax, ecx
jl 0x4051ad
jmp 0x40518b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405283
Capabilities:
Receive http response

Disassembly:
push ecx
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 0xc8], eax
je 0x4052a5
cmp dword [esi + 0x44], eax
je 0x4052a5
cmp dword [esi + 0x40], eax
je 0x4052ac
push ecx
mov ecx, dword [esp + 0x10]
call fcn.004020ba
xor eax, eax
pop esi
pop ecx
ret 4
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esi + 0xc8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x405334
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40533a
inc eax
push eax
call fcn.004c7e30
mov ecx, dword [esp + 0x18]
mov edi, eax
inc ecx
push ecx
push 0
push edi
call fcn.004d3200
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x18]
push edi
push dword [esi + 0xc8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x405313
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40531b
push edi
mov ecx, ebp
call fcn.00402111
push edi
call fcn.004c77b7
cmp dword [esp + 0x10], 0
pop ecx
je 0x40533a
cmp dword [esp + 0x14], 0
jbe 0x40533a
xor eax, eax
jmp 0x4052b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp]
pop edi
pop ebp
mov eax, dword [eax + 0x10]
jmp 0x4052a7
Function at 0x4056c6
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x500ec9
call fcn.004c8141
push ecx
push ecx
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esp
push 0x573690
call fcn.00401e84
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4056f7
mov eax, dword [eax]
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401e84
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00403ae2
add esp, 0x10
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
cmp ecx, 8
jl 0x4057d7
push 0x573694
lea ecx, [ebp - 0x28]
call fcn.00401e84
mov byte [ebp - 4], 3
mov edi, ebx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
test eax, 0xfffffff8
jle 0x4057ca
mov esi, dword [ebp - 0x28]
test edi, edi
je 0x40576c
push 0x573690
call fcn.004e28ec
pop ecx
push eax
push 0x573690
mov ecx, esi
call fcn.0040228c
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
mov eax, dword [eax + edi*8]
cmp dword [eax + 0x14], 8
jb 0x405779
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040205e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40578c
mov eax, dword [esi]
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401e84
call fcn.004057f3
pop ecx
pop ecx
test al, al
jne 0x4057ba
cmp dword [esi + 0x14], 8
jb 0x4057ab
mov eax, dword [esi]
jmp 0x4057ad
mov eax, esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
jl 0x4057ef
mov ecx, dword [ebp - 0x20]
inc edi
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 3
cmp edi, eax
jl 0x40574d
xor eax, eax
inc eax
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00401ece
lea ecx, [ebp - 0x20]
call fcn.00406674
lea ecx, [ebp + 8]
call fcn.00401ece
mov al, bl
call fcn.004c811b
ret
mov al, bl
jmp 0x4057cd
Function at 0x40581a
Capabilities:
Get common file path

Disassembly:
push 0x34
mov eax, 0x500ef3
call fcn.004c8175
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x3c], edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3c], edi
call fcn.004034e4
xor ebx, ebx
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 4], ebx
je 0x4058a6
push 0x208
call fcn.004c7e30
mov dword [esp], 0x104
mov esi, eax
push ebx
push esi
call fcn.004d3200
add esp, 0xc
push ebx
push dword [ebp + 8]
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
cmp eax, 1
jge 0x405883
call fcn.004c77b7
mov dword [esp], 0x573694
jmp 0x40594a
lea ecx, [ebp - 0x40]
call fcn.00401eee
push esi
call fcn.004c77b7
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x40]
pop ecx
mov dword [edi + 4], 1
mov dword [edi], eax
jmp 0x405951
movaps xmm0, xmmword [0x573f20]
lea eax, [esi - 1]
cmp eax, 0xc
mov dword [ebp - 0x18], 0x24
push 3
pop ecx
cmova esi, ecx
mov dword [ebp - 0x14], 0x25
movups xmmword [ebp - 0x38], xmm0
movaps xmm0, xmmword [0x573f30]
movups xmmword [ebp - 0x28], xmm0
mov eax, dword [ebp + esi*4 - 0x3c]
cmp esi, 0xa
jg 0x4058ec
push eax
xor edx, edx
mov ecx, edi
call fcn.0040581a
pop ecx
jmp 0x405951
cmp esi, 0xb
jne 0x40592e
push 0x208
call fcn.004c7e30
mov ebx, 0x104
mov esi, eax
push ebx
push 0
push esi
call fcn.004d3200
add esp, 0x10
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea ecx, [ebp - 0x40]
call fcn.00401eee
push esi
call fcn.004c77b7
and dword [ebp - 0x3c], 0
jmp 0x405894
cmp esi, 0xc
jne 0x40593a
push 0xffffffffffffffff
push 0x20
pop edx
jmp 0x4058e2
cmp esi, 0xd
jne 0x405945
push 0xffffffffffffffff
push 0x23
jmp 0x405937
push 0x573694
mov ecx, edi
call fcn.00401e84
lea ecx, [ebp - 0x40]
call fcn.00401ece
mov eax, edi
call fcn.004c8130
ret

Function at 0x405961
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5811a8]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x10], 0
xor edx, edx
push 3
pop eax
inc edx
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], eax
cmp ecx, eax
ja 0x405990
mov edx, dword [ebp + ecx*4 - 0x14]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 8
jb 0x40599b
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x4059a6
mov ecx, dword [ecx]
push ebx
push edx
push 0x573694
push eax
push ecx
push 0x5739d4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 2
lea ecx, [ebp + 8]
setne bl
call fcn.00401ece
lea ecx, [ebp + 0x10]
call fcn.00401ece
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004c77a6
leave
ret
Function at 0x405db6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x405ddd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406390
jmp 0x405e92
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x405dff
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x405e01
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405e86
jg 0x405e16
test esi, esi
je 0x405e86
test ecx, ecx
jl 0x405e69
jg 0x405e20
test eax, eax
je 0x405e69
cmp edi, ecx
jg 0x405e34
jl 0x405e2a
cmp esi, eax
jae 0x405e34
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00402ac6
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
mov eax, dword [ebp + 8]
add eax, ecx
test edi, edi
jl 0x405e86
jg 0x405e6c
test esi, esi
je 0x405e86
jmp 0x405e6c
mov eax, dword [ebp + 8]
cmp dword [ebx + 0x4c], 0
je 0x405e86
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.004e10ad
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x405e9b
Capabilities:
Read file on windows

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
test esi, esi
jg 0x405ebb
jl 0x405eb2
test edi, edi
jne 0x405ebb
xor eax, eax
xor edx, edx
jmp 0x405f82
cmp dword [ebp + 0x38], 0
je 0x405ed1
push esi
push edi
push dword [esp + 0x18]
call fcn.0040645b
jmp 0x405f82
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405f15
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x405f15
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [esp + 0x14]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.00402ac6
mov eax, dword [ebp + 0x2c]
add ebx, esi
mov dword [esp + 0x20], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x405f1d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
cmp dword [ebp + 0x4c], 0
mov ecx, ebx
je 0x405f78
mov ecx, ebp
call fcn.004069b7
mov edx, dword [esp + 0x14]
mov ecx, ebx
jmp 0x405f58
push dword [ebp + 0x4c]
push eax
push 1
push edx
call fcn.004e0bcd
mov edx, dword [esp + 0x24]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x14], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x405f88
mov eax, 0xfff
cmp ebx, eax
ja 0x405f34
test ecx, ecx
je 0x405f78
push dword [ebp + 0x4c]
push ebx
push 1
push edx
call fcn.004e0bcd
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
sbb esi, 0
mov eax, edi
mov edx, esi
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
sub edi, ebx
jmp 0x405f7a
Function at 0x4061ac
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x5811a8]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x4061d1
xor eax, eax
jmp 0x4062a1
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x4061ff
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp]
cmp ecx, eax
jae 0x4061ff
lea ecx, [ebp - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4062a0
cmp dword [esi + 0x4c], 0
je 0x40629e
mov ecx, esi
call fcn.004069b7
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40622b
push dword [esi + 0x4c]
push eax
call fcn.00405694
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40629e
mov byte [esp + 0x10], al
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x21]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x40626f
sub eax, 1
je 0x40626f
dec eax
sub eax, 1
jne 0x40629e
push dword [esi + 0x4c]
push dword [esp + 0x14]
jmp 0x40621d
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x40628e
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.004e10ad
add esp, 0x10
cmp ebp, eax
jne 0x40629e
lea eax, [esp + 0x10]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x18], eax
mov eax, ebx
jne 0x4062a0
mov eax, edi
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c77a6
add esp, 0x30
ret 4

Function at 0x406a02
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5811a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x406a59
cmp byte [esi + 0x3d], bl
je 0x406a59
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x406a92
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, ebx
je 0x406a6a
sub eax, 1
je 0x406a6d
dec eax
sub eax, 1
jne 0x406a92
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c77a6
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406a8a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004e10ad
add esp, 0x10
cmp edi, eax
jne 0x406a92
cmp byte [esi + 0x3d], bl
sete al
jmp 0x406a5b
xor al, al
jmp 0x406a5b
Function at 0x409ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x5811a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x585bcc], 0
push esi
mov esi, dword [ebp + 8]
je 0x40a0a1
push 0x100
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.004d3200
add esp, 0xc
lea eax, [ebp - 0x144]
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40a0a1
lea eax, [ebp - 0x144]
push 0x5c
push eax
call fcn.004d37d0
push str.xcgui_debug.txt
push 0x100
mov byte [eax + 1], 0
lea eax, [ebp - 0x144]
push eax
call fcn.004e3d36
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004e05c2
add esp, 0x1c
mov dword [ebp - 0x19c], 0
cmp dword [ebp - 0x184], 0x19000
lea eax, [ebp - 0x144]
jle 0x409fae
push 0x5066a8
jmp 0x409fb3
push 0x5066ac
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.004df2a4
add esp, 0xc
test eax, eax
jne 0x40a0a1
cmp dword [ebp - 0x19c], eax
je 0x40a0a1
push eax
call fcn.004e25e4
push 0x40
mov dword [ebp - 0x1a4], eax
lea eax, [ebp - 0x44]
push 0
push eax
mov dword [ebp - 0x1a0], edx
call fcn.004d3200
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x148], 0
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x168]
push eax
movups xmmword [ebp - 0x168], xmm0
movups xmmword [ebp - 0x158], xmm0
call fcn.004dedcd
lea eax, [ebp - 0x168]
push eax
push str.__Y__m__d__X_
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004dfda7
lea ecx, [ebp - 0x44]
add esp, 0x28
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a044
push dword [ebp - 0x19c]
sub ecx, edx
lea eax, [ebp - 0x44]
push ecx
push 1
push eax
call fcn.004e10ad
mov ecx, esi
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a067
push dword [ebp - 0x19c]
sub ecx, edx
push ecx
push 1
push esi
call fcn.004e10ad
push dword [ebp - 0x19c]
push 1
push 1
push 0x5736c4
call fcn.004e10ad
push dword [ebp - 0x19c]
call fcn.004df362
add esp, 0x24
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c77a6
mov esp, ebp
pop ebp
ret 4
Function at 0x418470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5811a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push str.XWnd_Show
push 1
push esi
call fcn.00453a90
add esp, 0xc
mov ecx, 0x585ab8
push esi
call fcn.00455bb0
cmp dword [ebp + 0xc], 0
mov esi, eax
mov eax, dword [esi + 0x74]
je 0x4184cb
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418527
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x4184e1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x418527
mov eax, dword [esi + 0x1ec]
cmp eax, 2
je 0x4184f1
cmp eax, 1
jne 0x418518
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x418518
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x74]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00415040
cmp dword [esi + 0x68], 0
je 0x418527
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c77a6
mov esp, ebp
pop ebp
ret 8
Function at 0x41c660
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 0x10
mov esi, ecx
mov dword [ebp - 4], ebx
call edi
bt ax, 0xf
jae 0x41c6b9
cmp dword [esi + 0x4c0], ebx
jne 0x41c6b1
mov ecx, dword [esi + 0x448]
mov eax, dword [ecx + 4]
mov dword [esi + 0x4c4], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x4c8], eax
mov eax, dword [ecx + 4]
mov dword [esi + 0x4cc], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x4d0], eax
mov ebx, 1
mov dword [ebp - 4], ebx
push 0x12
call edi
bt ax, 0xf
jae 0x41c6d4
push 1
mov ecx, esi
call fcn.00426c20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x41c71c
mov edi, dword [esi + 0x4c0]
cmp dword [esi + 0x4bc], ebx
je 0x41c6f4
mov eax, dword [esi + 0x54]
test eax, eax
je 0x41c6f4
push ebx
push eax
call fcn.00417a70
mov dword [esi + 0x4c0], 0
mov dword [esi + 0x4bc], 0
test edi, edi
je 0x41c71c
push 0
mov ecx, esi
call fcn.00431450
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x448]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x41c8a8
dec ebx
cmp dword [edi + 0xc], 1
mov ecx, ebx
jne 0x41c758
test ecx, ecx
js 0x41c756
mov eax, dword [edi + 0x10]
lea edx, [eax + ecx*4]
mov eax, dword [edx]
cmp byte [eax + 0x20], 0
jne 0x41c752
sub edx, 4
sub ecx, 1
jns 0x41c740
jmp 0x41c756
test ecx, ecx
jns 0x41c758
mov ecx, ebx
mov dword [edi + 4], ecx
mov ecx, dword [esi + 0x494]
test ecx, ecx
jle 0x41c76e
mov eax, dword [esi + 0x448]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x448]
push dword [ecx + 4]
call fcn.0048ab40
mov edi, eax
test edi, edi
jne 0x41c7be
mov eax, dword [esi + 0x448]
cmp dword [eax + 0xc], 1
jne 0x41c7be
mov edx, dword [esi + 0x494]
test edx, edx
jne 0x41c7a3
mov edx, dword [eax + 8]
test edx, edx
mov dword [esi + 0x494], edx
jle 0x41c7c8
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*4]
movzx eax, byte [eax + 0x25]
cmp edx, eax
jle 0x41c7c8
mov dword [esi + 0x494], eax
jmp 0x41c7c8
mov dword [esi + 0x494], 0
mov eax, dword [esi + 0x448]
cmp dword [eax + 8], edi
jle 0x41c7dc
mov dword [eax + 8], edi
mov eax, dword [esi + 0x448]
push eax
push dword [eax + 8]
lea ecx, [esi + 0x24c]
push dword [eax + 4]
call fcn.00487d30
movzx ebx, word [esi + 0x4e0]
lea eax, [esi + 0x224]
push eax
lea ecx, [esi + 0x24c]
call fcn.004877a0
dec eax
lea ecx, [esi + 0x24c]
push eax
call fcn.00487530
mov word [esi + 0x4e0], ax
mov ecx, esi
mov eax, dword [esi + 0x448]
push dword [eax + 8]
push dword [eax + 4]
call fcn.0041ca80
test eax, eax
jne 0x41c83e
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x98]
cmp dword [ebp - 4], 0
je 0x41c873
mov ecx, dword [esi + 0x448]
push 0
push dword [esi + 0xd8]
mov eax, dword [ecx + 4]
mov dword [esi + 0x4cc], eax
mov eax, dword [ecx + 8]
mov dword [esi + 0x4d0], eax
mov dword [esi + 0x4c0], 1
call fcn.004337f0
movzx eax, word [esi + 0x4e0]
cmp ax, bx
je 0x41c88e
push 0
push eax
push 0xb8
mov ecx, esi
call fcn.00431a30
push 0
lea ecx, [esi + 0x24c]
call fcn.004877a0
push eax
push 0xb7
mov ecx, esi
call fcn.00431a30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d4b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x480], 0
jne 0x41d517
push dword [esi + 0x54]
call fcn.00417600
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41d517
push ebx
push edi
push 0xd
xor ebx, ebx
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x41d502
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x41d4fb
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x6c]
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0
mov ecx, esi
call fcn.00431450
pop edi
mov eax, ebx
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x41d520
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 0x54]
call fcn.00417600
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41d57f
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [ebp + 0xc]
lea esi, [eax*2 + 2]
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push dword [ebp + 8]
push eax
call fcn.004d1a20
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 8
Function at 0x423dc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, 9
mov esi, ecx
cmp di, word [ebp + 8]
jne 0x423e85
cmp dword [esi + 0x4c0], 0
push 0x10
je 0x423e0a
call dword [sym.imp.USER32.dll_GetKeyState]
xor eax, 0xffffffff
mov ecx, esi
shr eax, 0xb
and eax, 1
push eax
call fcn.00423620
push 0
mov ecx, esi
call fcn.00431450
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xb
jae 0x423e85
mov ecx, dword [esi + 0x448]
push dword [ecx + 4]
call fcn.0048abd0
push eax
lea ecx, [esi + 0x24c]
call fcn.00487310
cmp di, ax
jne 0x424025
mov ecx, esi
call fcn.0041d180
mov eax, dword [esi + 0x448]
mov ecx, esi
push 1
mov eax, dword [eax + 4]
push eax
push 0
push eax
call fcn.0041e1d0
mov eax, dword [esi + 0x448]
push 0
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*4]
mov ecx, esi
mov byte [eax + 0x25], 0
mov dword [esi + 0x474], 1
call fcn.00431450
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov ecx, esi
push ebx
push 1
call dword [eax + 0x60]
lea ebx, [esi + 0x24c]
mov ecx, ebx
call fcn.004877a0
mov ecx, dword [esi + 0x50c]
mov edi, eax
test ecx, ecx
je 0x423ec1
cmp dword [ecx + 4], 0
jne 0x423ec1
cmp dword [ecx + 0x10], edi
jne 0x423ec1
mov eax, dword [esi + 0x494]
inc eax
add eax, edi
mov dword [ecx + 0x10], eax
jmp 0x423f32
mov ecx, esi
call fcn.0041d290
mov eax, dword [esi + 0x50c]
test eax, eax
je 0x423eda
push eax
mov ecx, esi
call fcn.00427cb0
push 0x1c
call fcn.004c7a8c
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x423f08
mov dword [eax], vtable.CEditUI::undo_item_.0
mov dword [eax + 8], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
jmp 0x423f0a
xor eax, eax
mov dword [esi + 0x50c], eax
mov dword [eax + 4], 0
mov eax, dword [esi + 0x50c]
mov dword [eax + 0xc], edi
mov ecx, dword [esi + 0x494]
mov eax, dword [esi + 0x50c]
inc ecx
add ecx, edi
mov dword [eax + 0x10], ecx
cmp dword [esi + 0x494], 0
mov ecx, dword [esi + 0x448]
mov edi, dword [ecx + 4]
mov dword [ebp - 4], edi
jle 0x423f83
xor edi, edi
nop dword [eax]
movzx eax, word [esi + 0x4e0]
mov ecx, ebx
push eax
push 9
push dword [esi + 0x448]
call fcn.004879d0
inc edi
cmp edi, dword [esi + 0x494]
jl 0x423f50
mov ecx, dword [esi + 0x448]
mov edi, dword [ebp - 4]
mov dword [esi + 0x494], 0
movzx eax, word [esi + 0x4e0]
push eax
push dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.004879d0
mov ecx, dword [esi + 0x448]
cmp dword [ecx + 0xc], 1
jne 0x423fb9
push dword [ecx + 4]
push ebx
call fcn.0048bc90
test eax, eax
je 0x423fb9
mov dword [esi + 0x474], 1
mov eax, dword [esi + 0x448]
mov ecx, esi
mov edx, dword [esi]
push dword [eax + 4]
push edi
call dword [edx + 0x94]
push 0
push 0
push 0xb6
mov ecx, esi
mov dword [esi + 0x1a8], 1
mov dword [esi + 0x470], 1
call fcn.00431a30
push 0
mov ecx, ebx
call fcn.004877a0
push eax
push 0xb7
mov ecx, esi
call fcn.00431a30
mov eax, dword [esi + 0x448]
mov ecx, esi
mov edx, dword [esi]
push 0
push 0
push dword [eax + 4]
call dword [edx + 0x64]
push 0
mov ecx, esi
call fcn.00431450
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4