joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404518
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xb4
mov dword [esp + 8], 0xc
mov dword [esp + 4], 0
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sym._memset
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call sym._rand
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str..pipe_r2tcmd__lu__i
mov dword [esp + 4], 0x7f
lea eax, [ebp - 0x98]
mov dword [esp], eax
call dbg.snprintf
lea eax, [ebp - 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x1388
mov dword [esp + 0x14], 0x2000
mov dword [esp + 0x10], 0x2000
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000001
lea eax, [ebp - 0x98]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
call eax
sub esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4045e3
mov dword [esp], str.CreateNamedPipe
call dbg.syserror
jmp 0x4046bb
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x98]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40465b
mov dword [esp], str.CreateFile
call dbg.syserror
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0xffffffff
jmp 0x4046bb
mov eax, dword [ebp + 8]
lea edx, [eax + 4]
mov eax, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
call eax
sub esp, 0xc
test eax, eax
jne 0x4046b6
mov dword [esp], str.SetHandleInformation
call dbg.syserror
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.pipe_close
mov eax, 0xffffffff
jmp 0x4046bb
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x404aee
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TerminateProcess]
call eax
sub esp, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
lea edx, [eax + 0x48]
mov eax, dword [ebp + 8]
add eax, 0x20
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.aio_kill_forward
nop
leave
ret

Function at 0x405370
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf_1
call sym._abort
lea esi, [esi]
Function at 0x4053d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x411a50]
test esi, esi
jle 0x4054f0
mov eax, dword [0x411a54]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x405404
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x405487
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4053f0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x405517
mov eax, dword [0x411a54]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x411a54]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4054f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x405480
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x405490
add dword [0x411a50], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x411a54]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x405480
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40540e
mov eax, dword [0x411a54]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x4059d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x411a6c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x411a64]
sub esp, 4
test ebx, ebx
je 0x405a25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x405a1e
test esi, esi
je 0x405a1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405a00
mov dword [esp], 0x411a6c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x68a580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x181000]
mov dword [edi + 0x271d64], 0xea643e2f
push edi
jmp 0x68a5aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x68a5b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68a5a0
mov eax, 1
add ebx, ebx
jne 0x68a5c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x68a5d4
jne 0x68a5f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68a5f3
dec eax
add ebx, ebx
jne 0x68a5e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x68a5b8
add ebx, ebx
jne 0x68a5ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x68a645
xor ecx, ecx
sub eax, 3
jb 0x68a60b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x68a67a
sar eax, 1
mov ebp, eax
jmp 0x68a616
add ebx, ebx
jne 0x68a616
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68a5e4
inc ecx
add ebx, ebx
jne 0x68a624
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x68a5e4
add ebx, ebx
jne 0x68a631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x68a626
jne 0x68a642
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x68a626
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x68a664
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x68a656
jmp 0x68a5a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x68a664
add edi, ecx
jmp 0x68a5a6
pop esi
mov edi, esi
mov ecx, 0x6523
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x68a682
cmp byte [edi], 0x1a
jne 0x68a682
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x68a687
lea edi, [esi + 0x282000]
mov eax, dword [edi]
or eax, eax
je 0x68a6ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28a770]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x28a834]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x68a6b4
mov ecx, edi
jns 0x68a6e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x28a83c]
or eax, eax
je 0x68a6f9
mov dword [ebx], eax
add ebx, 4
jmp 0x68a6d1
call dword [esi + 0x28a838]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x68a730
cmp al, 0xef
ja 0x68a723
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x68a705
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x68a712
mov ebp, dword [esi + 0x28a840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x68a764
sub esp, 0xffffff80
jmp 0x4e0901
Function at 0x4053ff
Capabilities:
Get number of processors

Disassembly:
add esp, 4
pop eax
movzx edx, word [ebp - 0x10c]
test edx, edx
jne 0x405426
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x10c]
sub eax, ecx
mov dword [ebp - 0x15e4], eax
jmp 0x405489
movzx edx, word [ebp - 0x210]
movzx eax, word [ebp - 0x10c]
cmp edx, eax
je 0x405345
movzx ecx, word [ebp - 0x210]
xor ecx, 0x20
movzx edx, word [ebp - 0x10c]
cmp ecx, edx
je 0x405345
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x10c]
cmp eax, ecx
jge 0x405473
mov dword [ebp - 0x15e0], 0xffffffff
jmp 0x40547d
mov dword [ebp - 0x15e0], 1
mov edx, dword [ebp - 0x15e0]
mov dword [ebp - 0x15e4], edx
cmp dword [ebp - 0x15e4], 0
jne 0x4054d2
push eax
add eax, 0x10c06
call 0x4054a6
add byte [edx], bh
dec edi
inc edi
xor esi, dword ss:[edx]
add esp, 4
pop eax
push eax
jmp 0x4054b2
jmp 0x4054b7
xor eax, 0xe0d0
and eax, 0x4b70
pop eax
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x31c], eax
jmp 0x40553a
push ecx
and ecx, 0x86b9
or ecx, 0x16a6d
xor ecx, 0xf787
and ecx, 0x109b3
pop ecx
push eax
push edx
add esp, 4
xor eax, 0xd26c
and eax, 0x13ea6
sub eax, 0xc847
pop eax
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx]
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x504]
cmp eax, dword [ebp - 0xc98]
je 0x405530
mov ecx, dword [ebp - 0x504]
cmp dword [ecx + 0x30], 0
jne 0x4052e6
mov dword [ebp - 0x31c], 0

Function at 0x4054a6
Capabilities:
Get number of processors

Disassembly:
add esp, 4
pop eax
movzx edx, word [ebp - 0x10c]
test edx, edx
jne 0x405426
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x10c]
sub eax, ecx
mov dword [ebp - 0x15e4], eax
jmp 0x405489
movzx edx, word [ebp - 0x210]
movzx eax, word [ebp - 0x10c]
cmp edx, eax
je 0x405345
movzx ecx, word [ebp - 0x210]
xor ecx, 0x20
movzx edx, word [ebp - 0x10c]
cmp ecx, edx
je 0x405345
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x10c]
cmp eax, ecx
jge 0x405473
mov dword [ebp - 0x15e0], 0xffffffff
jmp 0x40547d
mov dword [ebp - 0x15e0], 1
mov edx, dword [ebp - 0x15e0]
mov dword [ebp - 0x15e4], edx
cmp dword [ebp - 0x15e4], 0
jne 0x4054d2
push eax
add eax, 0x10c06
call 0x4054a6
add byte [edx], bh
dec edi
inc edi
xor esi, dword ss:[edx]
add esp, 4
pop eax
push eax
jmp 0x4054b2
jmp 0x4054b7
xor eax, 0xe0d0
and eax, 0x4b70
pop eax
mov eax, dword [ebp - 0x504]
mov dword [ebp - 0x31c], eax
jmp 0x40553a
push ecx
and ecx, 0x86b9
or ecx, 0x16a6d
xor ecx, 0xf787
and ecx, 0x109b3
pop ecx
push eax
push edx
add esp, 4
xor eax, 0xd26c
and eax, 0x13ea6
sub eax, 0xc847
pop eax
mov ecx, dword [ebp - 0x504]
mov edx, dword [ecx]
mov dword [ebp - 0x504], edx
mov eax, dword [ebp - 0x504]
cmp eax, dword [ebp - 0xc98]
je 0x405530
mov ecx, dword [ebp - 0x504]
cmp dword [ecx + 0x30], 0
jne 0x4052e6
mov dword [ebp - 0x31c], 0
Function at 0x406181
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
or eax, 0x14646
pop eax
push eax
xor eax, 0x1414c
xor eax, 0xf42d
pop eax
mov edx, dword [ebp - 0x50c]
mov eax, dword [edx]
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x50c]
cmp ecx, dword [ebp - 0xcb4]
je 0x4061c5
mov edx, dword [ebp - 0x50c]
cmp dword [edx + 0x30], 0
jne 0x405f90
mov dword [ebp - 0x31c], 0
Function at 0x46b610
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f4648
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x52e028]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x46b70a
mov eax, 3
mov word [esp + 0x1c], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x38], 0
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov edi, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
call ebp
mov edx, 8
push edi
mov word [esp + 0x20], dx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x46b6ab
test edi, edi
je 0x46b6ab
mov eax, 0xa
push 0x8007000e
mov word [esp + 0x20], ax
mov dword [esp + 0x28], 0x8007000e
call fcn.00409840
mov ecx, dword [esi + 0xc]
lea esi, [esp + 0x14]
push esi
mov dword [esp + 0x18], 0
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x34]
push ecx
call eax
test eax, eax
jl 0x46b6fb
mov eax, dword [esp + 0x14]
test eax, eax
je 0x46b6fb
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jge 0x46b71f
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x38], 0xffffffff
lea eax, [esp + 0x1c]
push eax
call ebp
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x18], 1
jne 0x46b735
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x1c]
push ecx
jmp 0x46b708
mov dword [esp + 0x38], 0xffffffff
lea edx, [esp + 0x1c]
push edx
call ebp
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret
Function at 0x470180
Capabilities:
Query environment variable

Disassembly:
push 0x8000
push 0
push 0x531e30
call fcn.004f0a6a
add esp, 0xc
push 0x8000
push 0x531e30
push 0x513914
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4701ba
cmp eax, 0x8000
ja 0x4701ba
mov eax, 0x531e30
ret
xor eax, eax
ret

Function at 0x470185
Capabilities:
Query environment variable

Disassembly:
push 0x8000
push 0
push 0x531e30
call fcn.004f0a6a
add esp, 0xc
push 0x8000
push 0x531e30
push 0x513914
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4701ba
cmp eax, 0x8000
ja 0x4701ba
mov eax, 0x531e30
ret
xor eax, eax
ret
Function at 0x4efe2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52e028]
jne 0x4efe34
repz ret
jmp fcn.004f03ce
Function at 0x401750
Capabilities:
Enumerate gui resources

Disassembly:
push 0x104
push 0x40ae98
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40ae98
call fcn.00401bcd
push 0x5c
push 0x40ae98
call fcn.00401c3f
add esp, 0xc
mov dword [0x40b034], eax
test eax, eax
je 0x401787
inc eax
jmp 0x40178c
mov eax, str._NULL_
push esi
push edi
push eax
push 0x40ae98
push str.Set_module_s__slash_s_n
call fcn.00401570
mov esi, dword [esp + 0x18]
add esp, 0xc
push esi
push str.EnumThreadWindows__x_n
call fcn.00401570
mov edi, dword [esp + 0x18]
add esp, 8
push edi
push 0x4015b0
push esi
call dword [sym.imp.USER32.dll_EnumThreadWindows]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4017de
call esi
push eax
push str.Err__d_for_EnumThreadWnd_n
call fcn.00401570
add esp, 8
push str.EnumWindows_n
call fcn.00401570
add esp, 4
push edi
push 0x401620
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x40180b
call esi
push eax
push str.Err__d_for_EnumWnd_n
call fcn.00401570
add esp, 8
pop edi
pop esi
ret
Function at 0x402350
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x4023a2
mov dword [ebp - 0xc], esp
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40239a
push 0x4f
push 0x4016703
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4023db
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
push 0
push 1
xor eax, eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4023d8
push 0x7d
push 0x4016703
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4023ef
mov eax, 0
jmp 0x402457
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x402420
push 0x10b
push 0x4016703
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40244f
push 0x12f
push 0x4016703
push 6
call fcn.0041fee8
add esp, 0xc
mov eax, dword [ebp - 8]
jmp 0x402457
mov esp, ebp
pop ebp
ret 8
Function at 0x403573
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4035bd
push 0x19
push 0x40172d2
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x403654
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x42a31a]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.0040245d
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.00421e40
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403615
push ebx
call fcn.0041fef4
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004028ef
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 0xc]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x403654
push 0xda
push 0x40172d2
push 6
call fcn.0041fee8
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x40366e
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0041fee2
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x403673
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x403684
push ebx
call fcn.0041fef4
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x40ca46
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push VariantClear
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x40ca87
mov eax, 0x42a231
push eax
push 1
mov ebx, 0x130
call fcn.00421ef0
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 8], 2
fild dword [ebp - 4]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x42a2f9]
fstp qword [ebp - 0x24]
mov dword [ebp - 0x28], esp
fld qword [ebp - 0x24]
call fcn.0040245d
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
nop
nop
cmp dword [ebp - 0x28], esp
je 0x40caeb
push 0x89
push 0x4016c2b
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40cb1a
push 0xc7
push 0x4016c2b
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 8]
push dword [ebx]
push dword [ebp - 0x10]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40cb51
push 0xe2
push 0x4016c2b
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40cb7d
push 0x10a
push 0x4016c2b
push 6
call fcn.0041fee8
add esp, 0xc
call fcn.0040cc3a
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 0x14]
xor eax, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40cbb1
push 0x151
push 0x4016c2b
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.USER32.dll_EmptyClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40cbda
push 0x16b
push 0x4016c2b
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push 1
xor eax, eax
call dword [sym.imp.USER32.dll_SetClipboardData]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40cc0b
push 0x17e
push 0x4016c2b
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 0x18], esp
xor eax, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
nop
nop
cmp dword [ebp - 0x18], esp
je 0x40cc34
push 0x1ac
push 0x4016c2b
push 6
call fcn.0041fee8
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x40cc75
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x42a231
push 0x42a231
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x40ccc5
push 0
push 0x40166f9
push 6
call fcn.0041fee8
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x411707
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42e80d]
and eax, 1
xor eax, 1
test eax, eax
je 0x4117cf
mov dword [ebp - 4], esp
push dword [0x42e7a5]
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 4], esp
je 0x411752
push 0x58
push 0x4013ee2
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
mov dword [0x42e811], eax
mov dword [ebp - 4], esp
push 1
xor eax, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
cmp dword [ebp - 4], esp
je 0x411794
push 0xa8
push 0x4013ee2
push 6
call fcn.0041fee8
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
mov dword [0x42e815], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push 1
push 0x64
call fcn.004117d3
jmp 0x411710
mov esp, ebp
pop ebp
ret