joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d1e9
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x48d2e4
call fcn.004874e0
sub esp, 0x74
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
mov esi, ecx
call fcn.0041ea0a
lea eax, [ebp - 0x10]
xor ebx, ebx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov dword [ebp - 4], ebx
call fcn.0043510b
call fcn.0040ba27
cmp al, bl
pop ecx
je 0x43d26f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push 0x4b6edc
push eax
call fcn.0043574b
push 0x4b8eb8
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
call fcn.004356e0
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0043553d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004353fc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.004353fc
jmp 0x43d27c
push 0x4c1e80
lea ecx, [ebp - 0x10]
call fcn.004355f0
lea ecx, [ebp - 0x14]
call fcn.004350ff
movzx eax, word [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00435b75
push eax
lea eax, [ebp - 0x14]
push str.mstsc.exe__s_v:127.0.0.1:_u
push eax
call fcn.0043647f
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.0040ca88
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.004358fb
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x43d319
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.00430892
add esp, 0xc
lea eax, [ebp - 0x2c]
push 0x49c754
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.0040cac8
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.004353fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004353fc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x43f717
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
cmp dword [esp + 8], 0
je 0x43f726
mov ecx, dword [ecx + 0xc]
jmp fcn.0042d73e
ret 8

Function at 0x441a25
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 0x441b34
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.00441b5c
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 0x441b11
push str.235
push edi
mov ecx, esi
call fcn.004419ed
push 0x4b92f0
push edi
mov ecx, esi
mov dword [ebx], eax
call fcn.004419ed
push 0x4b92ec
push edi
mov ecx, esi
mov dword [esi + 0xc], eax
call fcn.004419ed
push 0x4b92e8
push edi
mov ecx, esi
mov dword [esi + 0x10], eax
call fcn.004419ed
push 0x4b92e4
push edi
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.004419ed
push 0x4b92e0
push edi
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.004419ed
push 0x4b92dc
push edi
mov ecx, esi
mov dword [esi + 0x1c], eax
call fcn.004419ed
push 0x4b92d8
push edi
mov ecx, esi
mov dword [esi + 0x20], eax
call fcn.004419ed
push edi
mov dword [esi + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x441b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4b92b4
push 0x4c2700
call fcn.004319c7
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 0x441b5c
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 0x441c24
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 0x441bdd
push 0xe8
push edi
lea ecx, [ebp - 8]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
cmp dword [ebp + 8], ebx
jg 0x441bf7
push 0xe9
push edi
lea ecx, [ebp - 8]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
cmp dword [ebp + 0xc], ebx
jg 0x441c11
push 0xea
push edi
lea ecx, [ebp - 8]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
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 0x442ed4
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x48d958
call fcn.004874e0
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 0x442f60
mov eax, dword [edi]
call dword [eax + 0x10]
test al, al
je 0x443061
lea eax, [edi + 4]
lea ecx, [ebp - 0x14]
push eax
call fcn.0043510b
mov edi, dword [edi + 0xf8]
xor ebx, ebx
add esi, edi
lea ecx, [ebp + 8]
push esi
mov dword [ebp - 4], ebx
call fcn.0043510b
push 5
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00435b75
push eax
push ebx
lea ecx, [ebp + 8]
call fcn.00435b75
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.004353fc
lea ecx, [ebp - 0x14]
jmp 0x443058
lea ecx, [ebp - 0x10]
call fcn.004350ff
lea ecx, [edi + 4]
mov dword [ebp - 4], 2
call fcn.00435b75
mov ebx, eax
cmp word [ebx], 0
je 0x442fc8
cmp dword [ebp + 8], 0
jne 0x442fc8
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
sub eax, 2
pop ecx
js 0x443046
cmp word [ebx + eax*2], 0x5c
je 0x442fa5
dec eax
jns 0x442f96
jmp 0x443046
lea esi, [eax + 1]
lea ecx, [ebp - 0x10]
push esi
push ebx
push esi
call fcn.004358fb
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [ebp - 0x10]
push esi
call fcn.004359d1
jmp 0x443046
mov eax, dword [edi + 0xf8]
add eax, esi
mov ecx, dword [eax + 4]
cmp ecx, 4
je 0x443055
cmp ecx, 0x10
jne 0x442fee
lea eax, [edi + 0x108]
push eax
lea ecx, [ebp - 0x10]
call fcn.0043553d
jmp 0x443046
cmp ecx, 0x11
jne 0x442ffb
lea eax, [edi + 0x10c]
jmp 0x442fe3
cmp ecx, 1
push eax
je 0x442fe4
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00435674
push 0x5c
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call fcn.00435b11
add esp, 0x18
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0043553d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004353fc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004353fc
mov esi, dword [edi]
lea ecx, [ebp - 0x10]
call fcn.00435b75
push eax
mov ecx, edi
call dword [esi]
lea ecx, [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
call fcn.004353fc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x446e56
Capabilities:
Get file size

Disassembly:
mov eax, 0x48e074
call fcn.004874e0
sub esp, 0x1c
mov al, byte [0x4c2676]
push ebx
push esi
push edi
mov esi, ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00420d2f
xor ebx, ebx
mov dword [ebp - 4], ebx
jmp 0x446f9d
mov eax, dword [esi + 0x1a0]
add eax, 0xc0
push eax
mov eax, dword [esi + 0xf0]
add eax, 0x1bc
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00435674
add esp, 0xc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00435b75
push eax
call fcn.00456eb5
mov edi, eax
pop ecx
cmp edi, ebx
je 0x446ed1
lea ecx, [ebp - 0x10]
call fcn.00435b75
push eax
push edi
push str.Error__d_while_create_local_folder__d
jmp 0x446f63
mov eax, dword [esi + 0x1a0]
add eax, 0xc0
push eax
call fcn.0045711f
test al, al
pop ecx
jne 0x446f92
cmp dword [esi + 0x160], 0xffffffff
je 0x446f0d
push 0x104
push str.S:Ammyy_sources_viewerVrFmBlockR.cpp
lea ecx, [ebp - 0x28]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
push ebx
push 0x20
push 4
push ebx
push 1
push 0xc0000000
lea ecx, [ebp - 0x10]
call fcn.00435b75
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x160], eax
jne 0x446f45
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_while_opening_local_file__s
jmp 0x446f63
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x446f6e
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.004435f5
add esp, 0x10
jmp 0x446f92
cmp dword [ebp - 0x14], ebx
jl 0x446f7e
jg 0x446f7a
cmp dword [ebp - 0x18], ebx
jbe 0x446f7e
mov al, 1
jmp 0x446f80
xor al, al
push eax
mov ecx, esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00446fdf
test al, al
jne 0x446fb9
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004353fc
mov ecx, esi
call fcn.004464b8
mov ecx, dword [esi + 0x1a0]
call fcn.004428ba
test al, al
je 0x446e80
jmp 0x446fc4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.004353fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00420d63
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x446fdf
Capabilities:
Clear file content

Disassembly:
mov eax, 0x48e090
call fcn.004874e0
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 0x44709a
test edi, edi
jl 0x447012
jg 0x44700d
cmp dword [ebp + 8], 0
jbe 0x447012
xor eax, eax
inc eax
jmp 0x447014
xor eax, eax
mov byte [esi + 0x194], al
mov eax, dword [esi + 0x1a0]
push dword [eax + 0xc0]
lea eax, [esi + 0x190]
push str._s_n_nThis_file_already_exists_on_local_computer.
push eax
call fcn.0043647f
mov ecx, dword [esi + 0xf0]
add esp, 0xc
call fcn.0042dacc
push eax
lea ecx, [esi + 0x168]
call fcn.004489c5
cmp eax, 0x3f2
jne 0x4471ca
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x160]
call fcn.00456b18
add esp, 0x10
test eax, eax
je 0x447096
mov ecx, dword [esi + 0x1a0]
push dword [ecx + 0xc0]
push eax
push str.Error__d_while_getting_md5_for_local_file__s
push esi
call fcn.004435f5
add esp, 0x10
jmp 0x447214
mov byte [ebp - 0x10], 1
cmp byte [0x4c2694], 0
je 0x4470a7
or byte [ebp - 0x10], 4
push ebx
lea ecx, [ebp - 0x40]
call fcn.004320d4
xor ebx, ebx
push 0x40
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.004322ad
push ebx
lea ecx, [ebp - 0x40]
call fcn.004322bc
push dword [ebp - 0x10]
lea ecx, [ebp - 0x40]
call fcn.004322ad
test byte [ebp - 0x10], 1
mov dword [ebp - 0x14], ebx
je 0x4470fe
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.00456f48
add esp, 0xc
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push 0x10
push eax
call fcn.00432271
mov dword [ebp - 0x14], edi
mov eax, dword [esi + 0x1a0]
add eax, 0xc0
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00435674
add esp, 0xc
lea ecx, [ebp - 0x40]
push 1
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00435b75
push eax
call fcn.0040c6d6
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.004353fc
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 0x447177
push 0x14d
push str.S:Ammyy_sources_viewerVrFmBlockR.cpp
lea ecx, [ebp + 8]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
mov al, byte [ebp - 0x10]
push 1
push dword [ebp - 0x34]
mov byte [esi + 0x11c], al
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x40]
mov byte [edi], 0x40
mov dword [esi + 0x120], ebx
mov dword [esi + 0x124], eax
call fcn.0042dacc
mov ecx, dword [esi + 0x19c]
push eax
call fcn.0042d448
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00432196
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 0x447202
push dword [esi + 0x160]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44709a
mov eax, dword [esi + 0x1a0]
push dword [eax + 0xc0]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_while_SetEndOfFile___for_local_file__s
jmp 0x447088
cmp eax, 2
jne 0x447214
mov eax, dword [esi + 0x1a0]
mov byte [eax + 0xc4], 1
xor al, al
jmp 0x4471ba
Function at 0x447d26
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x128], 0x17
jne 0x447d43
push 1
push 0
push 0
call fcn.00446fdf
test al, al
je 0x447d69
pop esi
ret
mov ecx, dword [esi + 0x1a0]
add ecx, 0xc0
call fcn.00435b75
push eax
push dword [esi + 0x128]
push str.Error__d_while_opening_remote_file__s
push esi
call fcn.004435f5
add esp, 0x10
mov ecx, esi
pop esi
jmp fcn.00446e56

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

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi + 0x404]
cmp byte [eax + 0xf7c], bl
je 0x448d9b
cmp byte [eax + 0xbd4], bl
je 0x448d9b
cmp dword [eax + 0xc94], 0x300800
jb 0x448d9b
mov al, 1
jmp 0x448d9d
xor al, al
lea ecx, [esi + 0x401]
cmp al, byte [ecx]
je 0x448e12
cmp al, bl
mov byte [ecx], al
je 0x448e02
cmp byte [0x4c26bd], bl
je 0x448e09
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x14
call edi
mov ecx, dword [esi + 0x404]
and al, 1
push ebx
push eax
push 0x14
call fcn.0043ba2d
mov ebp, 0x90
push ebp
call edi
mov ecx, dword [esi + 0x404]
and al, 1
push ebx
push eax
push ebp
call fcn.0043ba2d
inc ebp
push ebp
call edi
mov ecx, dword [esi + 0x404]
and al, 1
push ebx
push eax
push ebp
call fcn.0043ba2d
pop edi
pop ebp
jmp 0x448e09
mov ecx, esi
call fcn.00448e15
mov ecx, esi
pop esi
pop ebx
jmp fcn.00448e9a
pop esi
pop ebx
ret
Function at 0x448e9a
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x48e27c
call fcn.004874e0
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x4c2a70
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], ebx
call fcn.004315f1
cmp byte [esi + 0x400], bl
mov byte [ebp - 4], 1
je 0x448f19
cmp byte [esi + 0x401], bl
je 0x448f19
cmp byte [esi + 0x408], bl
je 0x448f19
mov eax, dword [0x4c2a8c]
mov byte [ebp - 0x11], 1
cmp eax, ebx
je 0x448f1c
cmp eax, dword [esi + 0x404]
je 0x448f09
push 0x7f
push str.ERROR_u_in_HookKeyboard__
push 0x4c2700
call fcn.004319c7
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00431605
jmp 0x449071
mov byte [ebp - 0x11], bl
movzx eax, byte [ebp - 0x11]
push eax
mov edi, 0x4c2700
push str.HookKeyboard__X
push edi
call fcn.004319df
add esp, 0xc
cmp byte [ebp - 0x11], bl
je 0x448fcc
cmp dword [0x4c2a90], ebx
jne 0x448fbc
cmp dword [0x4c2a8c], ebx
je 0x448f6b
lea eax, [ebp - 0x2c]
push str.ERROR1_in_HookKeyboard__
push eax
call fcn.00430892
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push 0x49c754
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 0x449080
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
cmp eax, ebx
mov dword [0x4c2a90], eax
jne 0x448fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x38]
push str.Error_d_while_SetWindowsHookEx__
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x38]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [esi + 0x404]
mov dword [0x4c2a8c], eax
jmp 0x448f09
mov eax, dword [0x4c2a8c]
cmp eax, ebx
jne 0x448fe8
cmp dword [0x4c2a90], ebx
je 0x448f09
push 0x96
jmp 0x44901b
mov ecx, dword [0x4c2a90]
cmp ecx, ebx
je 0x448f09
cmp eax, dword [esi + 0x404]
jne 0x449016
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x4c2a90], ebx
mov dword [0x4c2a8c], ebx
jmp 0x448f09
push 0xa4
push str.ERROR_u_in_HookKeyboard__
push edi
jmp 0x448f01
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x44a44c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0042bfa8
mov edi, eax
add esp, 0xc
test edi, edi
je 0x44a4fc
push esi
push 0x10
push dword [ebp + 0x18]
lea eax, [ebp - 0x13]
mov byte [ebp - 0x14], 0x25
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [0x4c2962], 0
lea eax, [ebp - 0x14]
push 0x11
pop esi
je 0x44a4ec
cmp dword [ebp + 0x1c], 0x302c00
jb 0x44a4ec
lea eax, [ebp - 0x38]
push 0x1c
push eax
call fcn.0040c4bd
lea eax, [ebp - 0x14]
push esi
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.004212c5
movzx esi, ax
add esp, 0x18
cmp esi, 0x80
jbe 0x44a4e6
push 0x88
push str.S:Ammyy_sources_targetTrClient.cpp
lea ecx, [ebp - 0x1c]
call fcn.0042e609
mov ecx, eax
call fcn.0042e715
lea eax, [ebp - 0xb8]
push 0
push esi
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
pop esi
je 0x44a500
xor al, al
jmp 0x44a50b
mov ecx, dword [ebp + 8]
push edi
call fcn.0042bd93
mov al, 1
pop edi
leave
ret
Function at 0x44b945
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x1c
push 0
push esi
call sub.MSVCRT.dll_memset
movzx ax, byte [ebp + 0xc]
mov word [esi + 4], ax
mov al, byte [ebp + 0x10]
add esp, 0xc
mov dword [esi], 1
neg al
sbb eax, eax
push 0
and al, 0xfe
inc eax
inc eax
mov dword [esi + 8], eax
movzx eax, byte [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0x14], 0
mov word [esi + 6], ax
je 0x44b991
or dword [esi + 8], 1
pop esi
pop ebp
ret
Function at 0x44d000
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, 0x48e8f4
call fcn.004874e0
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push esi
push edi
lea ecx, [ebp - 0x30]
lea eax, [eax + eax + 1]
push eax
call fcn.0043210a
and dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0042dacc
mov edx, dword [ebp + 0xc]
mov esi, eax
mov cl, byte [edx]
inc edx
cmp cl, 0xa
jne 0x44d03c
mov byte [eax], 0xd
inc eax
mov byte [eax], cl
inc eax
test cl, cl
jne 0x44d030
push 0xffffffffffffffff
lea eax, [ebp + 0x10]
push esi
push eax
call fcn.0040c7bd
add esp, 0xc
mov byte [ebp - 4], 1
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
test al, al
jne 0x44d0a0
inc esi
cmp esi, 3
jge 0x44d07a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x44d058
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.Failed_to_open_clipboard__error_d
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x44d0d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
lea eax, [ebp - 0x18]
push str.Failed_to_empty_clipboard__error_d
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp + 0x10]
call fcn.00435b53
lea edi, [eax + eax + 2]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x44d156
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
lea ecx, [ebp + 0x10]
mov ebx, eax
call fcn.00435b75
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
pop ebx
jne 0x44d156
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
lea eax, [ebp - 0x18]
push str.Failed_to_set_clipboard__error_d
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x44d186
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x18]
push str.Failed_to_close_clipboard__error_d
push eax
call fcn.00430892
add esp, 0xc
lea eax, [ebp - 0x18]
push 0x49c754
push eax
call sub.MSVCRT.dll__CxxThrowException
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004353fc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00432196
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x44d2e5
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov eax, 0x48e914
call fcn.004874e0
sub esp, 0xc
and byte [ebp - 0x11], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x44d3bc
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
mov dword [ebp + 8], eax
je 0x44d365
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x44d342
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetClipboardText_____ERROR__d_in_GlobalLock__
push 0x4c2700
call fcn.004319c7
add esp, 0xc
jmp 0x44d365
and dword [ebp - 4], 0
push 1
push dword [ebp + 0xc]
push eax
call fcn.0040c6d6
add esp, 0xc
mov byte [ebp - 0x11], 1
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x44d388
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_close_clipboard__error_d
push 0x4c2700
call fcn.004319c7
add esp, 0xc
cmp byte [ebp - 0x11], 0
je 0x44d3bc
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0xc], 0
jbe 0x44d3bc
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov esi, eax
mov ecx, eax
mov dl, byte [esi]
inc esi
cmp dl, 0xd
je 0x44d3a2
mov byte [ecx], dl
inc ecx
test dl, dl
jne 0x44d3a2
mov edx, dword [edi]
sub ecx, eax
dec ecx
push ecx
mov ecx, edi
call dword [edx + 0x20]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4500cf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x40]
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, dword [edx]
push edi
mov edi, dword [ecx + 0x48]
imul eax, ebx
imul edi, esi
add eax, edi
mov edi, dword [edx + 8]
mov edx, dword [edx + 0xc]
add eax, dword [ecx + 8]
sub edx, esi
mov esi, dword [ecx + 0x44]
sub edi, ebx
sub esi, edi
test edx, edx
jle 0x450159
shl esi, 2
mov dword [ebp - 8], esi
mov dword [ebp - 4], edx
test edi, edi
jle 0x450151
mov dword [ebp + 8], edi
mov edx, dword [eax]
add eax, 4
mov esi, edx
mov ebx, edx
shr esi, 0xd
and esi, 0xff
and ebx, 0xff
xor esi, ebx
mov esi, dword [ecx + esi*4 + 0x8a8]
jmp 0x45013d
cmp dword [esi + 8], edx
je 0x450160
mov esi, dword [esi]
test esi, esi
jne 0x450136
or dl, 0xff
mov esi, dword [ebp + 0xc]
inc dword [ebp + 0xc]
dec dword [ebp + 8]
mov byte [esi], dl
jne 0x450113
add eax, dword [ebp - 8]
dec dword [ebp - 4]
jne 0x45010c
pop edi
pop esi
pop ebx
leave
ret 0xc
mov dl, byte [esi + 4]
jmp 0x450144