joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405500
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
je 0x405584
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405584
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x10], 0
je 0x405584
mov dword [esi + 8], ecx
lea ecx, [esi + 0x20]
push eax
call fcn.004049c0
lea ecx, [esi + 0x12c]
cmp ecx, edi
je 0x40553e
push 0xffffffffffffffff
push 0
push edi
call fcn.00403db0
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 0x144]
cmp ecx, eax
je 0x405555
push 0xffffffffffffffff
push 0
push eax
call fcn.00403ee0
lea eax, [esi + 0x10]
push eax
push 4
push esi
push 0x404f70
push 0
push 0
call fcn.0047bd48
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x40557b
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x405880
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49aa38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x1c], 0
jne 0x4058b8
xor eax, eax
jmp 0x40595d
mov eax, 0x1f
mov word [ebp - 0x48], ax
lea eax, [esi + 0x5c]
push 0xfde9
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0045fc60
add esp, 0xc
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov ecx, dword [esi + 0x1c]
cmovae eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 0
call fcn.0045f5d0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi + 0x38]
movups xmmword [ebp - 0x20], xmm0
push dword [esi + 4]
call fcn.00411fc0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
sub eax, edx
mov ecx, dword [ebp - 0x20]
push 1
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x405958
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00404150
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405980
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x405997
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x14], 0
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xc8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x12c
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0
push 0x12
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4059e8
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x405a1c
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405a0c
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x405a15
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x405a2f
mov eax, dword [ecx]
call dword [eax + 0x34]
mov dword [edi + 0x1c], 0
pop edi
ret

Function at 0x405ba0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x405bee
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405bee
mov dword [esi + 8], ecx
lea ecx, [esi + 0x1c]
push eax
call fcn.004049c0
lea eax, [esi + 0x10]
push eax
push 4
push esi
push 0x405d70
push 0
push 0
call fcn.0047bd48
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x405be6
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0xc]
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x4061d0
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
push esi
mov esi, ecx
push 0x64
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esi + 0x1c]
push eax
call fcn.004028b0
mov ecx, eax
call fcn.0040e710
push 0
push 0
push 0x12
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x406223
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [esi + 0x10], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40625e
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40624e
push 1
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0xc], 0
pop esi
ret
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
pop esi
ret
Function at 0x4063c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40640e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40640e
mov dword [esi + 4], ecx
lea ecx, [esi + 0x14]
push eax
call fcn.004049c0
lea eax, [esi + 0x10]
push eax
push 4
push esi
push 0x4066a0
push 0
push 0
call fcn.0047bd48
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x406406
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0xc]
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x406ec0
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
push edi
mov edi, ecx
mov ecx, dword [edi + 0x514]
test ecx, ecx
je 0x406eec
call fcn.00405980
mov ecx, dword [edi + 0x514]
test ecx, ecx
je 0x406ee2
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x514], 0
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [edi + 0x14]
push eax
call fcn.004028b0
mov ecx, eax
call fcn.0040e710
lea eax, [edi + 0x128]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0xc8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x3e8
push dword [edi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [edi + 0x124]
test eax, eax
je 0x406f4d
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [edi + 0x124], 0
push 0
push 0
push 0x12
push dword [edi + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x406f77
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x406fb2
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406fa2
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 0xc], 0
pop edi
ret
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], 0
pop edi
ret
Function at 0x407b50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499eda
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.004714f6
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x407c10
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00476233
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x4b9a5c
push eax
call fcn.00474844
push edi
push esi
call fcn.00471aa2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret 4
Function at 0x408ad0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x499fd4
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x408b15
mov eax, dword [ebx]
jmp 0x408b17
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x408b39
mov eax, dword [edi]
jmp 0x408b3b
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x408b45
mov ecx, dword [esi]
jmp 0x408b47
mov ecx, esi
lea edx, [ebp - 0x28]
push edx
push 0
push eax
push ecx
push dword [ebp + 8]
call fcn.0045fb00
add esp, 0x14
test eax, eax
jne 0x408b89
cmp dword [edi + 0x14], 8
jb 0x408b66
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x408b6e
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
push 0x40
push edi
push esi
push dword [ebp + 8]
call fcn.0045fb00
add esp, 0x14
test eax, eax
je 0x408ca3
push 1
push 0
push 0x49ea54
lea ecx, [ebp - 0x28]
call fcn.0040d270
push dword [ebp - 0x18]
inc eax
lea ecx, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00407130
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x408be6
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x408bc9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404150
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00405a40
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x408bff
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404150
push 1
push 0
push 0x49ea54
lea ecx, [ebp - 0x28]
call fcn.0040d270
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407130
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x408c5a
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x408c3d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404150
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00405a40
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x408c73
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404150
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408ca3
lea eax, [ebp - 0x28]
cmp ebx, eax
je 0x408c9c
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00403ee0
mov ebx, 1
jmp 0x408ca5
xor ebx, ebx
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x408cba
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404150
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret 0x10
Function at 0x408f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a016
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x20a
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00474170
add esp, 0xc
lea eax, [ebp - 0x238]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
cmp word [ebp - 0x238], 0
jne 0x408fb2
xor ecx, ecx
jmp 0x408fcf
lea ecx, [ebp - 0x238]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408fc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x238]
push eax
lea ecx, [esi + 0x48]
call fcn.00404000
lea eax, [ebp - 0x268]
push eax
call fcn.00470be0
push 0
push eax
lea eax, [ebp - 0x250]
mov dword [ebp - 4], 0
push eax
call fcn.0045fc60
add esp, 0x10
mov eax, dword [ebp - 0x254]
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x409026
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.00404100
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x268], 0
jne 0x409094
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x73007e
mov dword [ebp - 0x28], 0x50006b
lea edx, [ecx + 2]
mov dword [ebp - 0x24], 0x2e0044
mov dword [ebp - 0x20], 0x610064
mov dword [ebp - 0x1c], 0x74
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409073
sub ecx, edx
lea eax, [ebp - 0x2c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00404000
jmp 0x4090c6
xor eax, eax
mov dword [ebp - 0x18], 0x440050
lea ecx, [ebp - 0x18]
mov word [ebp - 0x14], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4090a7
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.0040cb90
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x250]
push eax
lea ecx, [esi + 0x48]
call fcn.0040ca80
mov eax, dword [ebp - 0x23c]
cmp eax, 8
jb 0x4090f7
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.00404150
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret
Function at 0x40b9d0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a44b
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
je 0x40ba9d
cmp dword [ecx + 0x5c], 8
lea esi, [ecx + 0x48]
jb 0x40ba17
mov eax, dword [esi]
jmp 0x40ba19
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xb0
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.00474170
add esp, 0xc
lea ecx, [ebp - 0xc0]
push 1
call fcn.00407900
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x40ba54
mov eax, dword [esi]
jmp 0x40ba56
mov eax, esi
push 0x40
push 2
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040d900
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.00407170
add esp, 8
lea ecx, [ebp - 0xc0]
call fcn.0040cf00
cmp dword [esi + 0x14], 8
jb 0x40ba89
mov esi, dword [esi]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0xc0]
call fcn.00408590
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret 4

Function at 0x40f780
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40f7ce
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40f7ce
mov dword [esi + 8], ecx
lea ecx, [esi + 0x1c]
push eax
call fcn.004049c0
lea eax, [esi + 0x10]
push eax
push 4
push esi
push 0x40f190
push 0
push 0
call fcn.0047bd48
add esp, 0x18
mov dword [esi + 0xc], eax
test eax, eax
je 0x40f7c6
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0xc]
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x40f7e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49aa38
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x40f818
xor eax, eax
jmp 0x40f8bd
mov eax, 0x1f
mov word [ebp - 0x48], ax
lea eax, [esi + 0x58]
push 0xfde9
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0045fc60
add esp, 0xc
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov ecx, dword [esi + 0x18]
cmovae eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 0
call fcn.0045f5d0
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi + 0x34]
movups xmmword [ebp - 0x20], xmm0
push dword [esi + 4]
call fcn.00411fc0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
sub eax, edx
mov ecx, dword [ebp - 0x20]
push 1
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x40f8b8
inc eax
lea ecx, [ebp - 0x38]
push eax
push dword [ebp - 0x38]
call fcn.00404150
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40f8e0
Capabilities:
Hide graphical window
Terminate thread

Disassembly:
push edi
mov edi, ecx
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [edi + 0x1c]
push eax
call fcn.004028b0
mov ecx, eax
call fcn.0040e710
push 0xc8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x12c
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0
push 0x12
push dword [edi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x40f944
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [edi + 0x10], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40f978
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40f968
push 1
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40f971
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0xc], 0
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x40f98b
mov eax, dword [ecx]
call dword [eax + 0x34]
mov dword [edi + 0x18], 0
pop edi
ret
Function at 0x40fc20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cae8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push 0
push 0x2000
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00407000
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x2000
cmovae eax, dword [ebp - 0x28]
push eax
push 0x49eb68
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
mov eax, dword [ebp - 0x18]
cmp ecx, eax
ja 0x40fcb4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x40fcc1
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407000
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00410a70
mov ecx, dword [ebp - 0x14]
add esp, 8
cmp ecx, 0x10
jb 0x40fce3
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00404100
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret
Function at 0x411c00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a858
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4c3718]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
jne 0x411c3c
xor eax, eax
jmp 0x411d31
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x411d18
push 0x49ea54
lea ecx, [ebp - 0x28]
call fcn.00411ba0
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0040ca80
push 2
push 0x49eb90
lea ecx, [ebp - 0x28]
call fcn.0040cb90
cmp word [edi], bx
jne 0x411c7b
xor ecx, ecx
jmp 0x411c8f
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411c80
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.0040cb90
push 0x40
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00474170
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x7c]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], 1
cmovae eax, dword [ebp - 0x28]
xorps xmm0, xmm0
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
movups xmmword [ebp - 0x7c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x411cff
push dword [ebp - 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
call esi
push dword [ebp - 0x7c]
call esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x411d14
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00404150
test ebx, ebx
jne 0x411d2c
push 5
push 0
push 0
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472961
mov esp, ebp
pop ebp
ret