joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407607
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
mov dword [ebp - 4], ebx
call dword [0x498ac4]
test eax, eax
jne 0x407655
push str.ImageDrive_0CFE4D98_44D7_4542_9842_B924978C2A4F
push dword [ebp - 4]
call dword [0x498ac8]
cmp eax, ebx
je 0x40764a
cmp eax, 2
jne 0x40764c
mov bl, 1
push dword [ebp - 4]
call dword [0x498ab4]
mov al, bl
pop ebx
leave
ret

Function at 0x4078ce
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x46c6b8
call fcn.0042dfbc
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [0x493ec4]
and dword [ebp - 4], 0
and byte [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str.Removing_read_only_and_hidden_attributes_from_file___s_
push eax
call fcn.00453df1
add esp, 0xc
mov ecx, esi
push dword [ebp - 0x14]
call fcn.004077e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407957
test al, 3
je 0x407945
and al, 0xfc
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x407937
mov byte [ebp - 0x10], 1
jmp 0x40796a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetFileAttributes_failed
jmp 0x407963
push str.Nothing_to_do__attributes_are_already_OK.
mov ecx, esi
mov byte [ebp - 0x10], 1
call fcn.0040782e
jmp 0x40796a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetFileAttributes_failed2
mov ecx, esi
call fcn.00407856
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.004077fc
movzx esi, byte [ebp - 0x10]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0045d2d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0045d2d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4099aa
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push edi
mov edi, ecx
push dword [edi + 0x1c]
call ebx
push eax
call fcn.004593de
test eax, eax
je 0x4099dd
push dword [edi + 0x1c]
call ebx
push eax
call fcn.004593de
push 0
mov ecx, eax
call fcn.0045cead
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
push eax
push 4
push eax
push eax
lea eax, [ebp - 0xc]
push eax
push 0x409aeb
call fcn.0045dd05
mov esi, eax
push dword [esi + 0x28]
and dword [esi + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ResumeThread]
and dword [ebp - 4], 0
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
call fcn.0040540a
lea eax, [ebp - 4]
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 4]
cmp eax, 0x103
je 0x409a14
test esi, esi
mov dword [ebp + 8], eax
je 0x409a54
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
cmp dword [ebp + 8], 0
mov esi, 0xfa32
je 0x409a80
cmp dword [ebp + 8], esi
je 0x409a80
push dword [ebp + 8]
mov ecx, dword [edi + 0xe0]
call fcn.0040bfb0
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
sete cl
mov dword [eax], ecx
jmp 0x409a8b
mov ecx, dword [edi + 0xe0]
call fcn.0040c4f7
mov ecx, edi
call fcn.00409c60
cmp dword [ebp + 8], esi
pop esi
jne 0x409aa6
push 0xffffffffffffffff
push 0
push 0xe003
call fcn.00463e1c
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push dword [edi + 0x1c]
call ebx
push eax
call fcn.004593de
test eax, eax
je 0x409add
push dword [edi + 0x1c]
call ebx
push eax
call fcn.004593de
push 1
mov ecx, eax
call fcn.0045cead
xor eax, eax
pop edi
cmp dword [ebp + 8], eax
pop ebx
sete al
leave
ret 8

Function at 0x40cbb1
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x40cbfa
cmp dword [ebp - 0x84], 2
jne 0x40cbfa
cmp dword [ebp - 0x90], 5
jb 0x40cbfa
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40cf6b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x18]
lea esi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
xor ebx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push dword [ebp + 8]
movsw word es:[edi], word [esi]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x40cf9c
xor al, al
jmp 0x40d015
push esi
call fcn.0045d9a1
pop ecx
mov dword [ebp - 4], eax
push eax
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40d00a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x48bd58
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40d00a
mov eax, dword [ebp - 8]
lea edi, [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx esi, word [eax + 0x14]
movzx ebx, word [eax + 0x10]
shr ecx, 0x10
shr edx, 0x10
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
mov word [ebp - 0x12], si
lea esi, [ebp - 0x18]
mov word [ebp - 0x18], dx
mov word [ebp - 0x16], bx
mov word [ebp - 0x14], cx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov bl, 1
push dword [ebp - 4]
call fcn.0045d9ca
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40f3d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46d7b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [esp + 0x54]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
mov dword [esp + 0xc], ebx
je 0x40f4b2
mov al, byte [esp + 0x50]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00402ab7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], ebx
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edi
call fcn.0040f690
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x50], 1
call fcn.0040f800
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0040fec0
mov esi, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], bl
call fcn.00402ab7
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00402ab7
mov cl, byte [esi + 0x10]
lea eax, [esi + 0x10]
mov esi, dword [esp + 0x50]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x472dc0]
mov ecx, esi
push edx
push ebx
push eax
call fcn.00402d6a
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
mov al, byte [esp + 0x50]
push ebp
mov ebp, dword [esp + 0x54]
mov edi, 0x498b28
or ecx, 0xffffffff
push 1
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x5c], esi
call fcn.00402b86
test al, al
je 0x40f50d
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x498b28
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
mov byte [eax + ecx], bl
mov ecx, dword [esp + 0x44]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x4115a0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x46db17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x498b28
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.0045d33e
xor esi, esi
mov dword [esp + 0x64], 1
mov si, word [0x498d3c]
call fcn.00469b53
mov eax, dword [eax + 0xc]
push str.BINHELP
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.00469b53
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
call fcn.00469b53
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea esi, [edi + 0x50]
push ebp
push eax
mov ecx, esi
call fcn.004176d0
mov al, byte [esp + 0x70]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov cl, byte [esp + 0x70]
push ebx
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00402ab7
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 3
mov dword [esp + 0x4c], edx
call fcn.0040f690
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x6c], 4
call fcn.00411bf0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00411e30
mov esi, dword [esp + 0x20]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 3
call fcn.00402ab7
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00402ab7
lea eax, [esi + 0x10]
mov edx, dword [0x472dc0]
lea ecx, [esp + 0x28]
push edx
push ebx
push eax
call fcn.00402d6a
mov esi, dword [esp + 0x6c]
mov al, byte [esp + 0x28]
lea edx, [esp + 0x28]
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x472dc0]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00402d6a
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x411724
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x41171b
cmp al, 0xff
je 0x41171b
dec al
mov byte [ecx], al
jmp 0x411724
push ecx
call fcn.0045d9ca
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x64], bl
call fcn.0045d2d0
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8
Function at 0x4123b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46dbf4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
mov edi, dword [esp + 0x14c]
xor ebx, ebx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x144], ebx
call fcn.0045d33e
lea ecx, [esp + 0xc]
push 4
push ecx
mov ecx, eax
mov byte [esp + 0x148], 1
call fcn.004538ff
mov eax, dword [eax]
push 0x48bec8
push eax
call fcn.0042fd31
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.0045d2d0
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], bl
call fcn.0045d2d0
cmp esi, ebx
je 0x412500
push 5
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, eax
cmp edx, 0x20
jge 0x41251c
cmp edx, 0x1f
jne 0x41248f
push ebx
lea ecx, [esp + 0x18]
call fcn.00419690
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 2
call fcn.00458abf
lea ecx, [esp + 0x70]
mov byte [esp + 0x140], 3
call fcn.00412680
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call fcn.00458605
jmp 0x41251c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0xff
push eax
push 0x400
push edx
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [0x493ec4]
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push 0x6f00
push eax
mov byte [esp + 0x14c], 4
call fcn.00453e99
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ebx
push ebx
push ecx
call fcn.00463de4
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call fcn.0045d2d0
jmp 0x41251c
mov edx, dword [esp + 0x154]
mov eax, dword [esp + 0x150]
mov ecx, dword [esp + 0x148]
push edx
push eax
call fcn.0045d9fd
lea ecx, [esp + 0x158]
mov dword [esp + 0x140], 0xffffffff
call fcn.0045d2d0
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret

Function at 0x413050
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46dd28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x413104
mov eax, dword [0x493ec4]
push esi
mov dword [esp + 8], eax
push 0x410
push 0x410
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0045d700
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0045d74f
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.0045d6ac
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4130eb
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4130eb
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
mov dword [edi + 0xc4], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0045d2d0
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x413390
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x824
test eax, eax
je 0x4133b5
mov eax, dword [esp + 0x828]
push eax
call fcn.004134b0
add esp, 4
add esp, 0x824
ret
lea ecx, [esp + 4]
push edi
push ecx
push str..htm
push SysReAllocStringLen
call fcn.00413120
add esp, 0xc
test eax, eax
jne 0x41347a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push SysReAllocStringLen
call fcn.00413120
add esp, 0xc
test eax, eax
jne 0x4134a3
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.0042f3f4
mov esi, eax
add esp, 8
test esi, esi
jne 0x413448
lea eax, [esp + 0xc]
push 0x48c220
push eax
call fcn.00430000
mov esi, eax
add esp, 8
test esi, esi
jne 0x413448
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x41344b
mov byte [esi], 0
push 0x48bd44
push esi
call edi
mov edx, dword [esp + 0x830]
push edx
push esi
call edi
mov eax, dword [esp + 0x834]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
add esp, 0x824
ret
mov edx, dword [esp + 0x830]
mov eax, dword [esp + 0x82c]
push edx
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x824
ret
mov eax, dword [esp + 4]
pop edi
add esp, 0x824
ret

Function at 0x4134b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46dd78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.0045d33e
push str.mailto:
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.0045d33e
mov byte [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esp + 8]
push 0x40
mov edi, eax
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x24]
call fcn.0045d7f1
cmp eax, 0xffffffff
je 0x413576
push ebx
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x2c]
call fcn.0045397b
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push eax
call fcn.0042eef9
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d2d0
test bl, bl
pop ebx
je 0x413576
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0045d4ff
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.0045d409
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.0045d2d0
mov edx, dword [esp + 0x20]
push 5
push 0x498b28
push 0
push edx
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.0045d2d0
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.0045d2d0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41a7a2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x41a816
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41a83a
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0042fb78
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0042f8b0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.0042eac0
add esp, 0x24
test eax, eax
jne 0x41a83a
cmp dword [ebp + 0xc], ebx
jne 0x41a81a
mov al, 1
jmp 0x41a87e
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x41a83a
push edi
call fcn.004307a5
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x41a83e
xor al, al
jmp 0x41a87e
push esi
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41a875
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x48bd58
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x41a875
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0x10], ecx
sbb bl, bl
inc bl
push esi
call fcn.0042e408
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41a8f3
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
je 0x41a92c
cmp eax, 2
je 0x41a92c
cmp eax, 3
je 0x41a921
cmp eax, 4
je 0x41a91a
cmp eax, 5
je 0x41a913
xor al, al
ret
call fcn.004203ac
jmp 0x41a926
call fcn.004201f2
jmp 0x41a926
call fcn.004202b6
test eax, eax
setne al
ret
mov al, 1
ret

Function at 0x41f95a
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x41f967
mov al, 1
pop edi
ret
cmp edi, 2
jae 0x41f970
xor al, al
pop edi
ret
cmp byte [esp + 0x10], 0
push esi
je 0x41f981
mov esi, dword [esp + 0xc]
mov ax, word [esi]
jmp 0x41f99c
push 0
call fcn.004301e0
push eax
call fcn.00430920
pop ecx
pop ecx
call fcn.0043092d
mov esi, dword [esp + 0xc]
mov word [esi], ax
inc esi
movzx eax, ax
inc esi
dec edi
push eax
dec edi
call fcn.00430920
test edi, edi
pop ecx
je 0x41f9b9
call fcn.0043092d
xor byte [esi], al
inc esi
dec edi
jne 0x41f9ae
pop esi
mov al, 1
pop edi
ret
Function at 0x42c614
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, edi
je 0x42c66b
push ebx
call fcn.004307a5
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 8], esi
je 0x42c66b
push esi
push ebx
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42c664
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x48bd58
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x42c679
push esi
call fcn.0042e408
pop ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.0042c5be
mov eax, dword [ebp + 8]
jmp 0x42c6be
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x18]
push dword [ebp - 8]
movzx esi, word [eax + 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx ebx, word [eax + 0x10]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
shr ecx, 0x10
shr edx, 0x10
stosw word es:[edi], ax
mov word [ebp - 0x18], dx
mov word [ebp - 0x16], bx
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], si
call fcn.0042e408
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov edi, eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x439036
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x497130
cmp edx, dword [eax]
je 0x439058
add eax, 8
inc ecx
cmp eax, 0x4971c0
jl 0x439049
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x497130]
jne 0x439186
mov eax, dword [0x49b494]
cmp eax, 1
je 0x439160
test eax, eax
jne 0x439089
cmp dword [0x494840], 1
je 0x439160
cmp edx, 0xfc
je 0x439186
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4390c0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042f8a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042e560
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x439103
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042e560
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x479bd0
push edi
call fcn.00430410
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042f8a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042f8b0
lea eax, [ebp - 0xa0]
push 0x48be8c
push eax
call fcn.0042f8b0
push dword [esi + 0x497134]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042f8b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0043cc8b
add esp, 0x2c
pop edi
jmp 0x439186
lea eax, [ebp + 8]
lea esi, [esi + 0x497134]
push 0
push eax
push dword [esi]
call fcn.0042e560
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 0x451bf0
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.0042ffd0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x451cbb
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 0x451cbb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x451c6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x451c79
or bh, 8
and edi, 0x8000000
je 0x451c94
mov eax, dword [0x49d21c]
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 0x451cbb
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