joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454b20
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0xa54
push ebx
push ebp
mov ebp, dword [esp + 0xa60]
push esi
xor esi, esi
cmp dword [ebp + 0x274], esi
push edi
jne 0x454cfa
push 0x208
lea eax, [esp + 0x1a]
push esi
push eax
mov word [esp + 0x20], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push 0x2e
push edx
call sub.msvcrt.dll_wcsrchr
add esp, 8
cmp eax, esi
je 0x454b7e
mov word [eax], si
lea eax, [esp + 0x14]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x454b85
mov ecx, dword [str..cfg]
mov edx, dword [0x471180]
mov edi, dword [ebp + 0x2754]
mov dword [eax], ecx
mov cx, word [0x471184]
mov dword [eax + 4], edx
mov ebx, str._cfg
mov word [eax + 8], cx
call fcn.0045e950
cmp eax, esi
jl 0x454ca5
mov ecx, dword [ebp + 0x2754]
add eax, 1
cmp eax, dword [ecx + 0x30]
jge 0x454bee
cmp eax, esi
jl 0x454bea
cmp eax, dword [ecx + 0x1c]
jge 0x454bea
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + eax*4]
mov ecx, dword [ecx + 0x10]
lea eax, [ecx + eax*2]
jmp 0x454bf3
xor eax, eax
jmp 0x454bf3
mov eax, 0x46f57c
push 0x104
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [esp + 0x14]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
add esp, 8
test eax, eax
jne 0x454ca5
push 0x208
lea ecx, [esp + 0x22a]
push esi
push ecx
mov word [esp + 0x230], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x208
lea edx, [esp + 0x43a]
push esi
push edx
mov word [esp + 0x440], si
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x14]
push 0x104
push ecx
lea eax, [esp + 0x43c]
lea ecx, [esp + 0x22c]
call fcn.00460d00
add esp, 8
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x434]
mov word [esp + eax + 0x14], cx
add eax, 2
cmp cx, si
jne 0x454c90
mov edx, dword [esp + 0xa6c]
mov word [esp + 0x64c], si
mov word [esp + 0x856], si
push edx
mov edi, str.General
lea ebx, [esp + 0x18]
lea esi, [esp + 0x648]
mov dword [esp + 0x648], 0x471800
call fcn.0044fe70
mov eax, dword [ebp + 0x690]
call fcn.00466af0
mov eax, ebp
call fcn.0046be40
mov eax, dword [ebp + 0x694]
call fcn.00459a80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa54
ret 8

Function at 0x454d10
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
mov esi, dword [edi + 0x694]
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
call fcn.0045b520
test eax, eax
pop esi
je 0x454d72
mov ecx, dword [esp]
mov eax, dword [ecx + 0x28]
test eax, eax
jl 0x454d57
cmp eax, dword [0x47b1b8]
jge 0x454d57
mov edx, dword [0x47b1a8]
mov eax, dword [edx + eax*4]
mov ecx, dword [0x47b1ac]
lea eax, [ecx + eax*2]
test eax, eax
jne 0x454d5c
mov eax, 0x46f57c
mov edx, dword [edi + 0x208]
push 5
push 0
push 0
push eax
push 0
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ecx
ret
Function at 0x454e10
Capabilities:
Open clipboard

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x6a4]
push edi
xor edi, edi
cmp eax, edi
je 0x454e2f
push eax
call sub.msvcrt.dll_free
add esp, 4
mov dword [esi + 0x6a4], edi
mov dword [esi + 0x6a8], edi
mov dword [esi + 0x6ac], edi
mov eax, dword [esi + 0x694]
push 0x9c5b
push eax
push esi
mov dword [esi + 0x6b0], 1
mov dword [esi + 0x6b4], 0x4000
call fcn.004542a0
mov eax, dword [esi + 0x6a4]
cmp eax, edi
mov edi, 0x46f57c
je 0x454e72
mov edi, eax
mov esi, dword [esi + 0x208]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x454e8c
push edi
call fcn.0045fea0
add esp, 4
pop edi
pop esi
ret

Function at 0x455550
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
sub esp, 0x410
lea eax, [esp + 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x455580
push 0x104
lea ecx, [esp + 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp]
push edx
push 0
push 0x471148
lea eax, [esp + 0x214]
push eax
mov word [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi + 0x694]
push 1
push 1
push 2
lea ecx, [esp + 0xc]
push ecx
push eax
mov ecx, esi
call fcn.00454ec0
test eax, eax
je 0x455601
mov eax, dword [esi + 0x208]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4555dc
lea edx, [esp]
push edx
call fcn.004610a0
add esp, 4
jmp 0x4555e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4555f7
mov ecx, dword [esi + 0x208]
push ecx
mov ecx, eax
call fcn.00461190
add esp, 4
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x410
ret
Function at 0x456e70
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2004
call fcn.0046e9b0
push 0x1fff
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x2018]
add esp, 0xc
push 0
push 0
push 0x1fff
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 4]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x456ec0
push 0
sub eax, edx
lea ecx, [esp + 4]
push ecx
push eax
mov eax, dword [esp + 0x2014]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x2004
ret

Function at 0x456ef0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x8004
call fcn.0046e9b0
push 0x7fff
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x8018]
add esp, 0xc
push 0
push 0
push 0x7fff
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 4]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x456f40
push 0
sub eax, edx
lea ecx, [esp + 4]
push ecx
push eax
mov eax, dword [esp + 0x8014]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x8004
ret

Function at 0x457430
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x24], 0
je 0x457474
cmp dword [eax + 0x28], 0
je 0x457449
push edx
push edi
call fcn.00456ef0
add esp, 8
pop ecx
ret
mov eax, edx
push esi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457450
sub eax, esi
push 0
sar eax, 1
lea ecx, [esp + 8]
push ecx
add eax, eax
push eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ecx
ret
push edx
push edi
call fcn.00456e70
add esp, 8
pop ecx
ret
Function at 0x458140
Capabilities:
Get common file path
Get file system object information
Get graphical window text

Disassembly:
sub esp, 0x4c4
push ebx
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2c0], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x458217
cmp dword [esi + 0x2c8], ebx
je 0x4581e5
push 0x2b0
lea eax, [esp + 0x228]
push ebx
push eax
mov dword [esp + 0x22c], ebx
call sub.msvcrt.dll_memset
push 0x208
lea ecx, [esp + 0x26]
push ebx
push ecx
mov word [esp + 0x2c], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x228]
push eax
push ebx
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esi + 0x2ac]
push eax
push 1
push 0x1003
mov dword [esi + 0x2b4], eax
push edx
jmp 0x458215
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
push 0xd
push eax
mov dword [esi + 0x2b4], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
mov eax, dword [esi + 0x2b4]
mov ecx, dword [esi + 0x2ac]
push eax
push 1
push 0x1003
push ecx
call edi
cmp dword [esi + 0x2c4], ebx
je 0x458250
push 1
push 1
push 0x19
push 0x20
push 0x20
call ebp
push 0xd
push eax
mov dword [esi + 0x2b8], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
mov edx, dword [esi + 0x2b8]
mov eax, dword [esi + 0x2ac]
push edx
push ebx
push 0x1003
push eax
call edi
push 1
push 1
push 0x19
push 0x10
push 0x10
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
mov dword [esi + 0x2b0], eax
call ebp
push 0x1000
push 0x10
push 0x10
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0
mov ebx, eax
call ebp
push 0x1000
push 0x10
push 0x10
push 0
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov ecx, dword [esi + 0x2b0]
push 0
push ecx
mov ebp, eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esi + 0x2b0]
push eax
push ebx
push edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x2b0]
push eax
push ebp
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
call ebx
push ebp
call ebx
mov ebx, dword [esi + 0x2b0]
mov esi, dword [esi + 0x2ac]
push 0
push 0
push 0x101f
push esi
call edi
push ebx
push 0
push 0x1208
push eax
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c4
ret
Function at 0x4589a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8090
call fcn.0046e9b0
mov eax, dword [ebp + 0xc]
push esi
push edi
push eax
mov ecx, 0x20
mov esi, str._html__head__s_title__s__title___head__r_n_body__r_n_s__h3__s__h3__r_n
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
push ecx
push eax
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xac]
push 0x2000
push ecx
movsw word es:[edi], word [esi]
call sub.msvcrt.dll__snwprintf
add esp, 0x1c
cmp dword [ebx + 0x24], 0
je 0x458a54
cmp dword [ebx + 0x28], 0
je 0x458a10
mov eax, dword [ebp + 8]
lea edx, [esp + 0x98]
push edx
push eax
call fcn.00456ef0
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x98]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458a20
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [eax + eax]
push edx
lea eax, [esp + 0xa4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
lea edx, [esp + 0x98]
push edx
push eax
call fcn.00456e70
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x458a70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x204
cmp dword [edi + 0x24], 0
push ebp
mov ebp, dword [esp + 0x20c]
je 0x458aae
cmp dword [edi + 0x28], 0
je 0x458a97
push str._item__r_n
push ebp
call fcn.00456ef0
jmp 0x458ab9
push 0
lea eax, [esp + 8]
push eax
push 0x10
push str._item__r_n
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x458abc
push str._item__r_n
push ebp
call fcn.00456e70
add esp, 8
push ebx
xor ebx, ebx
cmp dword [edi + 0x30], ebx
jle 0x458b9a
push esi
lea esp, [esp]
push 0x1fc
lea ecx, [esp + 0x16]
push 0
push ecx
mov word [esp + 0x1c], 0
call sub.msvcrt.dll_memset
mov edx, dword [edi + 0x34]
mov esi, dword [edx + ebx*4]
mov ecx, dword [esp + 0x224]
mov edx, dword [edi + 0x64]
mov eax, dword [ecx]
mov eax, dword [eax]
add esp, 0xc
push edx
push esi
call eax
mov edx, eax
mov eax, dword [edi + 0x68]
call fcn.0044e9c0
mov edx, dword [edi + 0x44]
lea ecx, [esi + esi*4]
mov eax, dword [edx + ecx*4 + 0x10]
lea esi, [esp + 0x10]
call fcn.00457480
mov ecx, dword [edi + 0x68]
mov eax, esi
push eax
mov eax, dword [edi + 0x6c]
push ecx
mov edx, esi
push edx
push str.__s__s___s__r_n
push 0x4000
push eax
call sub.msvcrt.dll__snwprintf
mov ecx, dword [edi + 0x6c]
add esp, 0x18
cmp dword [edi + 0x24], 0
je 0x458b83
cmp dword [edi + 0x28], 0
je 0x458b58
push ecx
push ebp
call fcn.00456ef0
jmp 0x458b8a
mov eax, ecx
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x458b60
sub eax, esi
push 0
sar eax, 1
lea edx, [esp + 0x10]
push edx
add eax, eax
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x458b8d
push ecx
push ebp
call fcn.00456e70
add esp, 8
add ebx, 1
cmp ebx, dword [edi + 0x30]
jl 0x458ad0
pop esi
cmp dword [edi + 0x24], 0
pop ebx
je 0x458bde
cmp dword [edi + 0x28], 0
je 0x458bbf
push str.__item__r_n
push ebp
call fcn.00456ef0
add esp, 8
pop ebp
add esp, 0x204
ret 8
push 0
lea ecx, [esp + 8]
push ecx
push 0x12
push str.__item__r_n
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
add esp, 0x204
ret 8
push str.__item__r_n
push ebp
call fcn.00456e70
add esp, 8
pop ebp
add esp, 0x204
ret 8
Function at 0x4592c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [esi + 0x30], ebx
push ebp
mov ebp, dword [esp + 0x38]
jle 0x459383
push edi
mov eax, dword [esi + 0x34]
mov edi, dword [eax + ebx*4]
mov edx, dword [esi + 0x44]
lea ecx, [edi + edi*4]
mov eax, dword [edx + ecx*4 + 0xc]
push eax
push eax
push str.____d._ds
lea eax, [esp + 0x18]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
mov eax, dword [esi + 0x68]
mov edx, dword [ebp]
mov edx, dword [edx]
add esp, 0x14
push eax
push edi
mov ecx, ebp
call edx
mov ecx, dword [esi + 0x64]
push eax
lea eax, [esp + 0x10]
push eax
push 0x4000
push ecx
call sub.msvcrt.dll__snwprintf
mov ecx, dword [esi + 0x64]
add esp, 0x10
cmp dword [esi + 0x24], 0
je 0x459368
cmp dword [esi + 0x28], 0
je 0x45933c
mov edx, dword [esp + 0x38]
push ecx
push edx
call fcn.00456ef0
jmp 0x459373
mov eax, ecx
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x459341
sub eax, edi
push 0
sar eax, 1
lea edx, [esp + 0x40]
push edx
add eax, eax
push eax
push ecx
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x459376
mov edx, dword [esp + 0x38]
push ecx
push edx
call fcn.00456e70
add esp, 8
add ebx, 1
cmp ebx, dword [esi + 0x30]
jl 0x4592d5
pop edi
cmp dword [esi + 0x24], 0
pop ebp
pop ebx
je 0x4593c8
cmp dword [esi + 0x28], 0
je 0x4593a9
mov eax, dword [esp + 0x2c]
push 0x470aec
push eax
call fcn.00456ef0
add esp, 8
add esp, 0x28
ret 8
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x30]
push ecx
push 4
push 0x470aec
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x28
ret 8
mov eax, dword [esp + 0x2c]
push 0x470aec
push eax
call fcn.00456e70
add esp, 8
add esp, 0x28
ret 8
Function at 0x459630
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
xor eax, eax
cmp dword [esi + 0x30], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 4], eax
jle 0x45970a
push edi
lea ebx, [ebx]
mov ecx, dword [esi + 0x34]
mov eax, dword [ecx + eax*4]
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x45966d
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x324]
mov eax, dword [eax + edx*4 + 0x10]
jmp 0x459678
mov edi, dword [esi + 0x64]
mov edx, dword [ecx]
push edi
push eax
mov eax, dword [edx]
call eax
cmp dword [esi + 0x24], 0
je 0x4596b1
cmp dword [esi + 0x28], 0
je 0x45968d
push eax
push ebx
call fcn.00456ef0
jmp 0x4596b8
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x459692
sub ecx, edi
push 0
sar ecx, 1
lea edx, [esp + 0x10]
push edx
add ecx, ecx
push ecx
push eax
push ebx
call ebp
jmp 0x4596bb
push eax
push ebx
call fcn.00456e70
add esp, 8
cmp dword [esi + 0x24], 0
je 0x4596e7
cmp dword [esi + 0x28], 0
je 0x4596d4
push 0x470af4
push ebx
call fcn.00456ef0
jmp 0x4596f2
push 0
lea edx, [esp + 0x14]
push edx
push 2
push 0x470af4
push ebx
call ebp
jmp 0x4596f5
push 0x470af4
push ebx
call fcn.00456e70
add esp, 8
mov eax, dword [esp + 8]
add eax, 1
cmp eax, dword [esi + 0x30]
mov dword [esp + 8], eax
jl 0x459650
pop edi
cmp dword [esi + 0x24], 0
je 0x459743
cmp dword [esi + 0x28], 0
je 0x45972b
push 0x470aec
push ebx
call fcn.00456ef0
add esp, 8
pop ebp
add esp, 0xc
ret 4
push 0
lea eax, [esp + 0x18]
push eax
push 4
push 0x470aec
push ebx
call ebp
pop ebp
add esp, 0xc
ret 4
push 0x470aec
push ebx
call fcn.00456e70
add esp, 8
pop ebp
add esp, 0xc
ret 4
Function at 0x45aa00
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.0046e9b0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
mov eax, dword [esi + 0x330]
mov ebx, ecx
xor ebp, ebp
mov ecx, 1
cmp eax, ecx
push edi
mov edi, edx
mov dword [esi + 0x28], ebp
je 0x45aa41
cmp eax, 2
jne 0x45aa37
mov dword [esi + 0x24], ecx
jmp 0x45aa44
cmp ebx, 4
je 0x45aa41
mov dword [esi + 0x24], ecx
jmp 0x45aa44
mov dword [esi + 0x24], ebp
cmp eax, 3
jne 0x45aa4f
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], ecx
call fcn.0045a140
cmp word [edi], bp
je 0x45aa71
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x45aa79
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp eax, 0xffffffff
mov dword [esi + 0x29c], eax
je 0x45ab6f
xor ebp, ebp
cmp dword [esi + 0x24], ebp
mov dword [esi + 0x2a0], ebx
je 0x45aac0
cmp dword [esi + 0x28], ebp
mov dword [esp + 0x10], ebp
push ebp
je 0x45aaad
lea ecx, [esp + 0x14]
push ecx
push 3
push 0x470fa0
jmp 0x45aab9
lea edx, [esp + 0x14]
push edx
push 2
push 0x470fa4
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x7f02
push ebp
mov edi, 1
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, 5
mov dword [0x47b230], eax
je 0x45aae7
cmp ebx, 6
jne 0x45aaf8
mov ecx, dword [esi + 0x29c]
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
push ebx
push ecx
mov ecx, esi
call edx
cmp ebx, 7
jne 0x45ab1c
mov ecx, dword [esi + 0x29c]
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push ecx
mov ecx, esi
call edx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 4
cmp ebx, 2
jne 0x45ab44
cmp dword [esi + 0x32c], ebp
je 0x45ab0d
mov ebx, dword [esi + 0x29c]
push ebp
call fcn.00459630
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 4
cmp ebx, 4
jne 0x45ab0d
cmp dword [esi + 0x32c], ebp
je 0x45ab0d
mov eax, dword [esi + 0x29c]
push ebp
push eax
mov ebx, esi
call fcn.00459d20
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea ebx, [esp + 0x14]
call fcn.00460250
mov ecx, ebx
push ecx
push edi
push 0x4706c4
lea edx, [esp + 0x820]
push 0x400
push edx
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x30
push str.Error
lea eax, [esp + 0x81c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x1004
ret 4
Function at 0x45b370
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x2ac]
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0xc], ebx
jg 0x45b3b4
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret 8
mov ebx, dword [esp + 0xc]
cmp dword [esp + 0x20], 0
je 0x45b3e6
mov eax, 0x51eb851f
imul ebp
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x64
mov ecx, ebp
sub ecx, eax
jne 0x45b3e6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x1f4
ja 0x45b3a2
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0xc]
add esi, ebp
cmp esi, ebx
jl 0x45b3fb
test byte [eax + 0x10], 0x20
je 0x45b3a2
sub esi, ebx
lea ebx, [esp + 0x14]
mov eax, edi
call fcn.004598b0
test eax, eax
je 0x45b433
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov ecx, dword [eax]
mov eax, dword [edi + 4]
imul eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x20]
push ecx
push edx
push eax
push edi
call fcn.004577d0
test eax, eax
jne 0x45b44c
add ebp, 1
cmp ebp, dword [esp + 0xc]
jl 0x45b3b0
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret 8
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x45b870
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2004
call fcn.0046e9b0
push 0x2000
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x47bcc0
push 0x1000
lea ecx, [esp + 8]
push ecx
push 0x46f57c
push esi
push 0x47bed0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp], 0
je 0x45b8cf
cmp dword [esp + 0x200c], 0
jne 0x45b8cf
xor eax, eax
add esp, 0x2004
ret
mov edx, dword [esp + 0x2008]
push 0x47bcc0
push edx
push esi
push 0x47bed0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
add esp, 0x2004
ret

Function at 0x45b8f0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x2004
call fcn.0046e9b0
push 0x2000
lea eax, [esp + 6]
push 0
push eax
mov word [esp + 0xc], 0
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x2014]
add esp, 0xc
push 0x47bcc0
push 0x1000
lea ecx, [esp + 8]
push ecx
push 0x46f57c
push edx
push 0x47bed0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esp], 0
je 0x45b96c
mov edx, dword [esp + 0x200c]
lea eax, [esp]
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x45b951
mov eax, 1
add esp, 0x2004
ret
xor eax, eax
add esp, 0x2004
ret