joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042b8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x40431e
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x40432f
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x40431e
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x4042d6
cmp dword [esp], 0
je 0x4042d6
xor ebx, ebx
cmp dword [esp], 0
je 0x404379
lea eax, [esp + 4]
push eax
push 0x4127e4
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x404379
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x40436f
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x404df8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00404ff4
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x404e8f
cmp byte [ebp + 8], 0
jne 0x404e8f
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x404ecd
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00404c7c
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x404fdb
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x404f2c
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404c7c
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x404fcb
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x404f54
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x404feb
inc esi
test edi, edi
je 0x404feb
cmp esi, 0x200
jl 0x404eeb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405ef0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00405098
test eax, eax
je 0x405f16
test ebx, ebx
je 0x405f16
cmp word [ebx], 0
je 0x405f16
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x405f1e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x405f31
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406114
xor eax, eax
jmp 0x405f4c
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x405f40
cmp eax, 3
jne 0x405f47
mov eax, 2
jmp 0x405f4c
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x4060b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00405098
test eax, eax
je 0x4060df
test ebx, ebx
je 0x4060df
cmp word [ebx], 0
je 0x4060df
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x406114
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00405098
test eax, eax
je 0x406141
test ebx, ebx
je 0x406141
cmp word [ebx], 0
je 0x406141
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x406150
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x407a24
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, 0x41411c
push edi
push ebp
mov ebp, edx
cmp dword [esi + 4], 0
mov edi, ecx
mov ebx, eax
jne 0x407a3e
call fcn.004079ec
mov eax, ebp
cmp edi, 8
jb 0x407ac9
xor ebx, dword [eax]
xor edx, edx
mov dl, bl
sub edi, 8
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
xor ebx, dword [eax + 4]
add eax, 8
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
xor edx, edx
mov ebx, ecx
mov dl, bl
shr ebx, 8
mov ecx, dword [esi + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x407a49
xor edx, edx
jmp 0x407ae3
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp edi, edx
ja 0x407acd
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x408094
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4080ab
test esi, esi
jg 0x4080b2
xor eax, eax
jmp 0x408164
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x2c]
mov ecx, 0x10
call fcn.0040db18
test esi, esi
jns 0x4080cc
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jle 0x40814b
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00408420
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [eax]
xor dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x10], eax
mov eax, edx
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x4080de
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.0040db18
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408388
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x416dde]
lea ebx, [ebx*4 + 0x4169de]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x4171de]
lea edx, [edx*4 + 0x4175de]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x40839a
inc eax
cmp eax, 4
jl 0x408398
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.0040db18
inc esi
cmp esi, 0xa
jl 0x408396
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x409640
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret
Function at 0x40ca24
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
push esi
push edi
xor eax, eax
mov dword [ebp - 4], edx
mov dword [ebx + 0xc18], eax
mov edi, ecx
cmp byte [ebp + 8], 0
mov esi, 0x80000000
je 0x40ca4d
or esi, 0x40000000
mov dword [ebp - 8], 1
cmp byte [ebx + 0x12], 0
jne 0x40ca60
cmp byte [ebp + 0xc], 0
je 0x40ca64
or dword [ebp - 8], 2
call fcn.00405098
test eax, eax
je 0x40ca90
test edi, edi
je 0x40ca90
cmp word [edi], 0
je 0x40ca90
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push edi
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
jmp 0x40caa9
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cac2
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40cac2
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp esi, 0xffffffff
mov byte [ebx + 0x13], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x40cb0b
mov dword [ebx + 4], esi
test edi, edi
je 0x40caf7
lea eax, [ebx + 0x416]
mov edx, edi
call fcn.0040e2ac
jmp 0x40cb00
mov word [ebx + 0x416], 0
lea eax, [ebx + 0x15]
mov edx, dword [ebp - 4]
call fcn.0040dc04
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40cc94
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0xc], 0
jne 0x40cca3
cmp byte [ebx + 0x14], 0
jne 0x40cca7
xor eax, eax
pop ebx
ret
cmp dword [ebx + 4], 0xffffffff
je 0x40ccb4
mov eax, ebx
call fcn.0040cc28
call fcn.00405098
test eax, eax
je 0x40ccdd
cmp word [ebx + 0x416], 0
je 0x40ccdd
add ebx, 0x416
push ebx
call sub.KERNEL32.DLL_DeleteFileW
test eax, eax
setne al
and eax, 1
jmp 0x40ccee
add ebx, 0x15
push ebx
call sub.KERNEL32.DLL_DeleteFileA
test eax, eax
setne al
and eax, 1
pop ebx
ret
Function at 0x40ccf0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40cdd1
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40cd2b
dec eax
je 0x40cd15
dec eax
je 0x40cd21
jmp 0x40cd2b
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40cd2b
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40cd7d
xor ebp, ebp
cmp esi, ebp
jle 0x40cd99
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40cd50
mov ecx, esi
sub ecx, ebp
jmp 0x40cd55
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40cd99
add ebp, 0x4000
cmp esi, ebp
jg 0x40cd37
jmp 0x40cd99
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40cdcd
cmp dword [edi + 0xc], 0
jne 0x40cdcd
lea ebp, [edi + 0x15]
mov eax, 0x418060
mov edx, ebp
call fcn.0040b588
test al, al
jne 0x40cd2b
mov edx, ebp
mov eax, 0x418060
call fcn.0040b554
jmp 0x40cdcd
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40cea8
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40cecf
cmp esi, 0x4e20
jle 0x40cec5
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40cf20
mov eax, ebx
call fcn.0040d0f0
test al, al
je 0x40cf07
cmp esi, 0x4e20
jle 0x40cf07
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040cea8
jmp 0x40cf23
cmp dword [ebx + 0xc], 1
jne 0x40cf1b
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40cf1b
xor eax, eax
jmp 0x40cf23
or eax, 0xffffffff
jmp 0x40cf23
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e1ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [0x4126dc], 0
jne 0x40e1c5
call fcn.0040dda0
mov dword [0x4126d8], eax
inc byte [0x4126dc]
call fcn.0040dda0
sub eax, dword [0x4126d8]
cmp eax, 0x64
jle 0x40e201
cmp dword [0x41285c], 0
je 0x40e1fc
mov eax, 0x418060
mov edx, 0xff
call fcn.0040b6bc
mov eax, 0x418060
mov edx, 0xff
call fcn.0040b6b4
call fcn.004027dc
ret
Function at 0x401400
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x120c
call fcn.00407270
mov eax, dword [esp + 0x1210]
push ebx
push ebp
push esi
push edi
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40149d
lea ecx, [esp + 0x10]
lea edx, [esp + 0x21c]
push ecx
push 0x1000
push edx
push ebx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401496
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, 0xfffffffc
jbe 0x401496
mov ebp, dword [esp + 0x1224]
lea esi, [esp + 0x21c]
mov ecx, dword [esi]
lea eax, [esp + 0x14]
push 0x104
push eax
push ecx
push ebx
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x401487
lea edx, [esp + 0x14]
push ebp
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x4014aa
mov eax, dword [esp + 0x10]
inc edi
shr eax, 2
add esi, 4
cmp edi, eax
jb 0x401460
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + edi*4 + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120c
ret

Function at 0x401af0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call ebp
mov esi, eax
mov dword [esp + 8], esi
call ebp
mov ecx, dword [esp + 0x2c]
sub eax, esi
cmp eax, ecx
jae 0x401b71
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x401b57
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
call ebx
push 1
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
jne 0x401b36
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
sub eax, edx
cmp eax, ecx
jb 0x401b23
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x20
ret

Function at 0x4061c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x218
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, ecx
mov edx, dword [esi + 0x2c]
lea ecx, [esp + 0x18]
lea eax, [edi + 0x14]
or dl, 0x81
push eax
push str.__s_
push ecx
mov dword [esi], 0x44
mov word [esi + 0x30], 0
mov dword [esi + 0x2c], edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov cl, byte [esp + 0x230]
add esp, 0xc
lea edx, [esp + 8]
xor eax, eax
push edx
push esi
test cl, cl
push 0
push 0
setne al
push 0
push eax
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40624f
push eax
push 0x4156ac
push 0x41251c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret 8
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
pop edi
xor eax, eax
pop esi
add esp, 0x218
ret 8
Function at 0x406280
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov ebx, ecx
push edi
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x30], 0xc
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4062c9
push str.CreatePipe_failed
call fcn.00407df2
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [ebx + 8]
push 0
push eax
call esi
mov ecx, dword [esp + 0x20]
push eax
push ecx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call edi
test eax, eax
jne 0x4062fd
push str.DuplicateHandle_failed
call fcn.00407df2
add esp, 4
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebp
mov eax, dword [ebx + 0x218]
lea ecx, [esp + 0x20]
imul eax, dword [ebx + 0x214]
lea edx, [esp + 0x10]
lea eax, [eax + eax*4]
shl eax, 1
push eax
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x406343
push str.CreatePipe_failed
call fcn.00407df2
add esp, 4
push 2
push 0
lea ecx, [ebx + 4]
push 0
push ecx
call esi
mov edx, dword [esp + 0x20]
push eax
push edx
call esi
push eax
call edi
test eax, eax
jne 0x40636b
push str.DuplicateHandle_failed
call fcn.00407df2
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call ebp
push 2
push 1
lea ecx, [esp + 0x24]
push 0
push ecx
call esi
mov edx, dword [esp + 0x24]
push eax
push edx
call esi
push eax
call edi
test eax, eax
jne 0x40639b
push str.DuplicateHandle_failed
call fcn.00407df2
add esp, 4
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
mov edx, dword [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x68], ecx
push eax
push 1
mov ecx, ebx
mov dword [esp + 0x60], pe_nt_image_headers32
mov dword [esp + 0x74], edx
call fcn.004061c0
mov ecx, dword [esp + 0x18]
mov esi, eax
push ecx
call ebp
mov edx, dword [esp + 0x14]
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebp
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebp
sete al
pop ebx
add esp, 0x60
ret

Function at 0x406400
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
mov eax, dword [esi + 4]
test eax, eax
je 0x40645a
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.00407e33
add esp, 0xc
mov byte [esp + eax + 8], 0xd
inc eax
lea ecx, [esp + 4]
push 0
push ecx
mov byte [esp + eax + 0x10], 0xa
inc eax
push eax
lea edx, [esp + 0x14]
mov byte [esp + eax + 0x14], 0
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
add esp, 0x104
ret
Function at 0x4064e0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
test eax, eax
je 0x40650c
push 0x41258c
push esi
call fcn.00406400
mov eax, dword [esi + 4]
add esp, 8
push eax
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x406548
mov ecx, dword [esi + 8]
neg ecx
sbb ecx, ecx
and ecx, 0x2a8
add ecx, 0x14
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40653b
mov edx, dword [esi + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esi + 0xc]
push eax
call edi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
test eax, eax
je 0x406559
push eax
call edi
mov dword [esi + 8], 0
pop edi
pop esi
ret

Function at 0x406670
Capabilities:
Get graphical window text
Log keystrokes
Open clipboard
Write clipboard data

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x4125b8
mov ebx, ecx
push str.QufPanelWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push str.ComboBox
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je 0x4066ba
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0x4156c0
push 0
push 0xc
push esi
call edi
push 0
push 0xd
push pe_nt_image_headers32
push esi
call edi
mov ecx, ebx
call fcn.00406a50
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, esi
jne 0x4067e9
cmp byte [0x4156c0], 0x40
jne 0x4067e9
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4067e9
lea eax, [esp + 0xc]
push eax
push 0x4065d0
push esi
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4067e9
mov esi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 1
push 0x201
push eax
call esi
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x202
push ecx
call esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
push 0x104
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, 0x4156c1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0
push 0
push 0x11
call esi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x11
call edi
push 0
push 0
push 0
push 0x56
call esi
push eax
push 0x56
call edi
push 0
push 2
push 0
push 0x56
call esi
push eax
push 0x56
call edi
push 0
push 2
push 0
push 0x11
call esi
push eax
push 0x11
call edi
push 0
push 0
push 0
push 0xd
call esi
push eax
push 0xd
call edi
push 0
push 2
push 0
push 0xd
call esi
push eax
push 0xd
call edi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
pop ecx
ret