joyce8/EMBER2024-capa huggingface dataset:
Function at 0x702c9058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.702c91a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x702c907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x702c906a
add dl, dl
jne 0x702c9089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x702c90dc
xor eax, eax
add dl, dl
jne 0x702c9096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x702c917d
add dl, dl
jne 0x702c90a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x702c90b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x702c90bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x702c90c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x702c90d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x702c9075
mov eax, 1
add dl, dl
jne 0x702c90ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x702c90f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x702c90e1
sub eax, ebx
mov ebx, 1
jne 0x702c9128
mov ecx, 1
add dl, dl
jne 0x702c910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x702c9119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x702c9105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x702c9075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x702c913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x702c914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x702c9136
cmp eax, 0x7d00
jae 0x702c916d
cmp eax, 0x500
jb 0x702c9168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x702c9075
cmp eax, 0x7f
ja 0x702c9170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x702c9075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x702c919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x702c9075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401270
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493d1d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x4a3eec
lea ecx, [ebp - 0x60]
call fcn.00475770
push 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 4], 0
call fcn.00475dd0
xor edi, edi
cmp dword [str.Options], edi
je 0x40137f
mov ecx, 0x4af1a8
xor esi, esi
nop dword [eax]
mov eax, dword [esi + 0x4af1b8]
dec eax
cmp eax, 5
ja case.0x4012e0.4
jmp dword [eax*4 + 0x40144c]
push dword [esi + 0x4af1bc]
push dword [esi + 0x4af1b0]
push dword [esi + 0x4af1ac]
push dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.004762e0
jmp case.0x4012e0.4
push dword [esi + 0x4af1bc]
push dword [esi + 0x4af1b0]
push dword [esi + 0x4af1ac]
push dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.00476320
jmp case.0x4012e0.4
push dword [esi + 0x4af1b4]
push dword [esi + 0x4af1bc]
push dword [esi + 0x4af1b0]
push dword [esi + 0x4af1ac]
push dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.00476360
jmp case.0x4012e0.4
push dword [esi + 0x4af1bc]
push dword [esi + 0x4af1ac]
push dword [ecx]
lea ecx, [ebp - 0x60]
call fcn.00475b30
mov ecx, dword [esi + 0x4af1b0]
mov dword [ecx], eax
inc edi
lea esi, [edi + edi*2]
shl esi, 3
cmp dword [esi + 0x4af1a8], 0
lea ecx, [esi + 0x4af1a8]
jne 0x4012d0
mov eax, dword [0x4b3df4]
cmp eax, 0x80000000
jne 0x401390
mov eax, 0xa0
push 0
push 0x14
and eax, 0x1a0
lea ecx, [ebp - 0x60]
or eax, 0x40
mov edx, 0x4b3e44
push str.File_u
push str.RecentFileList
mov dword [0x4b3df4], eax
call fcn.004011a0
push 0x4a3f10
push 0xa
push 0x4a3f14
push str.RecentFileMasks
mov edx, 0x4b3e4c
lea ecx, [ebp - 0x60]
call fcn.004011a0
mov eax, dword [0x4b3e54]
add esp, 0x20
cmp eax, 0xe
ja 0x4013ed
cmp dword [eax*8 + 0x4afd44], 0
jne 0x4013f7
mov dword [0x4b3e54], 6
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp dword [0x4b3e28], 0
mov ax, word [ebp - 0x50]
mov word [0x4b3df8], ax
jne 0x401427
mov dword [0x4b3e28], 0x12c
lea ecx, [ebp - 0x60]
call fcn.004757b0
xor eax, eax
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.0047c26b
mov esp, ebp
pop ebp
ret

Function at 0x402b40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402ba8
test al, 0x10
jne 0x402bae
test bl, bl
je 0x402ba8
movzx ecx, word [edi]
mov eax, edi
mov esi, edi
test cx, cx
je 0x402ba8
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x402b81
cmp word [eax], 0x2f
je 0x402b81
add eax, 2
jmp 0x402b86
add eax, 2
mov esi, eax
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x402b70
cmp esi, edi
jbe 0x402ba8
xor eax, eax
xor bl, bl
push edi
mov word [esi - 2], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402b53
pop edi
pop esi
xor al, al
pop ebx
ret
pop edi
pop esi
mov al, 1
pop ebx
ret
Function at 0x407080
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
mov byte [ebp - 1], 0
push edi
mov edi, dword [ebx]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 8]
add eax, 0x10
push eax
push 0
push dword [0x4b2a38]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x40722f
push 0x1f4
push dword [ebx + 0x101c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x407220
nop word [eax + eax]
mov eax, dword [0x4b3fb4]
test eax, eax
je 0x407238
test byte [eax + 0x40], 1
je 0x407238
test dword [ebx + 0x124c], 0x100
lea esi, [ebx + 0x124c]
mov eax, dword [ebx + 0x1230]
mov dword [ebp - 0x10], esi
jne 0x40712f
push 0x203
push 3
push eax
call fcn.00415fe0
add esp, 0xc
cmp eax, 6
je 0x407142
cmp byte [ebp - 1], 0
je 0x407154
jmp 0x407146
push dword [ebx + 0x1248]
push 0x76
push 1
push eax
call fcn.00415fe0
add esp, 0x10
mov byte [ebp - 1], 1
push 3
push dword [ebx + 0x101c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [0x4b3fb4]
test eax, eax
je 0x407164
and dword [eax + 0x40], 0xfffffffe
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 8]
push 0x1f4
push dword [ebx + 0x1020]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40719c
push dword [ebp - 0x18]
push edi
push esi
call fcn.0047e060
add esp, 0xc
mov dword [edi + 0xc], 0
push dword [ebx + 0x1020]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x407204
add esi, 0x10
mov dword [ebp - 0x14], 0
lea edi, [eax + esi]
cmp esi, edi
jae 0x4071fe
push 6
push str.ERROR:
push esi
call fcn.00484de0
add esp, 0xc
test eax, eax
je 0x407257
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push dword [ebx + 0x1024]
call fcn.00436340
test al, al
je 0x4071f3
mov edx, esi
mov ecx, ebx
call fcn.004058d0
push dword [ebp - 0x14]
call fcn.004362e0
mov al, byte [esi]
test al, al
je 0x40724e
inc esi
cmp esi, edi
jb 0x4071f3
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
push 0x1f4
push dword [ebx + 0x101c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x4070e0
push esi
push 0
push dword [0x4b2a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx + 0x124c]
mov dword [ebp - 0x10], eax
jmp 0x407167
test al, al
jne 0x4071b4
inc esi
cmp esi, edi
jae 0x4071fe
mov al, byte [esi]
jmp 0x407246
add esi, 6
push esi
call fcn.00485704
mov esi, dword [ebp - 8]
add esp, 4
mov edi, dword [ebp - 0xc]
mov dword [ebx + 0x1248], eax
mov eax, dword [ebp - 0x10]
or dword [eax], 0x100
mov eax, dword [0x4b3fb4]
test eax, eax
je 0x407204
or dword [eax + 0x40], 1
jmp 0x407204
Function at 0x4085f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 8
push edi
mov dword [ebp - 0x220], edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov dword [ebp - 0x21c], ebx
call fcn.0047df00
add esp, 0xc
push 0
push 0
push 0x1004
push dword [ebx + 0x1238]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebx + 0x1014]
mov dword [ebp - 0x218], eax
test esi, esi
je 0x40869d
mov edx, 0x105
lea ecx, [ebp - 0x210]
nop dword [eax]
lea eax, [edx + 0x7ffffef9]
test eax, eax
je 0x408690
movzx eax, word [esi]
test ax, ax
je 0x408690
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x408670
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x210]
mov ecx, edi
call fcn.00408240
cmp eax, 1
jne 0x4087c9
push 0
push 0
push 2
push 0
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4086fd
lea eax, [ebp - 0x210]
push eax
push 0
push 0xdb
push edi
call fcn.00479a10
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp dword [ebp - 0x218], edi
jle 0x4087c2
nop dword [eax + eax]
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 4
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x104b
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x23c], 0
push dword [eax + 0x1238]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x4087a0
lea ecx, [eax + 8]
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x408766
push 0
lea eax, [ebp - 0x214]
sub esi, edx
push eax
push esi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
cmp dword [ebp - 0x214], esi
jne 0x4087af
lea eax, [ebp - 0x214]
push eax
push 2
push 0x4a4e30
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, dword [ebp - 0x218]
jl 0x408710
jmp 0x4087c2
push 0xb3
push dword [ebp - 0x220]
call fcn.00479a10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
Function at 0x40a9c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push 0x406
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40aa41
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call esi
mov ecx, 0x4b37d8
lea esi, [ebp - 0x20c]
mov edx, 0x104
sub esi, ecx
nop
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40aa2e
movzx eax, word [esi + ecx]
test ax, ax
je 0x40aa2e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40aa10
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push 0x408
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x40aa9d
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call esi
mov ecx, 0x4b35d0
lea esi, [ebp - 0x20c]
mov edx, 0x104
sub esi, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x40aa90
movzx eax, word [esi + ecx]
test ax, ax
je 0x40aa90
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40aa72
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov esi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x41e
push edi
call esi
dec eax
neg eax
push 0x41f
sbb eax, eax
inc eax
push edi
mov dword [0x4b3e00], eax
call esi
dec eax
neg eax
push 0x411
sbb eax, eax
inc eax
push edi
mov dword [0x4b3e0c], eax
call esi
cmp eax, 1
jne 0x40aadf
or dword [0x4b3df4], 0x20
jmp 0x40aae6
and dword [0x4b3df4], 0xffffffdf
push 0x412
push edi
call esi
cmp eax, 1
jne 0x40aaff
or dword [0x4b3df4], 0x80
jmp 0x40ab09
and dword [0x4b3df4], 0xffffff7f
push 0x413
push edi
call esi
cmp eax, 1
jne 0x40ab22
or dword [0x4b3df4], 0x100
jmp 0x40ab2c
and dword [0x4b3df4], 0xfffffeff
push 0x414
push edi
call esi
pop edi
pop esi
cmp eax, 1
jne 0x40ab44
or dword [0x4b3df4], 0x40
jmp 0x40ab4b
and dword [0x4b3df4], 0xffffffbf
call fcn.00401470
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
Function at 0x40c430
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x4ae480]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
push 8
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 2
mov ebx, eax
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
mov dword [esp + 0x24], esi
cmp esi, 0xffffffff
jne 0x40c4ca
push dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x40c491
push 0
push dword [ebx + 0xc]
call esi
push dword [ebx + 0x10]
call edi
test eax, eax
je 0x40c4a1
push 0
push dword [ebx + 0x10]
call esi
push dword [ebx + 0x14]
call edi
test eax, eax
je 0x40c5bd
push 0
push dword [ebx + 0x14]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
push esi
push dword [ebx + 8]
call fcn.00477a10
mov dword [esp + 0x10], eax
test eax, eax
je 0x40c5bd
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x14]
push eax
push 1
mov edx, esi
call fcn.0040bdb0
mov edx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub eax, edx
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x14
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [ebx + 0xc]
call edi
push 1
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
call fcn.0040bc30
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [esp + 0x30]
add esp, 8
push eax
push dword [ebx + 0xc]
call esi
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 8]
push eax
push 2
call fcn.0040bdb0
mov edx, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
sub eax, edx
push 0x14
push eax
mov eax, dword [esp + 0x24]
sub eax, ecx
push eax
push edx
push ecx
push 0
push dword [ebx + 0x10]
call edi
push 2
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
call fcn.0040bc30
add esp, 8
lea eax, [esp + 0x28]
push eax
push dword [ebx + 0x10]
call esi
push dword [ebx + 0xc]
mov edi, dword [sym.imp.USER32.dll_IsWindowVisible]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x40c5ad
push 5
push dword [ebx + 0xc]
call esi
push dword [ebx + 0x10]
call edi
test eax, eax
jne 0x40c5bd
push 5
push dword [ebx + 0x10]
call esi
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
Function at 0x40c5e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push edi
mov ebx, ecx
push 8
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0
mov edi, eax
push 0
push 0x1004
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, eax
mov dword [ebp - 0x34], 0
test ecx, ecx
mov dword [ebp - 0x3c], 0xd
xorps xmm0, xmm0
mov dword [ebp - 0x30], 3
movlpd qword [ebp - 0x24], xmm0
lea eax, [ecx - 1]
movlpd qword [ebp - 0x18], xmm0
cmovle eax, ecx
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x104d
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], str.Mask:.ext
mov dword [ebp - 0x1c], 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0x42e
push 0x111
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d4c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x435
push ecx
mov dword [ebp - 8], 0x200
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, 2
lea edi, [eax + 1]
lea eax, [edi + 1]
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0047c4da
add esp, 4
mov dword [ebp - 0xc], eax
mov esi, eax
push edi
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, esi
movzx eax, word [ecx]
mov ecx, eax
test ax, ax
je 0x40d61c
mov edi, dword [ebp + 8]
nop dword [eax + eax]
xor eax, eax
cmp ax, cx
jae 0x40d554
movzx eax, word [esi]
nop word [eax + eax]
cmp ax, 0x20
ja 0x40d554
movzx eax, word [esi + 2]
add esi, 2
xor ecx, ecx
cmp cx, ax
jb 0x40d540
movzx eax, word [esi]
mov ecx, eax
test ax, ax
je 0x40d61c
cmp ecx, 0x30
jne 0x40d580
movzx eax, word [esi + 2]
mov edx, eax
cmp eax, 0x78
je 0x40d579
mov eax, ecx
cmp edx, 0x58
jne 0x40d580
movzx eax, word [esi + 4]
add esi, 4
movzx eax, ax
push eax
call fcn.004842c0
add esp, 4
test eax, eax
je 0x40d615
movzx eax, word [esi]
push eax
call fcn.00484c6e
mov ebx, eax
mov ecx, 5
add esi, 2
lea eax, [ebx - 0x41]
cmp ecx, eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x37
sub ebx, eax
movzx eax, word [esi]
push eax
call fcn.004842c0
add esp, 8
test eax, eax
je 0x40d5ea
movzx eax, word [esi]
push eax
shl ebx, 4
call fcn.00484c6e
add ebx, eax
add esp, 4
add eax, 0xffffffbf
add esi, 2
cmp eax, 5
ja 0x40d5e7
add ebx, 0xffffffc9
jmp 0x40d5ea
add ebx, 0xffffffd0
cmp word [esi], 0x20
ja 0x40d615
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40d615
mov eax, dword [ebp - 4]
dec ecx
mov dword [ebp - 8], ecx
mov byte [eax + edi], bl
inc eax
mov dword [ebp - 4], eax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x40d530
jmp 0x40d61c
mov dword [ebp - 4], 0
push dword [ebp - 0xc]
call fcn.004568b0
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40dca0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax]
mov dword [ebp + 8], ebx
je 0x40dcc3
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push dword [eax + 4]
xor edx, edx
mov ecx, ebx
push 0
call fcn.00417150
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40deb3
push 0x4b37d8
push 0
lea ecx, [edi + 0x18]
call fcn.00416680
mov esi, dword [ebp + 0xc]
add esp, 8
mov dword [edi + 0x23c], 0x1100
cmp esi, 0x9c49
je 0x40dd17
cmp esi, 0x9c4a
je 0x40dd17
cmp esi, 0x9c4c
jne 0x40dd21
mov dword [edi + 0x23c], 0x1900
push edi
push 0x435020
mov edx, 0xaf
mov dword [edi + 0x244], 0xaf
mov ecx, ebx
call fcn.004160e0
mov ebx, dword [edi + 0x10]
lea eax, [edi + 0x10]
add esp, 8
cmp ebx, eax
je 0x40dea5
sub esi, 0x9c49
je 0x40de18
sub esi, 1
je 0x40ddaf
sub esi, 2
jne 0x40de92
push 0x38
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 0x3c
push esi
push eax
call fcn.0047df00
mov eax, dword [ebx + 0x1c]
add esp, 0xc
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x6c], 0x4b3be8
mov dword [ebp - 0x60], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40de92
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40de92
mov esi, dword [ebx + 0x1c]
mov ecx, esi
call fcn.00419270
test eax, eax
je 0x40dde7
push 0x4a5d44
push eax
call fcn.0047fa85
add esp, 8
test eax, eax
jne 0x40dde7
mov eax, dword [ebp + 8]
push 0x1a0
push 1
push eax
call fcn.00479dc0
add esp, 0xc
jmp 0x40de92
push 0x4b4288
push str.OpenAs_RunDLLW
push str.Shell32.dll
call fcn.00477460
test eax, eax
jne 0x40de92
mov eax, dword [ebp + 8]
push 1
push esi
push dword [0x4b2a34]
push eax
call dword [0x4b4288]
jmp 0x40de92
mov eax, dword [ebx + 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x3c], 0x400
mov dword [ebp - 0x34], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40de92
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x483
jne 0x40de92
lea eax, [ebp - 0x40]
mov dword [ebp - 0x34], str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40de92
call esi
test ebx, ebx
je 0x40dea5
push ebx
push 0
push dword [0x4b2a38]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x250
push edi
call fcn.0047c4cc
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4140c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4ae480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 8
push ecx
mov edi, edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test byte [edi + 0xc], 0x40
xorps xmm0, xmm0
mov esi, eax
mov dword [ebp - 0x30], 0x2c
movups xmmword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
je 0x41413c
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x1035c]
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10360], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10364], eax
and dword [edi + 0xc], 0xffffffbf
pop edi
mov dword [esi + 0x1035c], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047c26b
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x1035c]
test eax, eax
je 0x41415f
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41415f
push 0
push dword [esi + 0x1035c]
call dword [sym.imp.USER32.dll_ShowWindow]
test byte [edi + 0xc], 8
je 0x414176
mov ecx, dword [esi + 0xbc]
test ecx, ecx
je 0x414176
mov edx, edi
call fcn.004179e0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047c26b
mov esp, ebp
pop ebp
ret