joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ec0a
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x484ceb
call fcn.004801f0
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], edi
call fcn.00430750
push edi
push edi
xor ebx, ebx
push 0xe
push dword [esi + 4]
inc ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
jbe 0x42ec61
inc edi
lea ecx, [ebp - 0x10]
push edi
call fcn.00430f4c
push eax
push edi
push 0xd
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
lea ecx, [ebp - 0x10]
call fcn.00431022
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0043075c
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00430a4d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x431bb8
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x484f3c
call fcn.004801f0
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x10], esi
call fcn.0042ecee
lea ecx, [esi + 0x28]
mov dword [ebp - 4], ebx
call fcn.0042f0da
push 0xf
mov dword [esi], 0x4907d0
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0x64
mov dword [esi + 0x24], ebx
mov dword [esi + 0x30], 0xff000000
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x34], eax
mov dword [esi + 0x18], 0xff000000
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x38], ebx
mov dword [esi + 0x10], 0x24
mov byte [esi + 0x14], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x43294f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
call fcn.00432a1b
mov ecx, esi
call fcn.0043311e
mov ecx, dword [esi + 0xba8]
mov edi, dword [esi + 0xba4]
mov eax, ecx
xor ebx, ebx
imul eax, eax, 0x190
cdq
idiv edi
push ebx
mov byte [esi + 0xcac], bl
mov dword [esi + 0x218], eax
mov eax, ecx
imul eax, eax, 0xc8
cdq
idiv edi
mov ecx, esi
mov dword [esi + 0x21c], eax
call fcn.0043425f
push ebx
push 1
mov ecx, esi
call fcn.004393f1
push 0x4abbd4
mov ecx, esi
call fcn.004328fb
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push 0x4b5350
call fcn.00430b0d
mov ecx, esi
call fcn.004382a1
push ebx
push ebx
push esi
push 0x4373d4
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0xe58], eax
jne 0x432a16
call dword [sym.imp.MSVCRT.dll__errno]
push dword [eax]
lea eax, [ebp - 0x10]
push str.Failed__beginthreadex____errno___d_
push eax
call fcn.0042c02a
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43833f
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x485798
call fcn.004801f0
sub esp, 0x74
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov esi, ecx
call fcn.0041bd79
lea eax, [ebp - 0x10]
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov dword [ebp - 4], ebx
call fcn.0043075c
call fcn.0040b62f
cmp al, bl
pop ecx
je 0x4383c5
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push 0x4aa6d4
push eax
call fcn.00430d9c
push 0x4ac5e0
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.00430d31
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00430b8e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00430a4d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.00430a4d
jmp 0x4383d2
push 0x4b5350
lea ecx, [ebp - 0x10]
call fcn.00430c41
lea ecx, [ebp - 0x14]
call fcn.00430750
movzx eax, word [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004311c6
push eax
lea eax, [ebp - 0x14]
push str.mstsc.exe__s_v:127.0.0.1:_u
push eax
call fcn.00431aa4
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0x7c]
push 0x10
pop ecx
rep stosd dword es:[edi], eax
inc eax
lea ecx, [ebp - 0x20]
push eax
mov dword [ebp - 0x80], 0x44
mov dword [ebp - 0x54], eax
mov word [ebp - 0x50], 5
call fcn.0040c673
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 4
call fcn.00430f4c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x43846f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x2c]
push str.ERROR:_Failed_to_run_RDP_client__error_d
push eax
call fcn.0042c02a
add esp, 0xc
lea eax, [ebp - 0x2c]
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.0040c6b3
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x14]
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 4], eax
mov byte [ebp - 4], bl
call fcn.00430a4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00430a4d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x4386cc
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, 0x4857d0
call fcn.004801f0
sub esp, 0x1c
push esi
mov esi, ecx
cmp byte [esi + 0xf24], 0
je 0x4387d2
cmp byte [esi + 0xc6c], 0
je 0x4387d2
mov eax, dword [esi + 0xc3c]
shr eax, 3
test al, 1
je 0x4387d2
call dword [sym.imp.USER32.dll_GetClipboardOwner]
cmp eax, dword [esi + 0x6a4]
je 0x4387d2
cmp byte [esi + 0xb9e], 0
je 0x4387d2
lea ecx, [esi + 0xb54]
push edi
mov dword [ebp - 0x10], ecx
call fcn.0042cce0
push dword [esi + 0x6a4]
and dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4387c5
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x43875f
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4387c5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.0042d733
lea eax, [ebp - 0x28]
push 1
push eax
push ebx
mov byte [ebp - 4], 1
call fcn.0040c2db
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [ebp - 0x28]
call fcn.0042e949
mov edi, eax
mov ecx, eax
pop ebx
mov dl, byte [edi]
inc edi
cmp dl, 0xd
je 0x43879e
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x43879e
sub ecx, eax
dec ecx
push ecx
push eax
mov ecx, esi
call fcn.00436fdd
and byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042d7f5
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
call fcn.0045a569
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x43c9bd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x28]
add dword [esi + 0x28], 1
test eax, eax
jne 0x43cacc
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x208]
push 1
push eax
mov ecx, esi
call fcn.0043caf4
lea ebx, [esi + 8]
push 8
mov dword [esi + 4], eax
pop ecx
or eax, 0xffffffff
mov edi, ebx
rep stosd dword es:[edi], eax
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x43caa9
push str.235
push edi
mov ecx, esi
call fcn.0043c985
push 0x4aca58
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.0043c985
push 0x4aca54
push edi
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.0043c985
push 0x4aca50
push edi
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.0043c985
push 0x4aca4c
push edi
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.0043c985
push 0x4aca48
push edi
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.0043c985
push 0x4aca44
push edi
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.0043c985
push 0x4aca40
push edi
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.0043c985
push edi
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43cacc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4aca1c
push 0x4b5b78
call fcn.0042d050
add esp, 0xc
or eax, 0xffffffff
mov edi, ebx
push 8
pop ecx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43caf4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov ecx, 0xac
xor eax, eax
lea edi, [ebp - 0x2b8]
mov dword [ebp - 0x2bc], ebx
rep stosd dword es:[edi], eax
mov al, byte [ebp + 0xc]
neg al
sbb eax, eax
and eax, 0x3ff0
add eax, 0x10
or ax, 0x101
push eax
lea eax, [ebp - 0x2bc]
push 0x2b4
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
cmp byte [ebp + 0xc], bl
je 0x43cbbc
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetIconSize]
cmp dword [esi], ebx
mov edi, str.S:Ammyy_sources_viewerVrFm1.cpp
je 0x43cb75
push 0xe8
push edi
lea ecx, [ebp - 8]
call fcn.00429ea1
mov ecx, eax
call fcn.00429fad
cmp dword [ebp + 8], ebx
jg 0x43cb8f
push 0xe9
push edi
lea ecx, [ebp - 8]
call fcn.00429ea1
mov ecx, eax
call fcn.00429fad
cmp dword [ebp + 0xc], ebx
jg 0x43cba9
push 0xea
push edi
lea ecx, [ebp - 8]
call fcn.00429ea1
mov ecx, eax
call fcn.00429fad
push 0xa
push ebx
push 0x21
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [esi], eax
push dword [ebp - 0x2bc]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
push dword [ebp - 0x2bc]
mov esi, eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43dd85
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x485dc8
call fcn.004801f0
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
shl esi, 5
mov eax, dword [edi + 0xf8]
cmp dword [esi + eax + 4], 4
jne 0x43de11
mov eax, dword [edi]
call dword [eax + 0x10]
test al, al
je 0x43df12
lea eax, [edi + 4]
lea ecx, [ebp - 0x14]
push eax
call fcn.0043075c
mov edi, dword [edi + 0xf8]
xor ebx, ebx
add esi, edi
lea ecx, [ebp + 8]
push esi
mov dword [ebp - 4], ebx
call fcn.0043075c
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004311c6
push eax
push ebx
lea ecx, [ebp + 8]
call fcn.004311c6
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
and byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.00430a4d
lea ecx, [ebp - 0x14]
jmp 0x43df09
lea ecx, [ebp - 0x10]
call fcn.00430750
lea ecx, [edi + 4]
mov dword [ebp - 4], 2
call fcn.004311c6
mov ebx, eax
cmp word [ebx], 0
je 0x43de79
cmp dword [ebp + 8], 0
jne 0x43de79
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
sub eax, 2
pop ecx
js 0x43def7
cmp word [ebx + eax*2], 0x5c
je 0x43de56
dec eax
jns 0x43de47
jmp 0x43def7
lea esi, [eax + 1]
lea ecx, [ebp - 0x10]
push esi
push ebx
push esi
call fcn.00430f4c
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [ebp - 0x10]
push esi
call fcn.00431022
jmp 0x43def7
mov eax, dword [edi + 0xf8]
add eax, esi
mov ecx, dword [eax + 4]
cmp ecx, 4
je 0x43df06
cmp ecx, 0x10
jne 0x43de9f
lea eax, [edi + 0x108]
push eax
lea ecx, [ebp - 0x10]
call fcn.00430b8e
jmp 0x43def7
cmp ecx, 0x11
jne 0x43deac
lea eax, [edi + 0x10c]
jmp 0x43de94
cmp ecx, 1
push eax
je 0x43de95
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00430cc5
push 0x5c
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.00431162
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00430b8e
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00430a4d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00430a4d
mov esi, dword [edi]
lea ecx, [ebp - 0x10]
call fcn.004311c6
push eax
mov ecx, edi
call dword [esi]
lea ecx, [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
call fcn.00430a4d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x441d14
Capabilities:
Get file size

Disassembly:
mov eax, 0x4864e8
call fcn.004801f0
sub esp, 0x18
mov al, byte [0x4b5b06]
push ebx
push esi
push edi
mov esi, ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0041dffe
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x441e5b
mov eax, dword [esi + 0x188]
add eax, 0xc0
push eax
mov eax, dword [esi + 0xf0]
add eax, 0x1a4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00430cc5
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004311c6
push eax
call fcn.00450fd7
mov edi, eax
pop ecx
cmp edi, ebx
je 0x441d8f
lea ecx, [ebp - 0x10]
call fcn.004311c6
push eax
push edi
push str.Error__d_while_create_local_folder__d
jmp 0x441e21
mov eax, dword [esi + 0x188]
add eax, 0xc0
push eax
call fcn.00451241
test al, al
pop ecx
jne 0x441e50
cmp dword [esi + 0x160], 0xffffffff
je 0x441dcb
push 0x102
push str.S:Ammyy_sources_viewerVrFmBlockR.cpp
lea ecx, [ebp - 0x24]
call fcn.00429ea1
mov ecx, eax
call fcn.00429fad
push ebx
push 0x20
push 4
push ebx
push 1
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.004311c6
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x160], eax
jne 0x441e03
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_while_opening_local_file__s
jmp 0x441e21
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x441e2c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_GetFileSizeEx___for_local_file__s
push esi
call fcn.0043e4a6
add esp, 0x10
jmp 0x441e50
cmp dword [ebp - 0x18], ebx
jl 0x441e3c
jg 0x441e38
cmp dword [ebp - 0x1c], ebx
jbe 0x441e3c
mov al, 1
jmp 0x441e3e
xor al, al
push eax
mov ecx, esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.00441e9d
test al, al
jne 0x441e77
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00430a4d
mov ecx, esi
call fcn.004413b8
mov ecx, dword [esi + 0x188]
call fcn.0043d771
test al, al
je 0x441d3e
jmp 0x441e82
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.00430a4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041e01b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x441e9d
Capabilities:
Clear file content

Disassembly:
mov eax, 0x486504
call fcn.004801f0
sub esp, 0x34
and byte [ebp - 0x10], 0
cmp byte [ebp + 0x10], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x441f58
test edi, edi
jl 0x441ed0
jg 0x441ecb
cmp dword [ebp + 8], 0
jbe 0x441ed0
xor eax, eax
inc eax
jmp 0x441ed2
xor eax, eax
mov byte [esi + 0x17c], al
mov eax, dword [esi + 0x188]
push dword [eax + 0xc0]
lea eax, [esi + 0x178]
push str._s_n_nThis_file_already_exists_on_local_computer.
push eax
call fcn.00431aa4
mov ecx, dword [esi + 0xf0]
add esp, 0xc
call fcn.0042e949
push eax
lea ecx, [esi + 0x168]
call fcn.0044368b
cmp eax, 0x3f2
jne 0x44208b
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x160]
call fcn.00450c3a
add esp, 0x10
test eax, eax
je 0x441f54
mov ecx, dword [esi + 0x188]
push dword [ecx + 0xc0]
push eax
push str.Error__d_while_getting_md5_for_local_file__s
push esi
call fcn.0043e4a6
add esp, 0x10
jmp 0x4420d5
mov byte [ebp - 0x10], 1
cmp byte [0x4b5b24], 0
je 0x441f65
or byte [ebp - 0x10], 4
push ebx
lea ecx, [ebp - 0x40]
call fcn.0042d733
xor ebx, ebx
push 0x40
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.0042d908
push ebx
lea ecx, [ebp - 0x40]
call fcn.0042d917
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.0042d908
test byte [ebp - 0x10], 1
mov dword [ebp - 0x14], ebx
je 0x441fbc
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0045106a
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push 0x10
push eax
call fcn.0042d8d0
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 0x188]
add eax, 0xc0
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00430cc5
add esp, 0xc
lea ecx, [ebp - 0x40]
push 1
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004311c6
push eax
call fcn.0040c2db
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.00430a4d
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
lea edi, [eax - 3]
mov eax, dword [ebp - 0x40]
call dword [eax + 0x14]
mov word [eax + 1], di
lea edi, [esi + 0x110]
cmp byte [edi], 0
je 0x442035
push 0x14b
push str.S:Ammyy_sources_viewerVrFmBlockR.cpp
lea ecx, [ebp + 8]
call fcn.00429ea1
mov ecx, eax
call fcn.00429fad
mov al, byte [ebp - 0x10]
mov dword [esi + 0x120], ebx
mov byte [esi + 0x11c], al
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x124], eax
add esi, 0x184
push 1
mov byte [edi], 0x40
mov eax, dword [esi]
push dword [ebp - 0x34]
lea ecx, [ebp - 0x40]
mov edi, dword [eax]
call fcn.0042e949
mov ecx, dword [esi]
push eax
call dword [edi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0042d7f5
mov al, 1
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0xc
cmp eax, 0x3f1
jne 0x4420c3
push dword [esi + 0x160]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x441f58
mov eax, dword [esi + 0x188]
push dword [eax + 0xc0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_while_SetEndOfFile___for_local_file__s
jmp 0x441f46
cmp eax, 2
jne 0x4420d5
mov eax, dword [esi + 0x188]
mov byte [eax + 0xc4], 1
xor al, al
jmp 0x44207b
Function at 0x442b51
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x128], 0x17
jne 0x442b6e
push 1
push 0
push 0
call fcn.00441e9d
test al, al
je 0x442b94
pop esi
ret
mov ecx, dword [esi + 0x188]
add ecx, 0xc0
call fcn.004311c6
push eax
push dword [esi + 0x128]
push str.Error__d_while_opening_remote_file__s
push esi
call fcn.0043e4a6
add esp, 0x10
mov ecx, esi
pop esi
jmp fcn.00441d14

Function at 0x443a1c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x404]
cmp byte [eax + 0xf24], 0
je 0x443a49
cmp byte [eax + 0xb9c], 0
je 0x443a49
cmp dword [eax + 0xc54], 0x300800
jb 0x443a49
mov bl, 1
jmp 0x443a4b
xor bl, bl
lea edi, [esi + 0x401]
cmp bl, byte [edi]
je 0x443ad2
movzx eax, bl
push eax
push str.OnChangeValues__u__n
call fcn.00407fc1
pop ecx
mov byte [edi], bl
test bl, bl
pop ecx
je 0x443ac1
cmp byte [0x4b5b4d], 0
je 0x443ac8
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push ebp
push 0x14
call edi
mov ecx, dword [esi + 0x404]
xor ebx, ebx
and al, 1
push ebx
push eax
push 0x14
call fcn.00436f5a
mov ebp, 0x90
push ebp
call edi
mov ecx, dword [esi + 0x404]
and al, 1
push ebx
push eax
push ebp
call fcn.00436f5a
inc ebp
push ebp
call edi
mov ecx, dword [esi + 0x404]
and al, 1
push ebx
push eax
push ebp
call fcn.00436f5a
pop ebp
jmp 0x443ac8
mov ecx, esi
call fcn.00443ad6
mov ecx, esi
pop edi
pop esi
pop ebx
jmp fcn.00443b5b
pop edi
pop esi
pop ebx
ret
Function at 0x443b5b
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x4866a0
call fcn.004801f0
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x4b5e8c
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
call fcn.0042ccf6
cmp byte [esi + 0x400], bl
mov byte [ebp - 4], 1
je 0x443bda
cmp byte [esi + 0x401], bl
je 0x443bda
cmp byte [esi + 0x408], bl
je 0x443bda
mov eax, dword [0x4b5ea8]
mov byte [ebp - 0x11], 1
cmp eax, ebx
je 0x443bdd
cmp eax, dword [esi + 0x404]
je 0x443bca
push 0x7f
push str.ERROR_u_in_HookKeyboard__
push 0x4b5b78
call fcn.0042d050
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.0042cd0a
jmp 0x443d2c
mov byte [ebp - 0x11], bl
movzx eax, byte [ebp - 0x11]
push eax
mov edi, 0x4b5b78
push str.HookKeyboard__X
push edi
call fcn.0042d068
add esp, 0xc
cmp byte [ebp - 0x11], bl
je 0x443c8d
cmp dword [0x4b5eac], ebx
jne 0x443c7d
cmp dword [0x4b5ea8], ebx
je 0x443c2c
lea eax, [ebp - 0x2c]
push str.ERROR1_in_HookKeyboard__
push eax
call fcn.0042c02a
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x200
push ebx
push esi
call sub.MSVCRT.dll_memset
add esp, 0xc
push ebx
push 0x400000
push 0x443d3b
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp eax, ebx
mov dword [0x4b5eac], eax
jne 0x443c7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push str.Error_d_while_SetWindowsHookEx__
push eax
call fcn.0042c02a
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x49451c
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x404]
mov dword [0x4b5ea8], eax
jmp 0x443bca
mov eax, dword [0x4b5ea8]
cmp eax, ebx
jne 0x443ca9
cmp dword [0x4b5eac], ebx
je 0x443bca
push 0x96
jmp 0x443cdc
mov ecx, dword [0x4b5eac]
cmp ecx, ebx
je 0x443bca
cmp eax, dword [esi + 0x404]
jne 0x443cd7
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x4b5eac], ebx
mov dword [0x4b5ea8], ebx
jmp 0x443bca
push 0xa4
push str.ERROR_u_in_HookKeyboard__
push edi
jmp 0x443bc2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4440a1
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x48670d
call fcn.004801f0
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0042e914
mov dword [esi], 0x488c60
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
call fcn.0042f0da
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 1
call fcn.0042f0da
push fcn.0040da9d
push 0x41a5a2
lea eax, [esi + 0x44]
push 7
push 0xc
push eax
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call fcn.004803d3
lea ebx, [esi + 0x98]
push edi
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0042e914
mov edi, 0x488c54
mov dword [ebx], edi
lea ebx, [esi + 0xa4]
push 0
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.0042e914
mov dword [ebx], edi
and byte [esi + 0x13], 0
mov ecx, esi
mov byte [ebp - 4], 5
mov dword [esi], 0x490960
mov dword [esi + 0xc], 0xae
call fcn.004448a5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x444d60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00427b3d
mov esi, eax
add esp, 0xc
test esi, esi
je 0x444da7
push 0x10
lea eax, [ebp - 0x13]
push dword [ebp + 0x18]
mov byte [ebp - 0x14], 0x25
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push 0x11
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0x11
je 0x444dab
xor al, al
jmp 0x444db6
mov ecx, dword [ebp + 8]
push esi
call fcn.00427928
mov al, 1
pop esi
leave
ret