joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a289
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040ad2e
test eax, eax
pop ecx
jne 0x40a3e6
mov esi, 0x434308
push esi
call fcn.0040ae13
test eax, eax
pop ecx
jne 0x40a3e6
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x434308]
push 0x4342fc
mov dword [eax], ecx
call fcn.0040ad7e
test eax, eax
pop ecx
jne 0x40a3e6
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x4342fc]
mov dword [ebx], eax
cmp dword [0x434308], 1
jne 0x40a2ec
xor eax, eax
jmp 0x40a3e6
lea eax, [ebp + 8]
push eax
push 0x434300
call fcn.0040a275
test eax, eax
jne 0x40a3e6
mov eax, dword [0x434308]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x43430c], eax
jne 0x40a32b
push 0xfffffffffffffffc
pop eax
jmp 0x40a3e6
push esi
call fcn.0040ae9c
mov edi, eax
pop ecx
test edi, edi
je 0x40a361
push dword [0x43430c]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x43430c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40a3e4
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x4342f8], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x4340ec], eax
movzx eax, word [ebp + 0x14]
push 0x40a615
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x4340ec]
test eax, eax
je 0x40a3a4
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x40a3ad
xor edi, edi
jmp 0x40a3b5
cmp edi, 2
jne 0x40a3b5
or edi, 0xffffffff
mov eax, dword [0x43430c]
test eax, eax
je 0x40a3dd
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x43430c]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x4342fc], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40a8ca
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x40aa51
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x40aa51
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x40a93c
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x40aa51
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.0040b08e
push 1
push 0x42d6e0
push esi
mov edi, eax
call fcn.0040b08e
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x40aa51
test edi, edi
je 0x40aa51
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x40a9db
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x40a9e1
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x40a9f1
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x40aa51
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b939
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
mov eax, 0x42752c
call fcn.0041c160
sub esp, 0x108
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
pop esi
cmp ebx, 0x2000
mov dword [ebp - 0x10], ecx
mov dword [eax], esi
mov edi, 0xbc2
je 0x40b9ab
cmp ebx, edi
je 0x40b9ab
cmp ebx, 0x800704c7
jne 0x40b981
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
je 0x40b995
mov dword [eax], ebx
jmp 0x40ba4d
test ebx, ebx
je 0x40ba4d
cmp ebx, 0x1008
je 0x40ba4d
mov dword [0x434bb4], 0x66d
call fcn.0040f994
xor eax, eax
jmp 0x40ba4f
call fcn.0041640b
test eax, eax
jne 0x40b9c3
cmp ebx, edi
je 0x40b9c3
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x40b9cd
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp + 0x14], ebx
mov dword [eax + 0x38], esi
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], ebx
call fcn.00409a5b
test eax, eax
jne 0x40ba3f
push 0x40
lea edi, [ebp - 0x113]
pop ecx
mov byte [ebp - 0x114], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push str.InstallerLocation
mov dword [ebp + 8], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0x14], ebx
je 0x40ba4d
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x40d5c9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe20
and byte [ebp - 0x20], 0
push ebx
push esi
push edi
mov ebx, ecx
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1f]
and byte [ebp - 0x620], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
push 0x7f
xor eax, eax
pop ecx
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Msi.DLL
call fcn.00415895
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.00416138
add esp, 0x14
test eax, eax
jge 0x40d7df
mov ecx, ebx
call fcn.00401046
mov edi, eax
mov ecx, edi
call fcn.00413045
mov ecx, edi
mov esi, eax
call fcn.00414735
test eax, eax
je 0x40d64d
mov eax, str.SupportOSMsi30
jmp 0x40d662
mov ecx, edi
call fcn.00414718
test eax, eax
mov eax, str.SupportOSMsi12
jne 0x40d662
mov eax, str.SupportOS
push edi
push eax
call fcn.00416da5
pop ecx
test eax, eax
pop ecx
je 0x40d711
cmp dword [esi], 2
jne 0x40d70a
call fcn.00416467
test eax, eax
jne 0x40d69d
mov eax, 0x4b2
push eax
mov dword [0x434bb4], eax
call fcn.0041567b
pop ecx
push 1
jmp 0x40d7e1
and byte [ebp - 0x420], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
mov esi, 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40d6df
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040d2d7
test eax, eax
je 0x40d703
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40d70a
lea eax, [ebp - 0x420]
mov ecx, ebx
push eax
call fcn.0040d2d7
test eax, eax
jne 0x40d70a
push 2
jmp 0x40d7e1
xor eax, eax
jmp 0x40d7e2
cmp dword [esi + 0x14], 2
jne 0x40d72b
cmp dword [esi + 8], 4
jne 0x40d72b
mov ecx, edi
call fcn.004146df
push 3
jmp 0x40d7e1
mov esi, 0x400
lea eax, [ebp - 0xe20]
push esi
push eax
push 0x431bf0
lea ecx, [edi + 0x3214]
push dword [0x4285dc]
push dword [0x4285d4]
call fcn.00401d30
cmp byte [ebp - 0xe20], 0x79
je 0x40d7da
cmp byte [ebp - 0xe20], 0x59
je 0x40d7da
and byte [ebp - 0x420], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x41f]
mov edx, 0x4b7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x420]
push esi
push eax
push edx
mov dword [0x434bb4], edx
call fcn.0041575b
and byte [ebp - 0xa20], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xa1f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0xa20]
push eax
call fcn.00415523
add esp, 0x10
or eax, 0xffffffff
jmp 0x40d7e2
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40d7e9
Capabilities:
Query or enumerate registry value
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [ebp + 0xc]
and byte [ebp - 0x10c], 0
push ebx
push esi
and dword [eax], 0
push edi
mov esi, ecx
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
and byte [ebp - 1], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
stosb byte es:[edi], al
call fcn.00401046
mov ecx, eax
call fcn.00414735
mov ebx, eax
mov ecx, esi
dec ebx
neg ebx
sbb bl, bl
inc bl
call fcn.00401046
add eax, 0xac
push eax
push str.2.0.2600.0
call fcn.00416138
pop ecx
test eax, eax
pop ecx
jge 0x40d856
push dword [ebp + 8]
push str.__s___q
jmp 0x40d870
test bl, bl
je 0x40d864
push dword [ebp + 8]
push str.__s___quiet__norestart
jmp 0x40d870
push dword [ebp + 8]
mov byte [ebp - 1], 1
push str.__s___c:_msiinst__delayrebootq_
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test bl, bl
je 0x40d8a0
mov ecx, esi
call fcn.00401046
push eax
push 1
pop esi
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0041694b
mov edi, eax
jmp 0x40d8b3
lea eax, [ebp - 0x10c]
push 1
push eax
call fcn.00416242
push 1
mov edi, eax
pop esi
test edi, edi
mov eax, 0xbc2
je 0x40d8db
cmp edi, eax
je 0x40d8db
push 0
push edi
mov dword [0x434bb4], 0x484
call fcn.00415595
pop ecx
mov eax, edi
pop ecx
jmp 0x40d97f
test bl, bl
jne 0x40d978
cmp edi, eax
jne 0x40d97d
cmp byte [ebp - 1], bl
je 0x40d978
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionInstaller
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0xc]
mov dword [eax], 2
call fcn.00409a5b
test eax, eax
jne 0x40d967
and byte [ebp - 0x210], al
push 0x40
pop ecx
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 8]
and dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.InstallerLocation
mov dword [ebp + 8], 0x104
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp dword [ebp + 0xc], 0
je 0x40d97d
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40d97d
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40eb4b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push edi
push str.31EE4FE8_7F9C_11D5_ABB8_00B0D02332EB
lea eax, [ebp - 0x80c]
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_s
push eax
xor ebx, ebx
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
mov esi, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x80c]
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40ebb7
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 8], ebx
sete byte [ebp - 1]
cmp edi, ebx
je 0x40ebc9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40eed9
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42778a
call fcn.0041c160
sub esp, 0x18c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x428650
mov esi, 0x428648
push edi
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x4c], esi
call fcn.0040fdbb
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
call fcn.0040f0e0
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0041054d
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40ef62
lea ecx, [ebp - 0x10]
call fcn.00408863
mov ecx, dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
sete byte [ebp + 0xf]
call fcn.0040b52e
cmp byte [ebp + 0xf], 0
je 0x40f098
and byte [ebp - 0x198], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x197]
and dword [ebp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x104
push eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push str.Version
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40efe2
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040fdbb
mov dword [ebp - 0x18], 1
jmp 0x40f0b4
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040fabb
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 4
call fcn.0040f34c
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040b52e
mov eax, 0x42de5c
mov dword [ebp - 0x44], ebx
mov ecx, eax
mov dword [ebp - 0x24], esi
test ecx, ecx
mov edi, 0x43471c
jne 0x40f02b
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040fec3
mov eax, 0x42de58
mov byte [ebp - 4], 5
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x40f054
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040fec3
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 6
call fcn.0040fc42
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0040b52e
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0040b52e
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040fe30
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.0040b52e
cmp dword [ebp - 0x10], 0
je 0x40f0cf
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x411dd3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040105f
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x411e83
dec eax
je 0x411e78
dec eax
jne 0x411e8a
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x411e68
dec eax
je 0x411e5f
dec eax
jne 0x411e6b
mov dword [ebp - 0x18], 5
jmp 0x411e6b
mov dword [ebp - 0x18], 3
jmp 0x411e6b
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x411e8a
mov dword [ebp - 0x14], esi
jmp 0x411e8a
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x411e8a
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.0041304c
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x412175
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x4121af
mov eax, dword [ecx + 0x70]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x41218d
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x413fea
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4140a0
lea eax, [ebp - 0x118]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0041575b
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x414090
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x41404c
lea eax, [ebp - 0x118]
push 0x42d214
push eax
call fcn.0041d150
pop ecx
test eax, eax
pop ecx
jne 0x414068
mov eax, 0x486
push eax
mov dword [0x434bb4], eax
call fcn.0041567b
pop ecx
push dword [0x434bb4]
call fcn.0041d054
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.004168e8
pop ecx
lea eax, [ebp - 0x18]
pop ecx
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
leave
ret 8
Function at 0x414370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x14]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x54], 3
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0x369c]
push 0x7f00
push ebx
mov dword [ebp - 0x50], 0x4144c8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [edi + 0x369c]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_GetClassInfoA]
test eax, eax
jne 0x4143f3
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x414495
push 0xd0
call fcn.0041b768
mov esi, eax
pop ecx
cmp esi, ebx
je 0x414495
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x2c]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x28]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x24]
push esi
push dword [edi + 0x369c]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x24]
sub eax, edx
sar eax, 1
push dword [ebp - 0x28]
mov dword [edi + 0x325c], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
test ebx, ebx
jne 0x414499
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4144c1
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
push ebx
mov dword [edi + 0x325c], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x325c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414bd1
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x427d42
call fcn.0041c160
push ecx
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea eax, [esi + 0x120]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov dword [esi + 0x118], edi
mov dword [ebp - 0x14], esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea eax, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x428e38
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, esi
call fcn.004150eb
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
mov dword [esi + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x414c65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x414ce8
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.0041b768
push 0x2e
push edi
push eax
mov dword [esi + 0x11c], eax
call fcn.0041bc70
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.00415379
test eax, eax
je 0x414ce8
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x11c]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414ce8
cmp dword [ebp - 0x10], edi
je 0x414ce8
mov ecx, esi
call fcn.00414d84
test eax, eax
je 0x414ce8
mov eax, dword [esi + 0x11c]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x414ce8
movzx eax, ax
push eax
mov ecx, esi
call fcn.00415067
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4