joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429134
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x429217
mov eax, dword [esi]
cmp eax, edi
je 0x429217
push edi
push 0x2e
push 0x1b
push 0x28
push dword [ebp + 0xc]
push eax
call fcn.00431d84
add esp, 0x18
cmp eax, edi
mov dword [ebp + 8], eax
je 0x4291a8
cmp eax, 0xffffffff
je 0x4291a8
lea eax, [ebp + 8]
push ebx
push eax
push 0x1b
push dword [ebp + 0xc]
push dword [esi]
call fcn.00431c76
push dword [ebp + 8]
mov ebx, eax
push ebx
push esi
call fcn.004298d3
push edi
push edi
push ebx
mov dword [ebp + 0xc], eax
push dword [esi]
call fcn.00431d77
add esp, 0x2c
pop ebx
jmp 0x429231
push edi
push 0x2c
push 0x1b
push 0x28
push dword [ebp + 0xc]
push dword [esi]
call fcn.00431d84
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x429217
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10c]
push str.Auto
push eax
call fcn.0043312f
test eax, eax
je 0x429217
lea eax, [ebp - 0x10c]
push edi
push eax
call fcn.004335d8
mov edi, eax
cmp edi, 0xffffffff
je 0x429217
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x989680
mov dword [ebp + 8], eax
push edi
jbe 0x42921f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret 8
push esi
call fcn.00429d0b
pop ecx
mov dword [ebp + 0xc], eax
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
jmp 0x429219
Function at 0x42a6b1
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0xb
push dword [esi + 4]
call fcn.0040684e
push 5
push eax
call fcn.004036c1
push 0xd
push 0xe
push eax
mov dword [ebp - 0xc], eax
call fcn.00402c3d
mov eax, dword [ebp + 0xc]
movsx ecx, word [eax + 0xc]
movsx eax, word [eax + 0xe]
add eax, dword [ebp + 0x14]
add ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
test eax, eax
mov dword [ebp - 0x14], ecx
je 0x42a714
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42a714
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
sub edi, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
sub ebx, dword [ebp - 0x1c]
mov dword [ebp + 0x14], edi
call esi
push ebx
mov dword [ebp + 0xc], eax
call fcn.0044d817
cmp eax, 0x64
pop ecx
jg 0x42a757
push edi
call fcn.0044d817
cmp eax, 0x64
pop ecx
mov dword [ebp + 8], 0x190
jle 0x42a75e
mov dword [ebp + 8], 0x320
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edi, [ecx + eax]
mov dword [ebp - 8], edi
call esi
cmp eax, edi
mov edi, dword [sym.imp.USER32.dll_SetCursorPos]
jae 0x42a7b5
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x64
mov dword [ebp + 0xc], ecx
jmp 0x42a784
mov ecx, dword [ebp + 0xc]
imul eax, eax, 0x64
sub eax, ecx
xor edx, edx
div dword [ebp + 8]
push 0x64
pop ecx
mov dword [ebp - 4], eax
imul eax, dword [ebp + 0x14]
cdq
idiv ecx
add eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
imul eax, ebx
cdq
idiv ecx
add eax, dword [ebp - 0x1c]
push eax
call edi
call esi
cmp eax, dword [ebp - 8]
jb 0x42a781
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call edi
push 1
push 0xe
push dword [ebp - 0xc]
call fcn.00402c3d
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42eb71
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45b5ea
call fcn.0044c66c
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov word [esi + 8], di
mov word [esi + 0xa], di
mov word [esi + 0xc], di
lea ecx, [esi + 0x34]
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
call fcn.0042ebfb
lea ecx, [esi + 0x60]
mov dword [ebp - 4], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call fcn.0042ec4a
lea eax, [esi + 0x84]
mov byte [ebp - 4], 1
lea ecx, [eax + 8]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.0042ec99
push 8
push edi
push esi
call fcn.0044bf00
push 0x14
lea eax, [esi + 0xe]
push edi
push eax
call fcn.0044bf00
push 0xa
lea eax, [esi + 0x22]
push edi
push eax
call fcn.0044bf00
mov ecx, dword [ebp - 0xc]
add esp, 0x24
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret
Function at 0x42edc9
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x119b
mov esi, ecx
push dword [0x46950c]
call fcn.00434e92
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042fef5
mov eax, dword [esi + 0x1c0]
cmp eax, 0xffffffff
je 0x42ee06
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x1c0], eax
je 0x42eeec
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 0x1c4], eax
je 0x42eeec
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0x1c8], eax
je 0x42eeec
mov ecx, 0xf24af34d
mov dword [ebp - 4], eax
cmp dword [eax], ecx
jne 0x42ee80
cmp dword [eax + 4], ecx
jne 0x42ee80
mov ecx, esi
call fcn.0042ffa0
jmp 0x42ef37
lea eax, [ebp - 4]
lea ecx, [esi + 0x104]
push eax
call fcn.0042f394
test al, al
je 0x42eeec
push 0x1199
push dword [0x46950c]
call fcn.00434e92
lea eax, [ebp - 4]
lea ecx, [esi + 0x130]
push eax
call fcn.0042ef3d
test al, al
je 0x42eeec
push 0x119a
push dword [0x46950c]
call fcn.00434e92
lea eax, [ebp - 4]
lea ecx, [esi + 0x15c]
push eax
call fcn.0042f0ea
test al, al
je 0x42eeec
lea eax, [ebp - 4]
lea ecx, [esi + 0x188]
push eax
call fcn.0042f27b
test al, al
jne 0x42eef0
xor al, al
jmp 0x42ef37
cmp word [esi + 0x10e], 2
push ebx
jne 0x42ef34
cmp dword [esi + 0x1b4], edi
mov ebx, dword [sym.imp.USER32.dll_FindWindowA]
mov byte [esi + 0x1cc], 1
jne 0x42ef1e
push str.DemoNow
push edi
call ebx
mov dword [esi + 0x1b4], eax
cmp dword [esi + 0x1b4], edi
jne 0x42ef34
push str.InstallFromTheWeb
push edi
call ebx
mov dword [esi + 0x1b4], eax
mov al, 1
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x42fa1f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
push 0x13
push dword [ebp + 8]
mov esi, ecx
call fcn.00430a0d
xor ebx, ebx
cmp eax, ebx
je 0x42fb12
cmp dword [eax], ebx
jne 0x42fafb
push dword [eax + 0x1c]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push str.Text
push eax
call fcn.0043312f
test eax, eax
je 0x42fb12
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x108]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x42faa0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42fb12
mov eax, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov eax, dword [eax]
push dword [ebp + 8]
lea esi, [eax - 1]
call edi
cmp eax, esi
jae 0x42fac0
push ebx
push dword [ebp + 8]
call edi
mov esi, eax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push ebx
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], esi
je 0x42fae2
cmp dword [ebp + 8], ebx
je 0x42fb12
push dword [ebp + 8]
jmp 0x42fa98
mov eax, dword [ebp + 0x10]
mov byte [esi + edi], bl
inc esi
cmp dword [ebp + 8], ebx
mov dword [eax], esi
je 0x42fb40
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42fb40
lea eax, [ebp - 4]
mov ecx, esi
push eax
push 0x13
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.0042f97c
cmp eax, ebx
jne 0x42fb16
xor al, al
jmp 0x42fb42
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
dec ecx
cmp dword [ebp - 4], ecx
jb 0x42fb24
mov dword [ebp - 4], ecx
push dword [ebp - 4]
mov edi, dword [ebp + 0xc]
push eax
push edi
call fcn.0044bf60
mov eax, dword [ebp - 4]
add esp, 0xc
mov byte [eax + edi], bl
mov eax, dword [ebp - 4]
inc eax
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x430d8a
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x430e02
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x430e02
test byte [esi + 0x10], 8
lea eax, [ebp - 0x108]
push 0x104
push eax
je 0x430dc5
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x430dd8
call fcn.00433597
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.00433b6e
push dword [esi + 0x1c]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp + 0xc], 0
je 0x430e5f
lea eax, [ebp + 8]
push 1
push eax
push esi
mov ecx, edi
call fcn.00430ac1
mov edi, eax
test edi, edi
jne 0x430e06
xor al, al
jmp 0x430e6e
push 0
push 0x80
push 2
push 0
push 1
lea eax, [ebp - 0x108]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x430e57
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
sete byte [ebp + 0xf]
test esi, esi
je 0x430e52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xf]
jmp 0x430e6e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop edi
pop esi
leave
ret 8
Function at 0x430e74
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x45b7b0
call fcn.0044c66c
sub esp, 0x218
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov ebx, ecx
cmp esi, edi
mov dword [ebp - 0x10], ebx
je 0x430f98
cmp dword [esi + 0x18], edi
jne 0x431043
cmp word [ebx + 0x10e], 2
jne 0x431009
movsx eax, word [esi + 0xc]
push eax
lea eax, [ebp - 0x224]
push str._u.sce
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push ebx
call fcn.00433ad6
lea eax, [ebp - 0x120]
push 1
push eax
call fcn.00433b6e
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 3
push edi
push 1
lea eax, [ebp - 0x120]
push SysReAllocStringLen
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
mov dword [ebp - 4], edi
jne 0x430f72
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x224]
push eax
movsx eax, word [esi + 0xc]
push eax
call fcn.004313f2
push edi
push 0x80
push 3
push edi
push 1
lea eax, [ebp - 0x120]
push SysReAllocStringLen
push eax
call ebx
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
push 0xffffffffffffffff
je 0x430f6a
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
jmp 0x430f78
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x430f98
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push edi
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [ebp - 0x1c], eax
jne 0x430f9f
cmp dword [ebp + 8], edi
je 0x430f98
push dword [ebp + 8]
call ebx
xor eax, eax
jmp 0x43104e
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ax, word [eax + 0x110]
push eax
lea eax, [ebp - 0x18]
push dword [esi + 4]
push eax
push dword [ebp - 0x14]
call fcn.00431dfc
add esp, 0x10
mov ecx, esi
mov dword [ebp - 0x10], eax
push dword [ebp - 0x18]
push eax
call fcn.0043105f
push dword [ebp - 0x10]
call fcn.0044c872
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call ebx
cmp dword [ebp + 8], edi
je 0x431043
push dword [ebp + 8]
call ebx
jmp 0x431043
mov ecx, dword [esi]
mov eax, dword [ebx + 0x1c8]
add eax, dword [esi + 8]
mov dword [ebp + 8], ecx
mov cx, word [ebx + 0x110]
push ecx
lea ecx, [ebp + 8]
push dword [esi + 4]
push ecx
push eax
call fcn.00431dfc
add esp, 0x10
mov edi, eax
mov ecx, esi
push dword [ebp + 8]
push edi
call fcn.0043105f
push edi
call fcn.0044c872
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 0x14]
mov dword [ecx], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x431195
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x431218
cmp dword [esi + 0x14], 0
jne 0x43122e
mov eax, dword [edi + 0x1c0]
cmp eax, 0xffffffff
je 0x431218
push 0
push 0
push dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x431218
mov eax, dword [esi]
inc eax
push eax
call fcn.0044c87d
pop ecx
mov dword [esi + 0x14], eax
lea ecx, [ebp - 4]
push 0
push ecx
push dword [esi]
push eax
push dword [edi + 0x1c0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
cmp dword [ebp - 4], eax
jne 0x431218
mov dword [ebp + 8], eax
mov ax, word [edi + 0x110]
push eax
lea eax, [ebp + 8]
push dword [esi + 4]
push eax
push dword [esi + 0x14]
call fcn.00431dfc
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x43121c
xor eax, eax
jmp 0x431239
mov eax, dword [ebp + 8]
push dword [esi + 0x14]
mov dword [esi + 4], eax
call fcn.0044c872
pop ecx
mov dword [esi + 0x14], edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi + 0x14]
pop edi
pop esi
leave
ret 8

Function at 0x4312f0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x45b7d8
call fcn.0044c66c
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x4313cf
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
push dword [esi + 0x1c]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x110]
push str.Image
push eax
call fcn.0043312f
test eax, eax
je 0x4313de
push edi
push 0x80
push 3
push edi
push 1
lea eax, [ebp - 0x110]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
mov dword [ebp - 4], edi
jne 0x43136b
push eax
jmp 0x4313c9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x431383
push eax
call fcn.0044c872
pop ecx
lea eax, [edi + 1]
push eax
call fcn.0044c87d
mov dword [esi + 0x24], eax
pop ecx
movzx eax, byte [esi + 0xf]
dec eax
dec eax
je 0x4313ad
sub eax, 5
je 0x4313ad
push 0
push 0
push 0xe
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub edi, 0xe
push 0
push dword [ebp + 0xc]
push edi
push dword [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0xc]
cmp dword [eax], edi
je 0x4313d3
test ebx, ebx
je 0x4313cf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4313e1
test ebx, ebx
je 0x4313de
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x43149c
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x45b7ef
call fcn.0044c66c
sub esp, 0x2c8
push ebx
push esi
push edi
lea eax, [ebp - 0x1d0]
push dword [ebp + 8]
xor edi, edi
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x1d1], 0x2f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4314ea
lea eax, [ebp - 0x1d0]
push 0x464f40
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x1d0]
push eax
call esi
cmp dword [ebp + 0x10], 1
jne 0x43150d
lea eax, [ebp - 0x2d4]
push 0x104
push eax
call fcn.00433597
lea eax, [ebp - 0x2d4]
push 0x4644d4
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x2d4]
push eax
call esi
push edi
push edi
push edi
push edi
push 0x7530
push 0x464180
lea ecx, [ebp - 0xcc]
call fcn.00431631
mov dword [ebp - 0xcc], 0x45ddf0
push 0x80400100
lea eax, [ebp - 0x1d0]
push edi
push eax
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], edi
call fcn.0045a011
test al, al
je 0x431600
lea ecx, [ebp - 0xcc]
call fcn.0045a8cd
mov esi, eax
push esi
call fcn.0044c87d
mov ebx, eax
pop ecx
lea eax, [ebp + 8]
lea ecx, [ebp - 0xcc]
push eax
push esi
push ebx
call fcn.0045a157
cmp dword [ebp + 8], esi
je 0x4315a2
push ebx
call fcn.0044c872
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0xcc]
call fcn.004318ae
cmp ebx, edi
je 0x431600
push edi
push 0x80
push 2
push edi
push edi
lea eax, [ebp - 0x2d4]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4315f5
lea eax, [ebp + 0xc]
push edi
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x4315f5
push ebx
call fcn.0044c872
pop ecx
xor ebx, ebx
cmp esi, edi
je 0x431600
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x10], 2
je 0x43160f
push ebx
call fcn.0044c872
pop ecx
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.0043185a
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14

Function at 0x433557
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x4335d8
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, 0x4000
test ebx, ebx
je 0x433618
cmp ebx, 0x200
je 0x433609
cmp ebx, 0x1000
je 0x4335fd
cmp ebx, esi
je 0x433618
jmp 0x433613
push 3
mov ecx, 0xc0000000
pop eax
push 2
jmp 0x433622
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or eax, 0xffffffff
jmp 0x433654
push 1
mov ecx, SysReAllocStringLen
pop eax
push 3
pop edx
push edi
push 0
push 0x80
push edx
push 0
push eax
push ecx
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp ebx, esi
mov edi, eax
jne 0x433651
cmp edi, 0xffffffff
je 0x43364e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x433651
or edi, 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x433f5e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor al, al
cmp byte [esi], al
je 0x433f97
cmp byte [esi + 1], 0x3a
jne 0x433f97
cmp byte [esi + 2], al
jne 0x433f97
mov byte [ebp - 0x102], 0x5c
mov byte [ebp - 0x101], al
lea eax, [ebp - 0x104]
push eax
call fcn.00433bed
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop esi
jne 0x433fba
or eax, eax
leave
ret
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
leave
ret

Function at 0x4344fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 8], 0x105
je 0x43454f
lea eax, [ebp - 0x214]
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x214]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x434553
xor eax, eax
jmp 0x434576
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x43456b
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
Function at 0x434c6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
call edi
mov esi, str.MS_Shell_Dlg
lea eax, [ebp - 0x68]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
test eax, eax
jne 0x434cfc
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFontSubstitutes
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x434cfc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x28
push eax
lea eax, [ebp - 0x90]
push eax
push ebx
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x434cfc
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x68]
push eax
call edi
cmp dword [0x469e40], ebx
jne 0x434d09
call fcn.00434bb2
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x434d15
mov eax, dword [0x469e3c]
push dword [0x469e40]
mov dword [ebp + 0xc], eax
xor esi, esi
call fcn.00433668
mov edi, eax
cmp edi, ebx
je 0x434d4d
lea eax, [ebp - 0x68]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x434d3c
mov esi, edi
push dword [0x469e40]
call fcn.0043369e
cmp esi, ebx
mov edi, eax
je 0x434d27
cmp esi, ebx
je 0x434d94
push 0x20
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov al, byte [esi + 0x4e]
cmp al, bl
mov byte [ebp - 0x29], al
jne 0x434d6c
mov byte [ebp - 0x29], 1
mov al, byte [esi + 0x4d]
push 0xffffffffffffffb8
mov byte [ebp - 0x27], al
mov al, byte [esi + 0x4c]
mov byte [ebp - 0x28], al
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
cdq
pop ecx
mov byte [ebp - 0x26], 5
idiv ecx
mov dword [ebp - 0x40], eax
mov al, byte [esi + 0x48]
mov byte [ebp - 0x25], al
jmp 0x434dc6
lea eax, [ebp - 0x24]
push str.Arial
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffb8
imul eax, dword [ebp + 0x10]
cdq
pop ecx
mov byte [ebp - 0x26], 5
idiv ecx
mov byte [ebp - 0x28], 7
mov byte [ebp - 0x25], 0x22
mov byte [ebp - 0x27], bl
mov byte [ebp - 0x29], 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], ebx
neg eax
sbb eax, eax
mov byte [ebp - 0x2a], bl
and eax, 0x12c
mov dword [ebp - 0x3c], ebx
add eax, 0x190
cmp dword [ebp + 0x18], ebx
mov dword [ebp - 0x30], eax
setne al
cmp dword [ebp + 0x1c], ebx
mov byte [ebp - 0x2c], al
setne al
mov byte [ebp - 0x2b], al
mov eax, dword [ebp + 0x24]
lea eax, [eax + eax*4]
shl eax, 1
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
pop edi
pop esi
pop ebx
leave
ret 0x20