joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ed7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x47a140]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41edbc
cmp byte [ebx], 0xa
jne 0x41edbc
or byte [eax + edi + 0x28], 4
jmp 0x41edc1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41eebf
mov al, byte [edx]
cmp al, 0x1a
je 0x41eea1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41edf0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ee15
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ee1f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41edd2
jmp 0x41eebf
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ee9c
cmp dword [ebp - 0xc], 0
je 0x41ee9c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47a140]
test byte [eax + edi + 0x28], 0x48
je 0x41ee76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ee61
mov byte [esi], dl
jmp 0x41ee72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47a140]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41eebf
cmp byte [ebp - 1], 0xa
jne 0x41ee85
cmp esi, ebx
jne 0x41ee85
mov byte [esi], 0xa
jmp 0x41eebe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41eebf
mov byte [esi], 0xd
jmp 0x41eebe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47a140]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41eebb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41eebf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41eec8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x47a140]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ef0b
cmp word [esi], dx
jne 0x41ef0b
or byte [edi + eax + 0x28], 4
jmp 0x41ef10
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41f063
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41f043
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ef52
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ef88
cmp eax, edx
jae 0x41ef94
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41ef2a
jmp 0x41f063
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f03f
cmp dword [ebp - 0x14], 0
je 0x41f03f
mov eax, dword [ebx*4 + 0x47a140]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41f017
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41efe0
mov word [esi], cx
jmp 0x41f013
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47a140]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47a140]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47a140]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41f063
pop ebx
cmp word [ebp - 4], bx
jne 0x41f028
cmp esi, dword [ebp + 0xc]
jne 0x41f028
mov word [esi], bx
jmp 0x41f060
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418a30
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41f063
push 0xd
jmp 0x41f05c
mov ecx, dword [ebx*4 + 0x47a140]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41f05a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41f063
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40196c
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e660
mov eax, 0x4170ff
mov dword [0x41808c], eax
mov dword [esp], 0
jmp 0x40198d
mov eax, 3
cmp eax, dword [esp]
jl 0x4019fb
mov eax, dword [0x41808c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41808c]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405dc0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e6c0
lea eax, [esp + 0x10]
push eax
call fcn.0040e560
inc dword [esp]
jno 0x40198d
push 0x400
call fcn.0040a220
mov dword [esp + 0x10], eax
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
call fcn.0040add6
lea eax, [esp + 0x18]
push eax
call fcn.0040e560
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [esp + 0x20]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a240
lea eax, [0x4180d0]
push eax
call fcn.0040e560
push dword [0x4180d0]
call fcn.0040ae67
push dword [0x4180d0]
call fcn.0040ad45
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x4180d0]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a240
lea eax, [0x418084]
push eax
call fcn.0040e560
push dword [0x418084]
call fcn.0040ae67
push dword [0x418084]
call fcn.0040ad45
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x418084]
call sub.KERNEL32.DLL_GetTempFileNameW
push dword [0x418084]
call sub.SHLWAPI.DLL_PathAddBackslashW
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a240
lea eax, [0x418098]
push eax
call fcn.0040e560
push dword [0x418098]
call fcn.0040ae67
push dword [esp + 0xc]
push dword [0x418098]
call sub.SHLWAPI.DLL_PathRenameExtensionW
push dword [esp + 0x10]
push 0
mov eax, 0x417024
push eax
push dword [0x418084]
call sub.KERNEL32.DLL_GetTempFileNameW
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push dword [esp + 0x18]
call fcn.0040a240
lea eax, [0x4180c8]
push eax
call fcn.0040e560
push dword [esp + 0x10]
call fcn.0040a200
jmp 0x401b80
push dword [esp + 0x14]
call fcn.0040e5f0
push dword [esp + 8]
call fcn.0040e5f0
push dword [esp + 0xc]
call fcn.0040e5f0
add esp, 0x18
pop ebx
ret
Function at 0x401fba
Capabilities:
Delete directory

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.0040e660
mov ebx, dword [esp]
cmp ebx, 1
jne 0x401fe5
push dword [0x418070]
call fcn.004053c1
and eax, eax
je 0x401fe5
push dword [0x418070]
call fcn.00405430
push dword [0x4180c8]
call fcn.0040ae67
push dword [0x4180b8]
call fcn.0040ae67
call fcn.0040347d
push dword [0x418098]
call fcn.0040ae67
push dword [0x418084]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [0x4180d0]
call sub.KERNEL32.DLL_RemoveDirectoryW
push dword [esp + 0xc]
jmp 0x4011b6

Function at 0x40249d
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4024a3
call fcn.0040e660
push dword [esp + 0x2c]
call fcn.004051a0
mov eax, 0x4170c8
mov dword [0x41808c], eax
mov dword [esp], 0
jmp 0x4024d1
mov eax, 6
cmp eax, dword [esp]
jl 0x40253f
mov eax, dword [0x41808c]
movsx eax, byte [eax]
mov dword [esp + 4], eax
inc dword [0x41808c]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0xffffffff
push ebx
call fcn.00405dc0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, dword [esp + 0xc]
push edx
call fcn.0040e6c0
lea eax, [esp + 0x10]
push eax
call fcn.0040e560
inc dword [esp]
jno 0x4024d1
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
call sub.KERNEL32.DLL_GetCommandLineW
push eax
call fcn.0040a240
lea eax, [esp + 0x14]
push eax
call fcn.0040e560
mov edx, dword [esp + 0x10]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
lea eax, [esp + 0x18]
push eax
call fcn.0040e560
mov eax, dword [esp + 0x14]
push eax
call sub.SHLWAPI.DLL_PathRemoveArgsW
mov dword [esp + 0x18], eax
push dword [esp + 0x14]
call fcn.00405de0
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x1c]
and ebx, ebx
jle 0x4025fd
push edx
call fcn.0040e520
pop edx
push eax
mov edx, 0x41702a
push edx
call fcn.0040e6c0
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
mov ebx, dword [esp + 0x30]
inc ebx
push ebx
push dword [esp + 0x28]
call fcn.00406110
call fcn.00405182
add dword [esp], edx
call fcn.00406060
pop eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e560
push dword [esp + 0x20]
push dword [esp + 0x10]
call fcn.004099a5
mov edx, dword [esp + 0x20]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x402632
push dword [esp + 0x14]
call fcn.0040e5f0
push dword [esp + 8]
call fcn.0040e5f0
push dword [esp + 0x10]
call fcn.0040e5f0
push dword [esp + 0xc]
call fcn.0040e5f0
push dword [esp + 0x20]
call fcn.0040e5f0
add esp, 0x24
pop ebx
ret
Function at 0x402664
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
call fcn.0040e660
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LoadResource
mov dword [esp], eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x418078], eax
push dword [0x418078]
call fcn.0040a220
mov dword [esp + 4], eax
push dword [0x418078]
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040a300
push dword [esp]
call sub.KERNEL32.DLL_FreeResource
mov eax, dword [esp + 4]
jmp 0x4026c1
add esp, 8
ret 8

Function at 0x402b6d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402b73
call fcn.0040e660
lea eax, [esp]
push eax
call sub.KERNEL32.DLL_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x402b9f
mov eax, 1
jmp 0x402ba1
xor eax, eax
add esp, 0x24
pop ebp
ret
Function at 0x403221
Capabilities:
Get common file path

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403227
call fcn.0040e660
push dword [esp + 0x2c]
call fcn.004051a0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00405060
call fcn.00402b6d
and eax, eax
je 0x403277
call fcn.00405573
mov ebx, eax
cmp ebx, 0x41
je 0x403277
mov eax, 1
jmp 0x403279
xor eax, eax
and eax, eax
je 0x4033e7
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.DLL_GetWindowsDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, str.sysnative
push edx
call fcn.0040e6c0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, dword [esp + 4]
push edx
call fcn.0040e6c0
lea eax, [esp + 0x10]
push eax
call fcn.0040e560
mov edx, dword [esp + 8]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
mov edx, dword [esp + 4]
push edx
call fcn.0040e6c0
mov edx, dword [esp + 8]
push edx
call fcn.0040e6c0
lea eax, [esp + 0x14]
push eax
call fcn.0040e560
push dword [esp + 0xc]
push 0
call fcn.0040b440
and eax, eax
je 0x403368
mov dword [esp + 0x14], 1
push 0
call fcn.0040b050
jmp 0x403370
mov dword [esp + 0x14], 0
push dword [esp + 0x10]
push 0
call fcn.0040b440
and eax, eax
je 0x403396
mov dword [esp + 0x18], 1
push 0
call fcn.0040b050
jmp 0x40339e
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x4033e5
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.DLL_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
jmp 0x403422
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e520
pop edx
push eax
push 0x800
call fcn.004062c0
lea eax, [esp + 0xc]
push eax
call fcn.0040e560
push 0x800
push dword [esp + 0xc]
call sub.KERNEL32.DLL_GetSystemDirectoryW
push dword [esp + 8]
call sub.SHLWAPI.DLL_PathAddBackslashW
mov edx, dword [esp + 8]
push edx
call fcn.0040e520
pop edx
push eax
push edx
call fcn.0040e6c0
pop eax
push eax
call fcn.00405170
pop edx
add eax, edx
jmp 0x40344a
push dword [esp + 0x10]
call fcn.0040e5f0
push dword [esp]
call fcn.0040e5f0
push dword [esp + 4]
call fcn.0040e5f0
push dword [esp + 8]
call fcn.0040e5f0
push dword [esp + 0xc]
call fcn.0040e5f0
add esp, 0x1c
pop ebx
ret 8
Function at 0x40347d
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
call fcn.0040e660
mov ebx, dword [0x418088]
cmp ebx, 1
jne 0x40352a
push dword [0x418100]
call fcn.0040aac3
mov ebx, eax
and ebx, ebx
jle 0x4034d1
push dword [0x418100]
call fcn.0040aacd
push dword [0x418100]
call fcn.0040aae2
or eax, eax
je 0x4034d1
mov ebp, dword [0x418104]
push dword [ebp + 8]
call fcn.0040ae67
jmp 0x4034b2
push dword [0x4180f8]
call fcn.0040aac3
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x40352a
push 5
push 0
push 1
push dword [0x4180f8]
call fcn.00406fb0
push dword [0x4180f8]
call fcn.0040aacd
push dword [0x4180f8]
call fcn.0040aae2
or eax, eax
je 0x40352a
mov ebp, dword [0x4180fc]
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_RemoveDirectoryW
jmp 0x40350b
mov eax, 1
jmp 0x403533
add esp, 4
pop ebx
pop ebp
ret

Function at 0x405430
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.004053e4
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov ebx, 0x418708
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov esi, dword [0x41811c]
jmp 0x405461
cmp dword [esi + 0xc], edi
je 0x405467
mov esi, dword [esi]
test esi, esi
jne 0x40545a
jmp 0x40547f
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push esi
push 0x41811c
call fcn.0040e1b2
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x40548c
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x405524
push edi
push 0x418708
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [0x41811c]
test edi, edi
je 0x4054f8
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4054f1
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x41811c
call fcn.0040e1b2
pop ecx
pop ecx
jmp 0x4054f3
mov edi, dword [edi]
test edi, edi
jne 0x4054c8
pop ebx
mov eax, dword [0x417108]
mov esi, eax
inc eax
push 0x10
push 0x41811c
mov dword [0x417108], eax
call fcn.0040e1f2
pop ecx
pop ecx
push 0x418708
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8
Function at 0x405573
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4056cb
mov eax, dword [esp + 0x20]
dec eax
je 0x4056ae
dec eax
jne 0x4056cb
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.0040552c
pop ecx
test eax, eax
je 0x4055df
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x40560c
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x405611
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x405611
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4056aa
dec ebx
je 0x4056a6
dec ebx
je 0x405685
dec ebx
je 0x40563f
sub ebx, 4
jne 0x4056cb
test edi, edi
jne 0x4056cb
push 0x6e
jmp 0x4056ca
sub edi, 0
je 0x405677
dec edi
je 0x405669
dec edi
je 0x40565b
dec edi
jne 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x4056cb
sub edi, 0
je 0x4056a2
dec edi
je 0x40569e
dec edi
jne 0x4056cb
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x4056cb
push 0x3c
jmp 0x4056ca
push 0x32
jmp 0x4056ca
push 0x14
jmp 0x4056ca
push 5
jmp 0x4056ca
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4056c8
cmp eax, 0xa
je 0x4056c4
cmp eax, 0x5a
jne 0x4056cb
push 0x28
jmp 0x4056ca
push 0x1e
jmp 0x4056ca
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x409588
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4095dd
push dword [esp + 0x10]
push 0x409507
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x418144]
test esi, esi
je 0x409636
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4095d5
cmp byte [esi + 0x10], 0
je 0x4095d5
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4095b1
jmp 0x409636
mov esi, dword [0x418144]
test esi, esi
je 0x409636
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40962f
cmp byte [esi + 0x11], 0
je 0x40960b
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x409622
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x418144
call fcn.0040e1b2
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x4095ea
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x40973a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x41872c]
call fcn.0040d968
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x40983a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x409790
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x409788
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x4097d0
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x409812
push 0x22
pop edx
cmp cx, dx
je 0x4097c2
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4097b2
xor ecx, ecx
cmp word [eax], cx
je 0x409812
mov ecx, eax
add eax, 2
jmp 0x409814
test dx, dx
je 0x40981a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x4097c2
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x409808
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x409812
cmp cx, dx
je 0x409805
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x4097f5
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x4097da
jmp 0x4097c2
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x40981c
xor edx, edx
cmp dword [ebp], ebx
jne 0x409825
test edi, edi
jne 0x409842
test edx, edx
je 0x40982a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x40977e
test edi, edi
jne 0x409853
mov eax, ebx
jmp 0x409857
test esi, esi
je 0x409853
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x409857
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret