joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453660
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f7c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp + 0xc]
call fcn.0040b760
push eax
mov ecx, dword [ebp + 8]
call fcn.00422500
mov ecx, eax
call fcn.0040b760
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp + 0x24]
test eax, eax
je 0x4536ba
mov ecx, dword [ebp + 8]
push ecx
call fcn.004536f0
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4536c6
mov byte [ebp - 0xd], 1
jmp 0x4536ca
mov byte [ebp - 0xd], 0
mov dl, byte [ebp - 0xd]
mov byte [ebp - 0xe], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040b670
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x454330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f8cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
lea ecx, [ebp - 0xd]
call fcn.004076c0
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040c8f0
mov dword [ebp - 4], 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [ebp + 0x14]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x1c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00422830
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.0040c980
push eax
push 1
lea ecx, [ebp - 0x21c]
call fcn.0040c9a0
push eax
call fcn.0050ceb0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.0040a0f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x458100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fcdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.0040c980
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.0040c9a0
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.00422230
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x42c]
mov dword [edx + 0x30], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.004072d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x459690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ffa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
add ecx, 0x220
call fcn.0040c980
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, 0x220
call fcn.0040c9a0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call fcn.0050ceb0
add esp, 0x10
cmp eax, dword [ebp - 0x10]
je 0x459774
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.00454670
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
push ecx
push str.Failed_writing_to_file
lea edx, [ebp - 0x40]
push edx
call fcn.0045d020
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 1
call fcn.00510ea9
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x7c]
call fcn.004543e0
push 0x5a43cc
lea eax, [ebp - 0x7c]
push eax
call fcn.00518aed
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00407340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x45bbb0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
call fcn.00407600
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
call fcn.00414e20
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x811c9dc5
mov dword [ebp - 0x1c], 0x1000193
mov dword [ebp - 4], 0x811c9dc5
mov dword [ebp - 8], 0
jmp 0x45bbf6
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x45bc19
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 4], 0x1000193
mov dword [ebp - 4], ecx
jmp 0x45bbed
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x4605f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5503b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00459960
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.spdlog::sinks::simple_file_sink_class_std::mutex_.0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [edx], 5
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0xa
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0xc
call fcn.004072d0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x30], 0
movzx eax, byte [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004594a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x4613f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x461424
mov eax, 1
jmp 0x461426
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x461430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 8
lea eax, [ebp + 0xc]
push eax
push 0xb
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x461464
mov eax, 1
jmp 0x461466
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x461470
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x461488
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
sar ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
shl edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4614e0
mov eax, 1
jmp 0x4614e2
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x4614f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 8
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x46152f
mov eax, 1
jmp 0x461531
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x461540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x461578
mov eax, 1
jmp 0x46157a
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x461aa0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x461ac1
xor eax, eax
jmp 0x461af1
mov edx, dword [ebp - 4]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x461aef
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov eax, dword [ebp - 8]
jmp 0x461af1
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x462180
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x400
lea eax, [ebp - 4]
push eax
push 0x5b6350
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ecx, 2
imul eax, ecx, 0
add eax, 0x5b6350
mov esp, ebp
pop ebp
ret

Function at 0x462240
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x589cf0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
add ecx, dword [ebp - 8]
and ecx, 0xffff
mov word [ebp - 4], cx
mov ax, word [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x462420
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55056e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
mov eax, dword [0x5b6b50]
and eax, 1
jne 0x46247c
mov ecx, dword [0x5b6b50]
or ecx, 1
mov dword [0x5b6b50], ecx
mov dword [ebp - 4], 0
mov ecx, 0x5b6b54
call fcn.0040b500
push 0x556290
call fcn.0050c189
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x5b6b54
call fcn.0040aef0
movzx edx, al
test edx, edx
je 0x462591
xor eax, eax
mov word [ebp - 0x824], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x822]
push ecx
call fcn.0050c840
add esp, 0xc
lea edx, [ebp - 0x824]
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.004622f0
add esp, 8
test eax, eax
jne 0x462503
movzx edx, word [ebp - 0x18]
push edx
movzx eax, word [ebp - 0x14]
push eax
call fcn.00462240
movzx ecx, ax
push ecx
call fcn.004621b0
movzx edx, ax
push edx
call fcn.00462180
push eax
push str._s_d_d_d_d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
jmp 0x46252d
call fcn.00462240
movzx ecx, ax
push ecx
call fcn.004621b0
movzx edx, ax
push edx
call fcn.00462180
push eax
push str._s_d_d
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov dword [ebp - 0x1c], 0x1505
mov ecx, dword [ebp - 0x10]
movzx edx, word [ecx]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x24], 0
je 0x462563
mov edx, dword [ebp - 0x1c]
shl edx, 5
add edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
jmp 0x462534
movzx eax, word [ebp - 0x18]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push 0x589cf4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, 0x5b6b54
call fcn.0040b710
mov ecx, 0x5b6b54
call fcn.0040b760
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bbed6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x4bbf02
cmp esi, dword [ebx + 0x108]
je 0x4bbf02
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x4bbfd9
push edi
test eax, eax
je 0x4bbf61
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x108]
call fcn.004bbb23
mov dword [ebx + 0x108], edi
test esi, esi
je 0x4bbfd8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x4bbfd8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x4bbfd8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x4bbfd8
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x108], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x108]
call fcn.004bbb23
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4bf003
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bf035
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4cc2e3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c6e38

Function at 0x4cd2cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x1c]
push edi
and dword [ebx + 0x774], 0
mov edi, dword [ebp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x770], ecx
mov dword [ebx + 0x778], eax
test ecx, ecx
jne 0x4cd334
call fcn.004cd04b
push edi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
test esi, esi
je 0x4cd334
call fcn.004cd04b
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
lea esi, [ebx + 0x10]
call fcn.004cd04b
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [ebx + 0x770]
test ecx, ecx
jne 0x4cd351
mov ecx, edi
jmp 0x4cd358
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7893
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
call fcn.004bdb18
push 0
sub esp, 0x10
mov esi, eax
mov edi, esp
mov ecx, ebx
push 0x88
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
push dword [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004beaad
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x4cd39b
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x4cd396
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b792
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4f7791
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4f7819
cmp dword [esi + 0x10], 0
je 0x4f7819
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0051bdf0
mov ebx, esp
test ebx, ebx
je 0x4f7819
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1cc
call fcn.004bdd06
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004bbb23
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.004b7b5f
test al, al
je 0x4f7819
mov ecx, dword [esi + 0x10]
call fcn.004c0043
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4fc771
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x294]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4fc79d
xor eax, eax
jmp 0x4fc81a
push 0xfe
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], 0
push 0
push eax
call fcn.0050c840
add esp, 0xc
lea eax, [ebp - 0x104]
push 0xff
push eax
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4fc799
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [ebp - 0x298]
push eax
call fcn.0050b860
mov ecx, dword [ebp - 0x298]
add esp, 0xc
movzx eax, cl
shl eax, 8
movzx ecx, ch
add eax, ecx
movzx ecx, byte [ebp - 0x296]
shl eax, 8
add eax, ecx
movzx ecx, byte [ebp - 0x295]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050b792
mov esp, ebp
pop ebp
ret

Function at 0x505044
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5a8774]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x210], esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, dword [ebp + 0xc]
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
cmp edi, 0x21
jb 0x505092
cmp edi, 0x28
jbe 0x50508c
lea eax, [edi - 0x2d]
cmp eax, 1
ja 0x505092
or esi, 0x100
cmp dword [ebp + 0x10], 0
je 0x50509e
or esi, 0x1000000
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0050c840
add esp, 0xc
shl esi, 0x10
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.004bdb6b
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050b792
mov esp, ebp
pop ebp
ret 0xc
Function at 0x512561
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401000
Capabilities:
Delete file

Disassembly:
cmp dword [0x48b5b8], 0
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
je 0x401050
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov esi, 0x48b5b8
mov eax, dword [esi - 4]
mov ecx, dword [esi]
mov edx, dword [ecx]
push 0x103
push eax
push edx
call edi
test eax, eax
jbe 0x401045
mov eax, dword [esi]
mov ecx, dword [eax]
push ecx
call ebx
mov edx, dword [esi - 4]
push edx
call ebp
add esi, 8
cmp dword [esi], 0
jne 0x401024
pop edi
pop esi
pop ebx
mov eax, dword [esp + 8]
push eax
call ebp
pop ebp
ret

Function at 0x4012a0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x48b558]
push ebx
push esi
mov esi, dword [esp + 0xc]
push eax
push 0xffffd8ee
push esi
call fcn.00403210
mov ecx, dword [0x48b3c0]
push ecx
push 0xffffffffffffffff
push esi
call fcn.00403210
mov ebx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ebx
push edx
push eax
push esi
call fcn.00409a10
add esp, 0x28
cmp eax, 1
je 0x4012f3
mov ecx, dword [0x48b588]
push ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
pop esi
pop ebx
ret
push edi
push 0
push 0xffffffffffffffff
push esi
call fcn.00403140
mov edi, dword [esp + 0x20]
push edi
push ebx
push eax
push esi
call fcn.004033a0
push edi
push 0xfffffffffffffffd
push esi
call fcn.00403270
add esp, 0x28
pop edi
pop esi
pop ebx
ret

Function at 0x401490
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x20
mov ecx, 0x1e
lea eax, [esp]
jmp 0x4014a0
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4014a0
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov eax, ebp
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4014b6
sub eax, edx
mov edi, eax
lea ebx, [edi + 2]
push ebx
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
push ebx
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
mov byte [esi + edi], 0
mov byte [esi + edi + 1], 0
lea ecx, [esp + 0x10]
mov eax, 0x414
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 3
mov word [esp + 0x24], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret