joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047b0
Capabilities:
Read data from internet
Receive data

Disassembly:
sub esp, 0x564
lea eax, [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x570]
push esi
push edi
mov edi, ecx
mov ecx, dword [0x462cdc]
push 0
push 0
push eax
push ebp
push ecx
call dword [sym.imp.WININET.dll_FtpFindFirstFileA]
test eax, eax
jne 0x4047ed
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x564
ret 8
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov edx, dword [0x462ce4]
mov eax, dword [0x462ce8]
push edx
push eax
mov ecx, edi
call fcn.00405010
mov ebx, dword [esp + 0x54]
call fcn.00434a99
mov eax, dword [eax + 8]
push 0x1ad
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov ecx, dword [edi + 0x94]
push eax
push 0
push 0x172
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x462cdc]
push 0
push 2
push SysReAllocString
push ebp
push edx
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x57c]
push 0x458628
push eax
call fcn.0041cfa9
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x404883
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x564
ret 8
xor esi, esi
test ebx, ebx
jbe 0x404922
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x178]
push 0x400
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [esp + 0x14]
push ebp
push edx
lea eax, [esp + 0x17c]
push 1
push eax
call fcn.0041cfbc
mov ecx, dword [esp + 0x24]
add esp, 0x10
add esi, ecx
lea ecx, [esp + 0x18]
push 1
push 0
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4048f5
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push ebx
mov ecx, edi
call fcn.004050f0
lea eax, [esi + esi*4]
xor edx, edx
mov ecx, edi
lea eax, [eax + eax*4]
shl eax, 2
div ebx
push eax
call fcn.00405230
mov ecx, edi
call fcn.004051f0
cmp esi, ebx
jb 0x40488d
push 0
mov ecx, edi
call fcn.00405230
mov ecx, edi
call fcn.004051f0
push ebp
call fcn.0041cefb
add esp, 4
cmp esi, ebx
je 0x404959
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x564
ret 8
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x564
ret 8
Function at 0x404a10
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x438b76
push eax
mov eax, 0x4328
mov dword fs:[0], esp
call fcn.0041ce90
push esi
mov esi, ecx
lea eax, [esp + 8]
lea ecx, [esp + 4]
push eax
lea edx, [esp + 0x110]
push ecx
mov ecx, dword [esp + 0x4344]
push edx
call fcn.00403450
mov ecx, eax
call fcn.004033c0
mov ecx, eax
call fcn.004033c0
lea eax, [esp + 0x10c]
push 0x4608d0
push eax
call fcn.0041d0f5
add esp, 8
test eax, eax
jne 0x404aac
lea ecx, [esp + 0x30c]
call fcn.004032b0
push 0x8104
lea ecx, [esp + 0x310]
mov dword [esp + 0x4338], 0
call fcn.00403310
lea ecx, [esp + 0x30c]
push ecx
jmp 0x404b7c
push str.MuhonSD_Temp.zip
push 0x465ec8
lea edx, [esp + 0x14]
push str._s_s
push edx
call fcn.0041ce3a
add esp, 0x10
lea eax, [esp + 0x10c]
lea ecx, [esp + 0x20c]
push eax
push 0x465ac8
push str._s__s
push ecx
call fcn.0041ce3a
add esp, 0x10
mov ecx, esi
push 0x465bc8
push 0x465cc8
push 0x465dc8
call fcn.00404730
lea edx, [esp + 0xc]
lea eax, [esp + 0x20c]
push edx
push eax
mov ecx, esi
call fcn.004047b0
test al, al
je 0x404b87
mov ecx, esi
call fcn.00404980
lea ecx, [esp + 0xc]
push ecx
push 0x465ec8
mov ecx, esi
call fcn.004049c0
test al, al
je 0x404b87
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [0x462ce4]
lea ecx, [esp + 0x231c]
inc esi
mov dword [0x462ce4], esi
call fcn.004032b0
push 0x8102
lea ecx, [esp + 0x2320]
mov dword [esp + 0x4338], 1
call fcn.00403310
lea eax, [esp + 0x231c]
push eax
mov ecx, dword [0x4633f4]
call fcn.00407600
mov ecx, dword [esp + 0x432c]
pop esi
mov dword fs:[0], ecx
add esp, 0x4334
ret 4
Function at 0x405a00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x288
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x94]
push str.MuhonSDClient.exe
rep stosd dword es:[edi], eax
lea eax, [esp + 0x98]
push eax
call fcn.0041ce3a
mov cl, byte [0x4608d0]
mov edx, dword [ebx + 0x5c]
mov byte [esp + 0x5c], cl
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x5d]
rep stosd dword es:[edi], eax
shl edx, 8
stosw word es:[edi], ax
add edx, 0x4586e4
push 0x3e8
push edx
stosb byte es:[edi], al
call fcn.00402b00
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x54]
mov eax, ecx
mov esi, edi
mov edi, edx
xor edx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [0x4608d0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dword [esp + 0xd], edx
mov dword [esp + 0x21], ecx
mov dword [esp + 0x11], edx
mov dword [esp + 0x25], ecx
mov byte [esp + 0x20], al
mov dword [esp + 0x29], ecx
mov byte [esp + 0xc], al
mov eax, dword [0x4589e4]
mov dword [esp + 0x2d], ecx
mov word [esp + 0x31], cx
mov dword [esp + 0x15], edx
mov byte [esp + 0x33], cl
mov dword [esp + 0x19], edx
push eax
lea ecx, [esp + 0x10]
mov word [esp + 0x21], dx
push 0x4585f8
push ecx
mov byte [esp + 0x2b], dl
call fcn.0041ce3a
lea edx, [esp + 0x18]
push 0x3e8
push edx
call fcn.00402b00
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov dl, byte [0x4608d0]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 7
lea edi, [esp + 0x35]
mov byte [esp + 0x34], dl
mov byte [esp + 0x74], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x75]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
mov ecx, dword [0x4608b8]
stosw word es:[edi], ax
push ecx
push 0x4585f8
push edx
stosb byte es:[edi], al
call fcn.0041ce3a
lea eax, [esp + 0x80]
push 0x3e8
push eax
call fcn.00402b00
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x34]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x54]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
push edx
push eax
lea ecx, [esp + 0x1a0]
push str._s__s__s
push ecx
call fcn.0041ce3a
add esp, 0x14
lea edx, [esp + 0x194]
lea eax, [esp + 0x94]
push 5
push 0
push edx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc4]
pop edi
pop esi
pop ebx
add esp, 0x288
ret 4
Function at 0x406d60
Capabilities:
Inspect load icon resource
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x439058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0xc], esi
call fcn.0042c576
mov dword [esp + 0x10], 0
mov dword [esi], method.CDialog.virtual_0
call fcn.00434a99
call fcn.00434a99
mov eax, dword [eax + 0xc]
push 0x1bc
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push str.MUHONSD_CONNECT
push 0
mov dword [esi + 0x60], eax
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call fcn.0042d663
test eax, eax
je 0x406dd1
push 0
call fcn.0041d1d1
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x406f50
Capabilities:
Get common file path

Disassembly:
push ecx
lea eax, [esp]
push 0x20019
push eax
push str.SoftwareUzDream_MuhonSDSetup
call fcn.00403050
add esp, 0xc
test al, al
jne 0x406f70
xor eax, eax
pop ecx
ret
push 0x465ec8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp]
push 0x465fd0
push str.VersionData
push ecx
call fcn.004030c0
add esp, 0xc
test al, al
jne 0x406fac
lea edx, [esp]
push edx
call fcn.004034b0
add esp, 4
xor eax, eax
pop ecx
ret
mov eax, dword [esp]
push 0x465fcc
push str.VersionExe
push eax
call fcn.004030c0
add esp, 0xc
test al, al
jne 0x406fd8
lea ecx, [esp]
push ecx
call fcn.004034b0
add esp, 4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push 0x465fc8
push str.VersionPatch
push edx
call fcn.004030c0
add esp, 0xc
test al, al
jne 0x407004
lea eax, [esp]
push eax
call fcn.004034b0
add esp, 4
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push ecx
call fcn.004034b0
add esp, 4
mov eax, 1
pop ecx
ret
Function at 0x407720
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4390eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x1c]
push edi
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 0x4608d0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.0042cccc
lea ecx, [esp + 0xc]
push 0x462cf8
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x138], edi
call fcn.004033c0
mov ecx, eax
call fcn.004033c0
mov ecx, eax
call fcn.004033c0
mov ecx, eax
call fcn.004033e0
mov ecx, eax
call fcn.004033e0
mov eax, dword [esp + 0x18]
mov ecx, dword [0x465fc8]
mov edx, dword [esp + 0x14]
cmp ecx, eax
mov ecx, dword [esp + 0x10]
jne 0x4077e1
cmp dword [0x465fcc], ecx
jne 0x4077e1
cmp dword [0x465fd0], edx
jne 0x4077e1
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc4]
jmp 0x40781e
mov ebx, dword [esp + 0xc]
push ebx
push eax
push edx
push ecx
lea eax, [esp + 0x2c]
push str.__d__d__d__s
push eax
call fcn.0041ce3a
add esp, 0x18
lea ecx, [esp + 0x1c]
push 5
push edi
push ecx
push str.Patch.exe
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc8]
lea ecx, [esp + 0xc]
mov dword [esp + 0x124], 0xffffffff
call fcn.0042cca2
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret 4
Function at 0x408c00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439250
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x14c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x148], ecx
mov eax, dword [ebp - 0x148]
movsx ecx, byte [eax + 0xe4]
cmp ecx, 0xffffffff
je 0x408c6c
mov edx, 1
test edx, edx
je 0x408c52
mov dword [ebp - 0x14c], 0
jmp 0x408c65
push str.No_opened_file._n
call fcn.00408010
add esp, 4
mov dword [ebp - 0x14c], eax
xor eax, eax
jmp 0x408e1c
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0xc]
and eax, 0xff
test eax, eax
jne 0x408de2
mov ecx, dword [ebp - 0x148]
cmp dword [ecx + 0x60], 0
jne 0x408cb7
mov ecx, dword [ebp - 0x148]
call fcn.004086e0
mov edx, dword [ebp - 0x148]
mov ecx, dword [edx + 0x68]
cmp ecx, dword [eax + 0x14]
je 0x408cb5
push 0xffffffffffffff9a
mov ecx, dword [ebp - 0x148]
call fcn.00408090
jmp 0x408cbe
mov dword [ebp - 0x14], 0xffffffff
mov ecx, dword [ebp - 0x148]
call fcn.004086e0
xor edx, edx
mov dx, word [eax + 0xe]
cmp edx, 8
jne 0x408ce3
mov eax, dword [ebp - 0x148]
add eax, 0x28
push eax
call fcn.0040f0b0
cmp dword [ebp + 8], 0
je 0x408de2
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x134]
push ecx
call fcn.0042b768
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x140], edx
mov eax, dword [ebp - 0x140]
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x12c], edx
mov byte [ebp - 0x11c], 0
mov ecx, dword [ebp - 0x148]
call fcn.004086e0
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x154]
call fcn.0040e830
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
mov eax, dword [edx]
mov dword [ebp - 0x128], eax
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00431351
mov ecx, dword [ebp - 0x148]
call fcn.004086e0
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax + 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x408db6
mov dword [ebp - 0x14], 0xfffffffe
jmp 0x408ddb
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x148]
add ecx, 0xe8
call fcn.0040c4e0
mov eax, dword [ebp - 0x148]
mov byte [eax + 0xe4], 0
mov ecx, dword [ebp - 0x148]
add ecx, 0x6c
call fcn.0040b640
mov ecx, dword [ebp - 0x148]
call fcn.0040a110
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409160
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43933b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
xor eax, eax
test eax, eax
jne 0x40917b
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0042cccc
mov dword [ebp - 4], 0
push 0x43c334
lea ecx, [ebp - 0x10]
call fcn.0042b4c2
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.00408e30
add esp, 8
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0041d0f5
add esp, 8
neg eax
sbb eax, eax
inc eax
and eax, 0xff
test eax, eax
jne 0x409216
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00409320
add esp, 4
xor edx, edx
cmp eax, 0xffffffff
sete dl
mov byte [ebp - 0x1c], dl
mov eax, dword [ebp - 0x1c]
and eax, 0xff
test eax, eax
jne 0x409216
mov dword [ebp - 0x50], 0
jmp 0x40921d
mov dword [ebp - 0x50], 1
mov cl, byte [ebp - 0x50]
mov byte [ebp - 0x14], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0042cca2
mov edx, dword [ebp - 0x14]
and edx, 0xff
test edx, edx
je 0x409257
mov byte [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042cca2
mov al, byte [ebp - 0x20]
jmp 0x409303
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.00408e30
add esp, 8
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.00409160
add esp, 4
and eax, 0xff
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x24], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042cca2
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
je 0x4092c5
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042cca2
mov al, byte [ebp - 0x2c]
jmp 0x409303
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4092ed
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042cca2
mov al, byte [ebp - 0x30]
jmp 0x409303
mov byte [ebp - 0x34], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042cca2
mov al, byte [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x409bb0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00409c00
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor edx, edx
cmp eax, 2
sete dl
mov byte [ebp - 4], dl
lea ecx, [ebp - 8]
call fcn.0042cca2
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40b040
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439689
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov dword [ebp - 0x44], ecx
xor eax, eax
test eax, eax
jne 0x40b05e
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x44]
mov ecx, dword [edx + 0x1c]
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx]
call dword [eax + 0x18]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00409c00
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x28], al
lea ecx, [ebp - 0x30]
call fcn.0042cca2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042cca2
mov ecx, dword [ebp - 0x28]
and ecx, 0xff
test ecx, ecx
je 0x40b0f6
xor eax, eax
jmp 0x40b10c
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x18]
imul edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f6e0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40f6ef
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x458e30]
test eax, eax
je 0x40f6fd
call fcn.0040f680
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40f7ff
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x466378]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x466378]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x466378]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x466378]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x466378]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x466378]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x466378]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x466378]
xor eax, ecx
inc esi
dec edi
jne 0x40f717
pop edi
test edx, edx
je 0x40f821
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x466378]
xor eax, ecx
inc esi
dec edx
jne 0x40f803
pop ebx
pop esi
not eax
ret 0xc
Function at 0x4221f3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x45b770
cmp edx, dword [eax]
je 0x422215
add eax, 8
inc ecx
cmp eax, 0x45b800
jl 0x422206
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x45b770]
jne 0x422343
mov eax, dword [0x4687e8]
cmp eax, 1
je 0x42231d
test eax, eax
jne 0x422246
cmp dword [0x45aff4], 1
je 0x42231d
cmp edx, 0xfc
je 0x422343
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42227d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00422460
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0041dfb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4222c0
lea eax, [ebp - 0x1a4]
push eax
call fcn.0041dfb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43fbc4
push edi
call fcn.00425ad0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00422460
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00422470
lea eax, [ebp - 0xa0]
push 0x43fba4
push eax
call fcn.00422470
push dword [esi + 0x45b774]
lea eax, [ebp - 0xa0]
push eax
call fcn.00422470
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00425a44
add esp, 0x2c
pop edi
jmp 0x422343
lea eax, [ebp + 8]
lea esi, [esi + 0x45b774]
push 0
push eax
push dword [esi]
call fcn.0041dfb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42aac0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041ce90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42ab8b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42ab8b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42ab3e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42ab49
or bh, 8
and edi, 0x8000000
je 0x42ab64
mov eax, dword [0x469f5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42ab8b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret