joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x42767a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x427681
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x427670
mov eax, 1
add ebx, ebx
jne 0x427693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x427688
jne 0x4276a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x427688
xor ecx, ecx
sub eax, 3
jb 0x4276b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42772a
mov ebp, eax
add ebx, ebx
jne 0x4276c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4276d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4276f4
inc ecx
add ebx, ebx
jne 0x4276e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4276d5
jne 0x4276f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4276d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x427714
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x427705
jmp 0x427676
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x427714
add edi, ecx
jmp 0x427676
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x427732
cmp byte [edi], 9
jne 0x427732
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x427737
lea edi, [esi + 0x25000]
mov eax, dword [edi]
or eax, eax
je 0x4277af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2a054]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2a134]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x427764
mov ecx, edi
jns 0x427793
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2a13c]
or eax, eax
je 0x4277a9
mov dword [ebx], eax
add ebx, 4
jmp 0x427781
call dword [esi + 0x2a138]
mov ebp, dword [esi + 0x2a140]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4277e3
sub esp, 0xffffff80
jmp 0x41382f
Function at 0x425eec
Capabilities:
Encode data using xor

Disassembly:
insb byte es:[edi], dx
jbe 0x425f3e
dec ebx
sub ecx, edx
adc eax, 0x4c55f8b5
push ss
xor ebp, dword [eax + 0x4d88c77d]
mov esp, ebp
push edx
in al, 0xf5
outsb dx, byte [esi]
pop ecx
mov dh, 0xca
cld
and edx, ecx
in eax, 0xcf
sbb byte [edi - 6], bl
lea ebp, [edi + 0x24]
fcomp dword [edx - 6]
lodsb al, byte [esi]
fstp qword [ebx]
and eax, 0x1953543e
xchg dword [ebx + 0x12b1751d], edi
out 0xf2, al
push esi
lodsd eax, dword [esi]
paddb mm0, qword [0xcca5d8bc]
jl 0x425f7f
and cl, byte [ecx - 4]
xor cl, byte [edx - 0x3c]
ret 0xadb5
out dx, al
adc dh, byte [edi + ebp*2]
mov byte [0x52fa7067], al
pop edx
pop ecx
popfd
invalid
and eax, 0x2a860ab2
cmp al, 0xa
std
xchg byte [0xf19ea354], al
inc esi
push esp
cmpsb byte [esi], byte es:[edi]
lds edx, [ebp - 0x54e6edc4]
adc eax, dword [edx + 0x69fef503]
or dword [edi], eax
fisub dword [ebp + 0x3fa40d7c]
and eax, 0xbffc5015
push 0x45a0c408
sti
pushal
shl byte [esp + esi*8 + 0x6af0c6e], 1
test ecx, ebp
adc eax, 0xd0d8852a
mov ds, word [ebx - 0x10]
jno 0x425f4e
invalid
Function at 0x10031c5
Capabilities:
Get common file path
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x37c
cmp byte [0x100ec20], 0
mov eax, dword [0x100e090]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x37c], eax
mov esi, 0x100ec20
jne 0x100323c
mov edi, 0x104
push edi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x100320f
push 0x10012e0
jmp 0x1003254
push 0
push 0x10012d4
push 0x10012d0
lea eax, [ebp - 0x120]
push eax
push 0x10012c4
push edi
push esi
call fcn.0100645a
add esp, 0x1c
test eax, eax
jge 0x100323c
push 0x10012a0
jmp 0x1003254
push 0x100129c
push esi
call fcn.0100643e
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x100325f
push 0x1001270
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10032fd
lea eax, [ebp - 0x10]
push eax
call fcn.01006366
lea eax, [ebp - 0x1c]
push eax
call fcn.010062f8
cmp dword [ebp - 0x37c], 0
pop ecx
pop ecx
lea eax, [ebp - 0x1c]
je 0x10032c4
push 0
push dword [ebp - 0x37c]
push 0x1001268
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1001254
lea eax, [ebp - 0x378]
push 0x258
push eax
call fcn.0100645a
add esp, 0x20
test eax, eax
jge 0x10032e7
push 2
push 0x1001250
lea eax, [ebp - 0x122]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x10032e7
push 0x1001268
push eax
lea eax, [ebp - 0x10]
push eax
push 0x100123c
lea eax, [ebp - 0x378]
push 0x258
push eax
call fcn.0100645a
add esp, 0x18
lea eax, [ebp - 0x378]
push esi
push eax
call fcn.0100627c
push esi
call fcn.01006226
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005e84
leave
ret 4

Function at 0x10034b5
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x1003502
push edi
call fcn.01003423
test eax, eax
jne 0x10034f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x10014b0
call fcn.01003310
add esp, 0xc
jmp 0x10034fe
push edi
push 0x1001468
call fcn.01003310
pop ecx
pop ecx
xor eax, eax
jmp 0x1003562
push ebx
push esi
call fcn.0100655c
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x100351f
push 0x100143c
call fcn.01003310
pop ecx
xor eax, eax
jmp 0x1003561
mov ecx, esi
mov edx, ecx
shr ecx, 2
push ebx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push esi
mov ecx, edx
push 0
push dword [ebp + 8]
and ecx, 3
rep stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100355f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10013f8
call fcn.01003310
push ebx
call fcn.0100654c
add esp, 0xc
jmp 0x100351b
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x100378f
Capabilities:
Get common file path
Get file size
Print debug messages
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e090]
push ebx
push esi
push 0x41
pop esi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x10037d2
push 0x1001640
jmp 0x10037f8
push 0x10012d4
push 0x10012d0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.01003625
test eax, eax
jne 0x1003805
push 0x10015fc
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, esi
jmp 0x1003900
push edi
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x218], edi
je 0x10038f9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10038ce
push esi
call fcn.0100655c
cmp eax, ebx
pop ecx
mov dword [ebp - 0x210], eax
je 0x10038ce
push ebx
lea eax, [ebp - 0x21c]
push eax
push esi
push dword [ebp - 0x210]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10038ce
push 0x10015e4
push dword [ebp - 0x210]
call fcn.010067c0
cmp eax, ebx
pop ecx
pop ecx
je 0x10038ce
mov esi, 0x10015d8
push esi
push eax
call fcn.010067c0
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
je 0x10038ce
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
push 0x20
push edi
call fcn.010066f0
cmp eax, ebx
pop ecx
pop ecx
je 0x10038b0
mov byte [eax], bl
push edi
call fcn.01006574
pop ecx
mov ecx, eax
mov eax, 0x3ff
add ecx, eax
shr ecx, 0xa
add ecx, eax
shr ecx, 0xa
mov dword [ebp - 0x214], ecx
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x210], ebx
je 0x10038ee
push dword [ebp - 0x210]
call fcn.0100654c
pop ecx
push 0x41
pop eax
cmp dword [ebp - 0x214], eax
jb 0x10038ff
mov eax, dword [ebp - 0x214]
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.01005e84
leave
ret
Function at 0x1003a62
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 2
push edi
push edi
push edi
push 0x1001858
push 0x80000002
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, edi
je 0x1003aa6
push eax
push 0x100181c
call fcn.01003310
pop ecx
pop ecx
xor eax, eax
jmp 0x1003b35
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
push 0x1001814
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x1003b07
push 4
lea eax, [ebp + 8]
push eax
push 4
push edi
push 0x1001268
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x1003b17
push eax
push 0x10017d0
call fcn.01003310
pop ecx
pop ecx
push 0x10017c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, edi
je 0x1003b14
cmp eax, 2
je 0x1003b14
push eax
push 0x1001780
jmp 0x1003b0d
push eax
push 0x1001738
call fcn.01003310
pop ecx
pop ecx
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
pop esi
je 0x1003b32
push eax
push 0x10016f0
call fcn.01003310
pop ecx
pop ecx
mov eax, dword [ebp - 8]
pop edi
leave
ret 4

Function at 0x1003b3f
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x1001858
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1003bbe
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x1001268
push dword [ebp - 4]
call esi
test eax, eax
je 0x1003b88
cmp eax, 2
je 0x1003b88
push eax
push 0x1001930
call fcn.01003310
pop ecx
pop ecx
push 0x10017c4
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x1003ba9
cmp eax, 2
je 0x1003ba9
push eax
push 0x10018e8
call fcn.01003310
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1003bcb
push eax
push 0x10018b0
jmp 0x1003bc4
push eax
push 0x1001874
call fcn.01003310
pop ecx
pop ecx
leave
ret
Function at 0x1003c6f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x100e090]
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x21c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1003da7
lea eax, [ebp - 0x21c]
push eax
push 0x1001ad4
call fcn.0100365c
test eax, eax
je 0x1003cd4
lea eax, [ebp - 0x21c]
push eax
push 0x1001ac4
call fcn.0100365c
test eax, eax
jne 0x1003dba
push 0x1001ab4
jmp 0x1003cd9
push 0x1001aa8
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x14]
push eax
call edi
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x1001a94
call fcn.01003310
mov ebx, dword [sym.imp.USER32.dll_LoadStringA]
pop ecx
pop ecx
push esi
lea eax, [ebp - 0x118]
push eax
push 0xd9
push dword [0x100ed24]
call ebx
test eax, eax
jne 0x1003d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001a50
call fcn.01003310
pop ecx
pop ecx
push 0x1001a3c
lea eax, [ebp - 0x118]
push eax
call edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.0100645a
add esp, 0x10
push esi
lea eax, [ebp - 0x118]
push eax
push 0x64
push dword [0x100ed24]
call ebx
test eax, eax
pop ebx
jne 0x1003d89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10019f8
call fcn.01003310
pop ecx
pop ecx
push 0x1001594
lea eax, [ebp - 0x118]
push eax
call edi
push 0x10
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [0x100ed38]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1003dba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10019bc
call fcn.01003310
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.01005e84
leave
ret
Function at 0x1004562
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x100e090]
mov dword [ebp - 4], eax
mov eax, dword [0x100e078]
cmp eax, 0xffffffff
je 0x100458c
test eax, eax
setne al
movzx eax, al
jmp 0x100461d
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1004609
push 0x10020a4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0100365c
test eax, eax
je 0x1004614
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0100356d
test eax, eax
je 0x1004602
cmp dword [ebp - 0x134], 0x50001
jne 0x1004614
mov eax, dword [ebp - 0x130]
shr eax, 0x10
cmp ax, 0xa28
jne 0x1004614
xor eax, eax
inc eax
mov dword [0x100e078], eax
jmp 0x100461d
push 0x100206c
jmp 0x100460e
push 0x1002034
call fcn.01003310
pop ecx
and dword [0x100e078], 0
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01005e84
leave
ret

Function at 0x100462c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x100e090]
mov dword [ebp - 4], eax
mov eax, dword [0x100e07c]
cmp eax, 0xffffffff
je 0x1004656
test eax, eax
setne al
movzx eax, al
jmp 0x10046d8
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10046c4
push 0x10020a4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 0x108]
push eax
call fcn.0100365c
test eax, eax
je 0x10046cf
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0100356d
test eax, eax
je 0x10046bd
cmp dword [ebp - 0x134], 0x50002
jne 0x10046cf
xor eax, eax
inc eax
mov dword [0x100e07c], eax
jmp 0x10046d8
push 0x10020f0
jmp 0x10046c9
push 0x10020b4
call fcn.01003310
pop ecx
and dword [0x100e07c], 0
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.01005e84
leave
ret

Function at 0x100477e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100e090]
mov dword [ebp - 4], eax
mov eax, dword [0x100e084]
cmp eax, 0xffffffff
je 0x10047a5
test eax, eax
setne al
movzx eax, al
jmp 0x10047f9
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 1
jne 0x10047f2
cmp dword [ebp - 0x94], 4
jne 0x10047f2
cmp dword [ebp - 0x90], 0xa
jne 0x10047f2
mov eax, dword [ebp - 0x8c]
shr eax, 0x10
cmp ax, 0x45a
je 0x10047f2
call fcn.010046e7
test eax, eax
jne 0x10047f2
inc eax
jmp 0x10047f4
xor eax, eax
mov dword [0x100e084], eax
mov ecx, dword [ebp - 4]
call fcn.01005e84
leave
ret
Function at 0x1004808
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x100e090]
mov dword [ebp - 4], eax
mov eax, dword [0x100e088]
cmp eax, 0xffffffff
je 0x100482f
test eax, eax
setne al
movzx eax, al
jmp 0x100488e
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 1
jne 0x1004887
cmp dword [ebp - 0x94], 4
jne 0x1004887
cmp dword [ebp - 0x90], 0xa
jne 0x1004887
mov eax, dword [ebp - 0x8c]
shr eax, 0x10
cmp ax, 0x45a
je 0x1004887
cmp word [ebp - 0x8c], 0x8ae
jb 0x1004887
call fcn.010046e7
test eax, eax
jne 0x1004887
inc eax
jmp 0x1004889
xor eax, eax
mov dword [0x100e088], eax
mov ecx, dword [ebp - 4]
call fcn.01005e84
leave
ret

Function at 0x10048c9
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0xbb9
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
movzx eax, word [ebp + 8]
shl eax, 0x10
push eax
push 0
push 0x401
push edi
call esi
push 0
push 0
push 0x402
push edi
call esi
push 0
push 1
push 0x404
push edi
call esi
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
ret 4

Function at 0x1004ba3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x1004bca
push edi
push edi
push 0x46b
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1004b31
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
pop edi
mov dword [esi + 0xc], eax
pop esi
jne 0x1004bf5
push 0x1002168
call fcn.01003310
pop ecx
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x10059cd
Capabilities:
Get common file path
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x100e090]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x10023e8
mov dword [ebp - 4], eax
call fcn.01003310
pop ecx
xor esi, esi
call fcn.01004703
test eax, eax
je 0x1005a13
push 0x10023bc
call fcn.01003310
pop ecx
push esi
push 0x30
push 0x1f42
jmp 0x1005a9e
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x1005a30
push 0x100239c
jmp 0x1005a92
call fcn.0100477e
test eax, eax
je 0x1005af3
call fcn.01004808
test eax, eax
jne 0x1005af3
push 0x100238c
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010035f1
test eax, eax
jne 0x1005a76
push 0x1002370
call fcn.01003310
pop ecx
jmp 0x1005b2d
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01005b42
test al, al
jne 0x1005aa8
push 0x1002354
call fcn.01003310
pop ecx
push 0
push 0x30
push 0x72
call fcn.01005bea
jmp 0x1005b2d
mov eax, dword [ebp - 0x234]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x238]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x100232c
call fcn.01003310
mov eax, dword [ebp - 0x238]
shr eax, 0x10
add esp, 0x14
cmp ax, 5
jb 0x1005af0
jne 0x1005aec
cmp word [ebp - 0x238], 0x50
jb 0x1005af0
xor esi, esi
jmp 0x1005af3
xor esi, esi
inc esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push esi
push edi
call fcn.0100567a
mov esi, eax
sub esi, 3
neg esi
sbb esi, esi
inc esi
call fcn.01003b3f
test esi, esi
je 0x1005b2d
push 0x100231c
call fcn.01003310
pop ecx
call fcn.01003bd2
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
call fcn.01005e84
leave
ret 4

Function at 0x1005b42
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x1005b6c
xor al, al
jmp 0x1005bdf
push ebx
push esi
call fcn.0100655c
mov ebx, eax
test ebx, ebx
pop ecx
mov dword [ebp - 0xc], ebx
jne 0x1005b81
xor al, al
jmp 0x1005bde
mov ecx, esi
mov edx, ecx
shr ecx, 2
push ebx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
push esi
mov ecx, edx
push 0
push dword [ebp + 8]
and ecx, 3
rep stosb byte es:[edi], al
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x1005ba9
xor bl, bl
jmp 0x1005bd3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x10012d0
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1005ba5
cmp dword [ebp - 4], 0x34
jne 0x1005ba5
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
push dword [ebp - 0xc]
call fcn.0100654c
pop ecx
mov al, bl
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x1005ff3
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1002428
call fcn.010076ec
mov edi, 0x94
mov eax, edi
call fcn.01007850
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x100ed78], ecx
mov eax, dword [esi + 4]
mov dword [0x100ed84], eax
mov edx, dword [esi + 8]
mov dword [0x100ed88], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x100ed7c], esi
cmp ecx, 2
je 0x1006053
or esi, 0x8000
mov dword [0x100ed7c], esi
shl eax, 8
add eax, edx
mov dword [0x100ed80], eax
cmp word [0x1000000], 0x5a4d
jne 0x1006090
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1006090
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10060a9
cmp ecx, 0x20b
je 0x1006096
and dword [ebp - 0x1c], 0
jmp 0x10060c0
cmp dword [eax + 0x1000084], 0xe
jbe 0x1006090
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x10060ba
cmp dword [eax + 0x1000074], 0xe
jbe 0x1006090
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 1
call fcn.0100768e
pop ecx
test eax, eax
jne 0x10060d4
push 0x1c
call fcn.01005fc5
pop ecx
call fcn.01007600
test eax, eax
jne 0x10060e5
push 0x10
call fcn.01005fc5
pop ecx
and dword [ebp - 4], 0
call fcn.0100734a
test eax, eax
jge 0x10060fa
push 0x1b
call fcn.01005f96
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10105b4], eax
call fcn.0100721d
mov dword [0x100ed68], eax
call fcn.01007174
test eax, eax
jge 0x1006120
push 8
call fcn.01005f96
pop ecx
call fcn.01006f1a
test eax, eax
jge 0x1006131
push 9
call fcn.01005f96
pop ecx
call fcn.010069be
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1006144
push eax
call fcn.01005f96
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01006eac
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1006166
movzx eax, word [ebp - 0x40]
jmp 0x1006169
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.010040ff
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x100618a
push esi
call fcn.01006aaf
call fcn.01006ae7
jmp 0x10061bc
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01007727
ret