joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035a0
Capabilities:
Create process on windows
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0x44
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00526030
add esp, 0xc
xor eax, eax
push str.2D0FA24B_336B_4e99_9D30_3116331EFDA0
push str.PANGYA_ARG
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret

Function at 0x403630
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
push str.projectg.nop
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp eax, 0xffffffff
je 0x4036cb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x118]
push ecx
call esi
test al, 1
je 0x40368f
and eax, 0xfffffffe
push eax
lea edx, [ebp - 0x118]
push edx
call edi
lea eax, [ebp - 0x118]
push eax
call ebx
mov edx, dword [ebp - 0x148]
lea ecx, [ebp - 0x144]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403675
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
cmp eax, 0x12
jne 0x4036cb
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret
Function at 0x4036e0
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
mov edi, ecx
lea esi, [edi + 0x30c]
push esi
lea eax, [ebp - 0x20c]
push 0x55394c
push eax
call fcn.00525791
lea ebx, [edi + 0x208]
push ebx
push esi
lea ecx, [ebp - 0x108]
push 0x55394c
push ecx
call fcn.00525791
add esp, 0x20
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
xor esi, esi
cmp esi, 0xa
jae 0x403781
test eax, eax
jne 0x40377c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
inc esi
test eax, eax
je 0x403752
test esi, esi
jne 0x4037ad
push 0x40
push str.PangyaUpdate
push str.It_has_to_be_started_in_the_folder_that_can_be_written_for_updating._Please_check_the_folder_that_can_be_written
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 4
add edi, 0x410
push edi
push ebx
call fcn.00403480
mov ecx, dword [ebp - 4]
add esp, 8
test al, al
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.00525222
mov esp, ebp
pop ebp
ret 4

Function at 0x403c80
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542818
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a574c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00432f53
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x403cc0
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0x5a6c50
lea ecx, [ebp - 0x10]
push str._supdatelist
push ecx
mov dword [ebp - 4], 0
call fcn.004016f0
mov esi, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5a6c50
lea edx, [ebp - 0x10]
push str._s_temp.zip
push edx
call fcn.004016f0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call edi
and eax, 0xfffffffe
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404630
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
test esi, esi
je 0x40464d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x404d10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a6c48]
push esi
mov esi, ecx
test eax, eax
je 0x404d4c
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x5a6c48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5a6c48], 0
push 0x44
lea ecx, [ebp - 0x148]
push 0
push ecx
call fcn.00526030
mov eax, dword [0x5a6f2c]
mov edx, 5
add esp, 0xc
mov dword [ebp - 0x148], 0x44
mov dword [ebp - 0x11c], 1
mov word [ebp - 0x118], dx
cmp dword [eax - 4], 1
jle 0x404d9d
mov eax, dword [eax - 0xc]
push eax
mov ecx, 0x5a6f2c
call fcn.00401310
mov eax, dword [0x5a6f2c]
lea ecx, [esi + 0xe9c]
push ecx
push eax
lea edx, [ebp - 0x104]
push str._s__s
push edx
call fcn.00525791
add esp, 0x10
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x148]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x104]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esi]
mov edx, dword [eax + 0x180]
mov ecx, esi
call edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00525222
mov esp, ebp
pop ebp
ret
Function at 0x408080
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542c62
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a574c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea eax, [esi + 4]
xor ebx, ebx
cmp eax, ebx
je 0x4080be
add eax, 0xfffffffc
mov dword [0x5a6c44], eax
jmp 0x4080c4
mov dword [0x5a6c44], ebx
mov dword [ebp - 4], ebx
mov dword [esi], vtable.ShareDoc.0
call fcn.00432f53
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4080e7
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
call fcn.00432f53
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408114
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [ebp - 4], 2
call fcn.00432f53
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408141
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [ebp - 4], 3
call fcn.00432f53
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40816e
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [ebp - 4], 4
call fcn.00432f53
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40819b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
push 0x100
mov byte [esi + 0x1e], bl
lea ecx, [esi + 0x30]
push ebx
push ecx
mov byte [ebp - 4], 5
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00526030
push 0x100
lea edx, [esi + 0x130]
push ebx
push edx
call fcn.00526030
add esp, 0x18
push 3
push 0x554eb4
lea ecx, [esi + 0x18]
call fcn.00401520
push 0x400
lea eax, [esi + 0x230]
push ebx
push eax
mov word [esi + 0x1c], bx
call fcn.00526030
push 0x200
lea ecx, [esi + 0x630]
push ebx
push ecx
call fcn.00526030
push 0x40
lea edx, [esi + 0x830]
push ebx
push edx
call fcn.00526030
push 0x40
lea eax, [esi + 0x870]
push ebx
push eax
call fcn.00526030
add esp, 0x30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4090f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push esi
mov dword [ebp - 0x238], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409166
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5a6c44]
push esi
push eax
push 0
push str.CreateFile
push 0x1f
call fcn.00407190
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 0xc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 2
push 0
push esi
call fcn.00421dc0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4091bf
mov ecx, dword [ebp - 0x234]
push esi
push eax
push ecx
mov ecx, dword [0x5a6c44]
push str.OpenZip
push 0x21
call fcn.00407190
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x230]
push edx
push 0xffffffffffffffff
push edi
call fcn.00420080
mov eax, dword [ebp - 0x230]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x234], eax
test eax, eax
jle 0x409219
lea eax, [ebp - 0x230]
push eax
push esi
push edi
call fcn.00420080
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x108]
push ecx
push 2
push edx
push ebx
push esi
push edi
call fcn.00421e40
add esp, 0x24
test eax, eax
jne 0x409235
inc esi
cmp esi, dword [ebp - 0x234]
jl 0x4091e3
push edi
call fcn.00424170
add esp, 4
push edi
test al, al
je 0x4092f7
call fcn.00425ea0
jmp 0x4092fc
cmp eax, 0x200
jne 0x409294
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xff
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.00526030
mov ecx, dword [ebp - 0x128]
push ecx
push esi
push ebx
lea edx, [ebp - 0x104]
push str._s_index:_d_attr:_d_
push edx
call fcn.00525791
mov ecx, dword [ebp - 0x238]
add esp, 0x20
lea eax, [ebp - 0x104]
push eax
push ecx
push 0x200
jmp 0x40929d
mov edx, dword [ebp - 0x234]
push ebx
push edx
push eax
mov ecx, dword [0x5a6c44]
push str.UnzipItem
push 0x22
call fcn.00407190
push edi
call fcn.00424170
add esp, 4
push edi
test al, al
je 0x4092da
call fcn.00425ea0
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 0xc
call fcn.00421e90
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret 0xc
call fcn.00421e90
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00525222
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4093b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542d1b
mov eax, dword fs:[0]
push eax
mov eax, 0x30d74
call fcn.005260d0
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x5552e0
push str.stack.log
call fcn.0052656a
mov esi, eax
add esp, 8
test esi, esi
je 0x4095db
lea eax, [ebp - 0x30d80]
push eax
push 0x5536f0
push esi
mov dword [ebp - 0x30d80], 0xffffffff
call fcn.00527517
push esi
call fcn.005262da
push 0x5552e0
push 0x5552c4
call fcn.0052656a
add esp, 0x18
test eax, eax
je 0x4095db
push eax
call fcn.005262da
push 0x5552e0
push 0x5552b4
call fcn.0052656a
add esp, 0xc
test eax, eax
je 0x4095db
push eax
call fcn.005262da
push str.Send_Log_File
push edi
call fcn.00409320
push 2
push 0
push str.crash.zip
call fcn.00424bf0
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4095db
push 2
push 0
push str.stack.log
push str.stack.log
push esi
call fcn.00425e00
add esp, 0x14
test eax, eax
je 0x4094e0
push esi
call fcn.00424170
add esp, 4
push esi
test al, al
je 0x4094c8
call fcn.00425ea0
add esp, 4
push str.crash.zip
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4095db
call fcn.00421e90
add esp, 4
push str.crash.zip
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4095db
push 2
push 0
push 0x5552c4
push 0x5552c4
push esi
call fcn.00425e00
add esp, 0x14
test eax, eax
jne 0x4094a2
push 2
push eax
push 0x5552b4
push 0x5552b4
push esi
call fcn.00425e00
add esp, 0x14
push esi
test eax, eax
jne 0x4094a3
call fcn.00424170
add esp, 4
push esi
test al, al
je 0x40952a
call fcn.00425ea0
jmp 0x40952f
call fcn.00421e90
add esp, 4
lea ecx, [ebp - 0x30d7c]
call fcn.004144c0
lea ecx, [ebp - 0x30d7c]
mov dword [ebp - 4], 0
call fcn.00414680
mov ecx, dword [ebp - 0x30d80]
push ecx
push 0x555294
lea ecx, [ebp - 0x30d7c]
call fcn.00414960
push 1
push str.crash.zip
push str.crashfile
lea ecx, [ebp - 0x30d7c]
call fcn.00414770
push 4
push str.nation
lea ecx, [ebp - 0x30d7c]
call fcn.00414960
push str.MERONG_0.9__p_
push 3
push str.http:__py.4th.in_post_CrashReport.php
lea ecx, [ebp - 0x30d7c]
call fcn.00414530
test eax, eax
je 0x4095b5
lea ecx, [ebp - 0x30d7c]
call fcn.00412f80
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.stack.log
call esi
push str.crash.zip
call esi
lea ecx, [ebp - 0x30d7c]
mov dword [ebp - 4], 0xffffffff
call fcn.004144f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00525222
mov esp, ebp
pop ebp
ret
Function at 0x40dfd0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x5a6c44]
mov eax, dword [eax + 4]
push esi
mov esi, ecx
test eax, eax
je 0x40dfe2
mov eax, dword [eax + 0x20]
mov dword [esi + 0x43c], eax
test eax, eax
jne 0x40e00c
mov ecx, dword [0x5a6c44]
push 0x552feb
push eax
push eax
push str.Cannot_Get_a_Dlg_handle
push 2
call fcn.00407190
mov eax, 3
pop esi
ret
push 0x5552e0
push str.stack.log
call fcn.0052656a
add esp, 8
test eax, eax
je 0x40e071
push eax
call fcn.005262da
add esp, 4
push 0x41
push str.PangyaUpdate
push str.A_log_has_been_created_when_client_was_terminated_unusually._n_nWould_you_like_to_send_the_log_to_the_development_team__nLogs_will_be_used_to_help_make_Pangya_a_better_game._n_Note_that_only_information_regarding_occurred_error_and_basic_system_information_will_be_sent_with_log._It_does_not_contain_any_personal_information._It_will_only_be_used_to_fix_bugs_and_nothing_else._
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
je 0x40e063
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5552c4
call edi
push 0x5552b4
call edi
push str.stack.log
call edi
pop edi
jmp 0x40e071
mov ecx, esi
call fcn.004093b0
mov ecx, esi
call fcn.0040a770
mov ecx, esi
call fcn.0040dd20
test eax, eax
je 0x40e005
mov ecx, esi
call fcn.0040db60
cmp eax, 2
je 0x40e005
cmp eax, 3
je 0x40e005
cmp byte [esi + 4], 0
je 0x40e0a2
mov eax, 2
pop esi
ret
mov ecx, esi
call fcn.0040d2c0
test eax, eax
je 0x40e005
mov ecx, esi
call fcn.0040b950
test eax, eax
je 0x40e005
mov ecx, esi
call fcn.0040d690
test al, al
je 0x40e005
mov ecx, esi
call fcn.0040c850
mov ecx, dword [0x5a6c44]
mov ecx, dword [ecx + 4]
push 1
add ecx, 0x76c
call fcn.0042efed
mov edx, dword [0x5a6c44]
mov ecx, dword [edx + 4]
push 1
add ecx, 0x618
call fcn.0042efed
mov eax, dword [0x5a6c44]
mov ecx, dword [eax + 4]
push 1
add ecx, 0x4c4
call fcn.0042efed
mov ecx, dword [0x5a6c44]
mov ecx, dword [ecx + 4]
push 1
add ecx, 0xa14
call fcn.0042efed
mov edx, dword [0x5a6c44]
mov ecx, dword [edx + 4]
push 1
add ecx, 0x8c0
call fcn.0042efed
mov eax, 1
pop esi
ret

Function at 0x40e300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x40e30e
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 1
push ecx
call fcn.00527141
add esp, 0x10
mov eax, 1
pop ebp
ret 8

Function at 0x40e330
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x40e391
mov eax, dword [esi + 4]
test eax, eax
je 0x40e349
push eax
call fcn.004261b3
add esp, 4
mov eax, dword [esi + 8]
push eax
call fcn.004261be
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x40e391
push ebx
xor ebx, ebx
push edi
mov edi, eax
cmp dword [esi + 8], ebx
jbe 0x40e388
mov ecx, dword [esi + 0xc]
push ecx
push 0x400
push 1
push edi
call fcn.005277bb
add esp, 0x10
test eax, eax
je 0x40e388
add ebx, eax
add edi, eax
cmp ebx, dword [esi + 8]
jb 0x40e367
pop edi
pop ebx
mov eax, 1
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x40f3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ecx
test edx, edx
je 0x40f407
push ebx
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
movzx ebx, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebx + ecx*4]
inc esi
dec edx
mov dword [edi], eax
jne 0x40f3e7
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40f6c0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
push 8
push esi
mov ecx, edi
call fcn.0040f390
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0xedb88320
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0xedb88320
add ecx, ecx
xor eax, ecx
mov edx, eax
and edx, 0x80000000
neg edx
sbb edx, edx
and edx, 0xedb88320
add eax, eax
xor edx, eax
push 0x20
push edx
mov ecx, edi
call fcn.0040f390
mov dword [edi + esi*4], eax
inc esi
cmp esi, 0xff
jle 0x40f6c6
mov eax, edi
pop edi
pop esi
ret

Function at 0x40f7a0
Capabilities:
Check if file exists
Create thread
Get file attributes
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f887
test al, 0x10
jne 0x40f887
push esi
push 0x118
call fcn.00426184
mov esi, eax
add esp, 4
test esi, esi
je 0x40f7e8
push 0x118
push 0
push esi
call fcn.00526030
add esp, 0xc
jmp 0x40f7ea
xor esi, esi
mov ecx, dword [ebp + 8]
push 0x104
push ecx
lea edx, [esi + 4]
push edx
mov dword [esi], edi
call fcn.00527db5
mov eax, dword [ebp + 0xc]
add esp, 0xc
push eax
mov dword [esi + 0x108], 0
mov dword [esi + 0x10c], 0
mov dword [esi + 0x110], eax
mov dword [esi + 0x114], 0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x40f841
push esi
call fcn.0040f410
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 4]
push eax
push 4
push esi
push fcn.0040f410
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x40f874
push edi
mov dword [esi + 0x114], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.004261b3
add esp, 4
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x410830
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x5a574c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.0042ee53
push 0
push 0xd
push 0x1f
mov ecx, esi
mov dword [esi + 0xb8], eax
call fcn.0042ee87
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call fcn.00431923
mov edi, eax
test edi, edi
jne 0x410898
push ebx
mov ebx, dword [sym.imp.GDI32.dll_GetStockObject]
push 0x11
call ebx
test eax, eax
jne 0x41088f
push 0xc
call ebx
test eax, eax
je 0x410897
push eax
call fcn.00431923
mov edi, eax
pop ebx
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x40]
push ecx
push 0x3c
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [0x555f24]
mov cx, word [0x555f28]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x140]
mov dword [ebp - 0x40], eax
cdq
sub eax, edx
lea edx, [ebp - 0x40]
sar eax, 1
push edx
mov word [ebp - 0x20], cx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x30], 0x190
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esi + 0x138]
call fcn.00431937
lea eax, [esi + 0x74]
push eax
mov ecx, esi
call fcn.0042b57a
mov ecx, dword [esi + 0x20]
push 1
push ecx
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00525222
mov esp, ebp
pop ebp
ret