joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c782
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
xor ebx, ebx
lea edi, [esi + 0x3c0]
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x46c7ad
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [edi], ebx
mov eax, dword [esi + 0x3b4]
cmp eax, ebx
je 0x46c88c
push eax
call fcn.00410ff5
mov edi, eax
cmp edi, ebx
pop ecx
je 0x46c841
mov eax, dword [edi]
push 2
push ebx
mov ecx, edi
call dword [eax + 0x28]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x34]
test eax, eax
je 0x46c7e6
push 1
push edi
push esi
call fcn.0046bd31
mov eax, dword [esi + 0x3b4]
cmp eax, dword [esi + 0x3b0]
jne 0x46c841
movzx eax, word [ebp + 0x10]
movzx ecx, word [ebp + 0xc]
shl eax, 0x10
or eax, ecx
push eax
push dword [ebp + 8]
mov ecx, edi
push 0x202
call fcn.004114e1
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x46c830
cmp word [eax], bx
je 0x46c830
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x46c841
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x46c841
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], ebx
mov dword [esi + 0x3b4], ebx
je 0x46c88c
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push dword [esi + 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop ebx
leave
ret 0xc

Function at 0x46cea1
Capabilities:
Log keystrokes via polling

Disassembly:
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x46cee8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x46cee1
cmp dword [esp + 4], 0x1b
jne 0x46cec8
push 0
push 2
jmp 0x46ced3
cmp dword [esp + 4], 0xd
jne 0x46cee1
push 0
push 1
push 0x111
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
and dword [esi + 0x4e0], 0
ret 4
Function at 0x46f21c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4a8f27
call fcn.004a7a94
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
call dword [0x4d65d8]
xor esi, esi
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x14], ebx
jne 0x46f274
call fcn.004708fd
mov esi, eax
jmp 0x46f375
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x46f291
call fcn.004708fd
jmp 0x46f36a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 0xc], eax
je 0x46f287
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp + 8], edi
jae 0x46f2d7
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x46f2cd
lea eax, [ebp - 0x424]
call fcn.0046f3a1
mov eax, 0x8007000e
jmp 0x46f390
push 2
push eax
mov byte [ebp - 4], 2
call fcn.0046f3cb
cmp eax, 0x400
pop ecx
pop ecx
jbe 0x46f2fb
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.0046f3aa
jmp 0x46f307
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x46f322
mov ebx, dword [ebp - 0x424]
cmp ebx, esi
jne 0x46f333
mov esi, 0x8007000e
jmp 0x46f36c
call dword [0x4d65d8]
push edi
push ebx
push edi
push dword [ebp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x46f287
mov ecx, dword [ebp - 0x424]
push dword [ebp + 0x18]
mov word [ecx + eax*2], si
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.0046f3f0
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x46f38e
lea eax, [ebp - 0x424]
call fcn.0046f3a1
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x470275
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x470288
push 0x80004005
call fcn.00405d0b
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x47028f
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x470341
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x2001f
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
push eax
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x470408
xor eax, eax
cmp dword [ebp - 8], esi
je 0x47038a
push dword [ebp - 8]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov dword [ebp - 8], ecx
jne 0x470408
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push ecx
jmp 0x4703de
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 8]
call fcn.00470341
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x47041b
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
call edi
test eax, eax
je 0x4703b2
cmp dword [ebp - 8], esi
je 0x4703f8
push dword [ebp - 8]
call ebx
mov dword [ebp - 8], esi
push dword [ebp + 8]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 8], esi
je 0x470412
push dword [ebp - 8]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], esi
je 0x470425
push dword [ebp - 8]
call ebx
mov eax, dword [ebp - 0xc]
jmp 0x470414
Function at 0x4710be
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4a9899
call fcn.004a7a94
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
mov ebx, ecx
call fcn.00405e62
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.00405e62
push dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.00405e62
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004711f1
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
call fcn.00405bf2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bf2
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405bf2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], esi
jne 0x47115b
add eax, 0xfffffff0
call fcn.00405bf2
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
mov eax, dword [0x4daedc]
push edi
mov ecx, 0x4daedc
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 0x10], edi
mov eax, ebx
mov byte [ebp - 4], 7
call fcn.00471bd9
test eax, eax
jbe 0x4711d0
lea eax, [ebp - 0x10]
lea edi, [ebp + 0x10]
call fcn.00405209
mov eax, edi
push eax
call fcn.00408cb3
pop ecx
mov eax, ebx
call fcn.00471bd9
cmp esi, eax
jb 0x4711a2
call fcn.00477e4f
mov eax, dword [ebx + 4]
lea eax, [eax + esi*4]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp + 0x10]
call fcn.004069cb
mov edi, dword [ebp + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4711d4
mov eax, ebx
inc esi
call fcn.00471bd9
cmp esi, eax
jb 0x47117e
mov bl, 1
jmp 0x4711d6
xor bl, bl
lea eax, [edi - 0x10]
call fcn.00405bf2
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405bf2
mov al, bl
pop edi
jmp 0x47114b
Function at 0x4733df
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4ac83c
call fcn.004a7a94
sub esp, 0xc
push ebx
push edi
mov ebx, ecx
mov edi, edx
call fcn.004768d6
cmp dword [eax + 0x48], 1
je 0x47340c
call fcn.004768d6
cmp dword [eax + 0x18], 0
jle 0x4734ab
mov eax, ebx
call fcn.00405209
push edi
call fcn.00408cb3
mov dword [esp], str.instcfg.dat
push edi
call fcn.0040648c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x473437
test al, 0x10
jne 0x47343f
push dword [ebx]
call fcn.00406339
pop ecx
push str.http:__cdnfiles.imeitools.com_rcmdsoft_drvmaster_instcfg.dat
lea eax, [ebp - 0x10]
push eax
call fcn.00405e62
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00473bb2
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405bf2
test bl, bl
je 0x4734a4
push str.http:__cdnconfs.imeitools.com_rcmdsoft_drvmaster_instcfg.dat
lea eax, [ebp - 0x14]
push eax
call fcn.00405e62
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 4], 1
call fcn.00473bb2
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bf2
push edi
push edi
call fcn.00473beb
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x475702
Capabilities:
Delete file

Disassembly:
mov eax, 0x4aa91e
call fcn.004a7a94
sub esp, 0x10
mov eax, dword [0x4daedc]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ecx, 0x4daedc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.004757bf
mov ebx, eax
test ebx, ebx
jne 0x475753
mov dword [esi + 0x1c], 1
mov esi, dword [ebp - 0x18]
jmp 0x4757a3
push 0x28
call fcn.00440df1
test eax, eax
pop ecx
je 0x475767
push eax
call fcn.00450bab
jmp 0x475769
xor eax, eax
test eax, eax
mov esi, eax
je 0x4757a3
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x10]
push ebx
push eax
call dword [ecx]
test eax, eax
je 0x47579c
xor esi, esi
lea eax, [edi - 0x10]
call fcn.00405bf2
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
mov dword [ebp - 0x14], 1
cmp dword [edi - 0xc], 0
je 0x4757b0
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x4757ba
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp - 0x14]
jmp 0x475781
Function at 0x4758a0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 4], edi
mov word [ebp - 0x20c], di
call fcn.00479900
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x475948
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
push edi
push 2
push edi
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp ebx, edi
mov dword [esi], eax
je 0x475941
push dword [esi + 8]
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
je 0x475941
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x47658d
Capabilities:
Persist via run registry key

Disassembly:
mov eax, 0x4a8e47
call fcn.004a7a94
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x98], edi
je 0x476774
cmp dword [ebx + 0xb4], edi
je 0x476774
cmp dword [ebx + 0xf8], edi
je 0x476774
mov dword [ebp - 0x10], edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], edi
call fcn.00405e62
push 0x4bac70
lea esi, [ebx + 0xc0]
mov byte [ebp - 4], 1
call fcn.0045791b
test eax, eax
push edi
push dword [ebp - 0x14]
lea esi, [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
jne 0x476604
call fcn.0045793a
jmp 0x476609
call fcn.0043567c
cmp eax, edi
jne 0x47662d
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bf2
cmp dword [ebp - 0x10], edi
je 0x476626
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x476777
call dword [0x4d65d8]
mov dword [ebp - 0x18], eax
lea eax, [ebx + 0x84]
cmp dword [eax + 0x18], 0x10
jb 0x476647
mov esi, dword [eax + 4]
jmp 0x47664a
lea esi, [eax + 4]
cmp esi, edi
je 0x476660
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x476664
xor eax, eax
jmp 0x47667a
lea eax, [edi + edi]
call fcn.004883e0
mov eax, esp
push dword [ebp - 0x18]
push edi
push esi
mov esi, eax
call fcn.004086b7
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00405e62
mov byte [ebp - 4], 2
mov eax, dword [0x4daedc]
mov ecx, 0x4daedc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
lea eax, [ebx + 0xa0]
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 0x10
jb 0x4766b0
mov esi, dword [eax + 4]
jmp 0x4766b3
lea esi, [eax + 4]
test esi, esi
je 0x4766c9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x4766cf
and dword [ebp - 0x1c], 0
jmp 0x4766e8
lea eax, [edi + edi]
call fcn.004883e0
mov eax, esp
push dword [ebp - 0x18]
push edi
push esi
mov esi, eax
call fcn.004086b7
mov dword [ebp - 0x1c], eax
cmp dword [ebx + 0x1c], 0x10
jb 0x4766f3
mov ebx, dword [ebx + 8]
jmp 0x4766f6
add ebx, 8
test ebx, ebx
je 0x47670c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x476710
xor eax, eax
jmp 0x476724
lea eax, [edi + edi]
call fcn.004883e0
mov esi, esp
push dword [ebp - 0x18]
push edi
push ebx
call fcn.004086b7
push dword [ebp - 0x1c]
push eax
push 0x4be948
lea eax, [ebp - 0x20]
call fcn.00406942
mov edi, dword [ebp - 0x20]
add esp, 0xc
push edi
push dword [ebp - 0x24]
lea esi, [ebp - 0x10]
call fcn.004356d0
lea eax, [edi - 0x10]
call fcn.00405bf2
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405bf2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405bf2
cmp dword [ebp - 0x10], 0
je 0x476774
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x477310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x47734d
cmp dword [ebp + 0x14], edi
je 0x47734d
cmp ecx, edi
jne 0x477354
call fcn.00480a1d
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00477e2b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x477368
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x477389
cmp ebx, 0xffffffff
je 0x477378
push ebx
push edi
push ecx
call fcn.00479900
add esp, 0xc
cmp esi, edi
je 0x477335
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x477335
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4773a5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4773ac
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x47749d
test word [esi + 0xc], 0x10c
je 0x477400
mov eax, dword [esi + 4]
test eax, eax
je 0x477400
jl 0x4774fe
cmp ebx, eax
mov edi, ebx
jb 0x4773d1
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4774a5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047775f
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x477495
cmp ebx, dword [ebp - 0xc]
jb 0x47746d
cmp dword [ebp - 0xc], 0
je 0x47742a
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x47741f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x477426
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x477435
mov eax, SysReAllocString
cmp ebx, eax
ja 0x477435
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4774d1
push eax
push dword [ebp - 8]
push esi
call fcn.0047c5e6
pop ecx
push eax
call fcn.0048295d
add esp, 0xc
test eax, eax
je 0x477510
cmp eax, 0xffffffff
je 0x4774fe
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x477495
push esi
call fcn.0048227c
cmp eax, 0xffffffff
pop ecx
je 0x477502
cmp dword [ebp - 4], 0
je 0x4774d1
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4773b4
mov eax, dword [ebp + 0x14]
jmp 0x47734f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4774bc
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00479900
add esp, 0xc
call fcn.00480a1d
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x477345
cmp dword [ebp + 0xc], 0xffffffff
je 0x4774e7
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00479900
add esp, 0xc
call fcn.00480a1d
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x477345
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x47734f
or dword [esi + 0xc], 0x10
jmp 0x477502
Function at 0x47e66f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x47e69c
call fcn.00480a30
mov dword [eax], esi
call fcn.00480a1d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00477e2b
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x47e678
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47e6cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00480a43
pop ecx
call fcn.00480a1d
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x47e6f2
test al, 1
je 0x47e6f2
test byte [esp + 0xc], 2
je 0x47e6f2
call fcn.00480a30
mov dword [eax], 5
call fcn.00480a1d
mov dword [eax], 0xd
jmp 0x47e6c2
xor eax, eax
pop esi
ret

Function at 0x47f7d7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d52f8]
jne 0x47f7e1
repz ret
jmp fcn.0048dacc

Function at 0x4879eb
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d5e10]
je 0x487a06
inc edi
cmp edi, 0x17
jb 0x4879f7
cmp edi, 0x17
jae 0x487b86
push ebp
push 3
call fcn.0048f846
cmp eax, 1
pop ecx
je 0x487b52
push 3
call fcn.0048f846
test eax, eax
pop ecx
jne 0x487a3a
cmp dword [0x4d5150], 1
je 0x487b52
cmp ebx, 0xfc
je 0x487b85
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4da4c0
push ebp
call fcn.0047e804
add esp, 0xc
test eax, eax
je 0x487a70
push esi
push esi
push esi
push esi
push esi
call fcn.00477d2f
add esp, 0x14
push 0x104
mov esi, 0x4da4d9
push esi
push 0
mov byte [0x4da5dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x487ab4
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047e804
add esp, 0xc
test eax, eax
je 0x487ab4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00477d2f
add esp, 0x14
push esi
call fcn.00477930
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x487af9
push esi
call fcn.00477930
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4da7d4
push 0x4afb2c
sub ecx, eax
push ecx
push eax
call fcn.0047bc37
add esp, 0x14
test eax, eax
je 0x487af9
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00477d2f
add esp, 0x14
jmp 0x487afb
xor esi, esi
push 0x4afb28
push ebx
push ebp
call fcn.0048de29
add esp, 0xc
test eax, eax
je 0x487b1b
push esi
push esi
push esi
push esi
push esi
call fcn.00477d2f
add esp, 0x14
push dword [edi*8 + 0x4d5e14]
push ebx
push ebp
call fcn.0048de29
add esp, 0xc
test eax, eax
je 0x487b3d
push esi
push esi
push esi
push esi
push esi
call fcn.00477d2f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0048f689
add esp, 0xc
jmp 0x487b85
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x487b85
cmp ebp, 0xffffffff
je 0x487b85
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d5e14]
push dword [esi]
call fcn.00477930
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x48f689
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00481c8d
xor ebx, ebx
cmp dword [0x4dae48], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48f75f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48f83f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x48f83f
push eax
call fcn.00481c1f
mov dword [esp], 0x4b05a0
push edi
mov dword [0x4dae48], eax
call esi
push eax
call fcn.00481c1f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dae4c], eax
call esi
push eax
call fcn.00481c1f
mov dword [0x4dae50], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047bec9
test eax, eax
pop ecx
pop ecx
je 0x48f72d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00477d2f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48f75f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00481c1f
cmp eax, ebx
pop ecx
mov dword [0x4dae58], eax
je 0x48f75f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00481c1f
pop ecx
mov dword [0x4dae54], eax
mov eax, dword [0x4dae54]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48f7e4
cmp dword [0x4dae58], ecx
je 0x48f7e4
push eax
call fcn.00481c96
push dword [0x4dae58]
mov esi, eax
call fcn.00481c96
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48f7e4
cmp edi, ebx
je 0x48f7e4
call esi
cmp eax, ebx
je 0x48f7b1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48f7b1
test byte [ebp - 0x18], 1
jne 0x48f7e4
lea eax, [ebp - 0x10]
push eax
call fcn.0047bf00
test eax, eax
pop ecx
je 0x48f7cc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00477d2f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48f7db
or dword [ebp + 0x10], 0x200000
jmp 0x48f81f
or dword [ebp + 0x10], 0x40000
jmp 0x48f81f
mov eax, dword [0x4dae4c]
cmp eax, dword [ebp - 8]
je 0x48f81f
push eax
call fcn.00481c96
cmp eax, ebx
pop ecx
je 0x48f81f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48f81f
mov eax, dword [0x4dae50]
cmp eax, dword [ebp - 8]
je 0x48f81f
push eax
call fcn.00481c96
cmp eax, ebx
pop ecx
je 0x48f81f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dae48]
call fcn.00481c96
cmp eax, ebx
pop ecx
je 0x48f83f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48f841
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret