joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e00
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x10], 0x41a4b0
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
add esp, 0x2c
ret

Function at 0x402e40
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x34
mov eax, dword [ecx]
mov dword [ebp - 0xc], 0x10
test eax, eax
je 0x402e95
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], 0x41a4b0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PageMargin
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x402eb0
movdqa xmm0, xmmword [0x410530]
movaps xmmword [0x41a4b0], xmm0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
cmp dword [ebp - 0xc], 0x10
jne 0x402e95
jmp 0x402ea4

Function at 0x402ec0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x41a444
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
add esp, 0x2c
ret

Function at 0x402f00
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
mov dword [esp + 0x2c], 4
test eax, eax
je 0x402f4b
lea edx, [esp + 0x2c]
mov dword [esp + 0x10], 0x41a444
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.PreviewPages
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
je 0x402f60
mov dword [0x41a444], 1
add esp, 0x3c
ret
cmp dword [esp + 0x2c], 4
jne 0x402f4b
mov eax, dword [0x41a444]
test eax, eax
jle 0x402f4b
cmp eax, 2
jle 0x402f55
mov dword [0x41a444], 2
jmp 0x402f55
Function at 0x403dc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov ebp, dword [esp + 0xc0]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov dword [0x41a440], 1
mov dword [0x41a458], 0
sub esp, 4
mov esi, eax
mov eax, dword [esp + 0xc4]
mov dword [0x41a45c], 0
mov dword [esp], ebp
mov dword [0x41a498], 0
mov dword [0x41a49c], 0
mov dword [0x41a4a0], eax
mov dword [esp + 4], 0x7d4
call dword [sym.imp.user32.dll_GetDlgItem]
mov ecx, 0x3f2
mov edx, 0x5a8
sub esp, 8
mov ebx, eax
xor eax, eax
cmp dword [0x41a444], 1
mov dword [esp], 6
setg al
mov edi, eax
mov eax, ebx
call fcn.00401bc0
mov eax, ebx
mov ecx, 0x3f9
mov dword [esp], 7
mov edx, 0x5a9
add edi, 0x5ab
call fcn.00401bc0
mov eax, ebx
mov ecx, 0x3fa
mov dword [esp], 8
mov edx, 0x5aa
call fcn.00401bc0
mov edx, edi
mov eax, ebx
mov dword [esp], 9
mov ecx, 0x3fb
call fcn.00401bc0
mov eax, ebx
mov ecx, 0x3fc
mov dword [esp], 0xa
mov edx, 0x5ad
call fcn.00401bc0
mov eax, ebx
mov ecx, 0x3fd
mov dword [esp], 0xb
mov edx, 0x5ae
call fcn.00401bc0
mov ecx, 0x3e8
mov eax, ebx
mov edx, 0x5af
mov dword [esp], 0xc
call fcn.00401bc0
mov edi, dword [sym.imp.user32.dll_CreateWindowExW]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000000
mov dword [esp + 8], 0
mov dword [esp + 4], 0x41042e
mov dword [esp], 0
call edi
mov edx, 0x16
movq xmm0, qword [0x410508]
sub esp, 0x30
mov dword [esp + 0x58], eax
mov eax, 0x5a
mov dword [esp + 0x5c], eax
mov eax, 0xd
mov dword [esp + 0x60], edx
mov edx, 0x16
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x38]
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x70], edx
mov dword [esp], ebx
mov dword [esp + 0x40], 0x140
mov dword [esp + 0x64], 0x5a
mov dword [esp + 0x7c], 0x64
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x40a
call dword [sym.imp.user32.dll_SendMessageW]
sub esp, 0x10
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x7e0
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x18], 0xc8
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50300000
mov dword [esp + 8], 0
mov dword [esp + 4], str.PrtPreview
mov dword [esp], 0
call edi
sub esp, 0x30
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405180
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, edx
push ebx
mov ebx, eax
sub esp, 0x34
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x28]
call fcn.00405000
test eax, eax
je 0x4051b0
add esp, 0x34
pop ebx
pop esi
ret
mov eax, dword [esp + 0x28]
shl ebx, 2
mov dword [esp + 0x14], 4
add esi, ebx
mov dword [esp + 0xc], 4
mov dword [esp + 0x10], esi
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [esp + 8], 0
mov dword [esp + 4], str.BarState0
mov dword [esp], eax
call esi
sub esp, 0x18
add ebx, dword [esp + 0x40]
mov dword [esp + 0x14], 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Wrap
mov dword [esp + 0x10], ebx
mov dword [esp], eax
call esi
sub esp, 0x18
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
add esp, 0x34
pop ebx
pop esi
ret

Function at 0x405240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
shl eax, 2
lea esi, [ecx + eax]
sub esp, 0x3c
mov ecx, edx
add eax, dword [esp + 0x50]
mov dword [esi], 0
lea edx, [esp + 0x28]
mov dword [esp + 0x28], 0
mov edi, eax
mov dword [eax], 0
lea eax, [esp + 0x24]
call fcn.00405000
test eax, eax
jne 0x4052a2
cmp dword [esp + 0x28], 2
je 0x4052b0
mov dword [esi], 0xf
xor eax, eax
test ebx, ebx
sete al
mov dword [edi], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 4
mov dword [esp + 0x14], edx
mov ebp, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.BarState0
mov dword [esp], eax
call ebp
sub esp, 0x18
test eax, eax
lea edx, [esp + 0x2c]
mov eax, dword [esp + 0x28]
je 0x405300
mov dword [esi], 0xf
cmp eax, 2
jne 0x405289
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], 4
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Wrap
mov dword [esp], eax
call ebp
sub esp, 0x18
test eax, eax
je 0x405292
jmp 0x405289
Function at 0x405350
Capabilities:
Set registry value

Disassembly:
push ebx
mov ecx, str.Options
sub esp, 0x68
lea edx, [esp + 0x2c]
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
call fcn.00405000
test eax, eax
je 0x405398
lea edx, [esp + 0x2c]
mov ecx, str.Settings
lea eax, [esp + 0x28]
call fcn.00405000
test eax, eax
je 0x405458
add esp, 0x68
pop ebx
ret
lea eax, [esp + 0x34]
mov dword [esp + 0x34], 0x2c
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetWindowPlacement]
xor eax, eax
mov ebx, dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 8
cmp dword [esp + 0x3c], 3
mov dword [esp + 0x14], 0x10
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], str.FrameRect
sete al
mov dword [esp + 0x30], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call ebx
sub esp, 0x18
lea eax, [esp + 0x30]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Maximized
mov dword [esp], eax
call ebx
sub esp, 0x18
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00402e00
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405372
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.00402ec0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
add esp, 0x68
pop ebx
ret

Function at 0x405480
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
xor edx, edx
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x10]
push ecx
sub esp, 0x30
mov ebx, dword [ecx]
mov ecx, str.Options
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0x10
call fcn.00405000
test eax, eax
je 0x4054e0
test ebx, ebx
je 0x4054c4
movdqa xmm0, xmmword [0x4106f0]
movups xmmword [ebx], xmm0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.FrameRect
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x4054b5
cmp dword [ebp - 0xc], 0x10
jne 0x4054b5
jmp 0x4054c4
Function at 0x405520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor edx, edx
mov ecx, str.Options
sub esp, 0x38
lea eax, [esp + 0x28]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 4
call fcn.00405000
test eax, eax
je 0x405570
mov dword [ebx], 0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
add esp, 0x38
pop ebx
ret
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.Maximized
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
test eax, eax
jne 0x40554c
cmp dword [esp + 0x2c], 4
jne 0x40554c
jmp 0x405552
Function at 0x405b70
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
lea edx, [ebp - 0x68]
push esi
push ebx
push ecx
sub esp, 0x98
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov ecx, str.Recent_file_list
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
call fcn.00405000
test eax, eax
je 0x405bc0
mov eax, dword [ebp - 0x7c]
mov dword [esp], eax
call fcn.004055c0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edi, eax
mov eax, dword [ebp - 0x7c]
mov esi, 0x3ed
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenu]
mov edx, 0x20
pxor xmm0, xmm0
movaps xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x80], eax
mov eax, 0x30
sub esp, 4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
lea eax, [ebp - 0x48]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetMenuItemInfoW]
sub esp, 0x10
test eax, eax
je 0x405c2c
mov eax, dword [ebp - 0x28]
mov dword [ebp + esi*4 - 0x100c], eax
add esi, 1
cmp esi, 0x3f1
jne 0x405bf1
mov eax, dword [ebp - 0x58]
mov esi, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [ebp - 0x80], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call esi
sub esp, 8
test eax, eax
je 0x405d18
xor edx, edx
mov dword [ebp - 0x84], edi
mov edi, edx
mov eax, dword [ebp + edi*4 - 0x58]
test eax, eax
je 0x405c7a
mov dword [esp + 4], ebx
mov dword [esp], eax
call esi
sub esp, 8
test eax, eax
je 0x405d37
add edi, 1
cmp edi, 4
jne 0x405c56
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
test eax, eax
je 0x405ca0
mov eax, dword [ebp - 0x50]
movd xmm1, dword [ebp - 0x54]
movd xmm0, dword [ebp - 0x80]
mov dword [ebp - 0x4c], eax
punpckldq xmm0, xmm1
movq qword [ebp - 0x54], xmm0
test ebx, ebx
je 0x405d18
lea esi, [ebp - 0x64]
add edi, 1
mov dword [esp + 4], str.File_d
mov dword [esp + 8], edi
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
cmp word [ebx], 0
je 0x405d30
mov eax, ebx
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x405cd0
sub eax, ebx
add eax, 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
cmp edi, 4
je 0x405d18
mov ebx, dword [ebp + edi*4 - 0x58]
jmp 0x405ca0
mov eax, dword [ebp - 0x6c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x405ba3
mov eax, 2
jmp 0x405cde
mov edx, edi
mov edi, dword [ebp - 0x84]
test edx, edx
je 0x405ca0
lea eax, [ebp - 0x58]
shl edx, 2
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.ucrtbase.dll_memmove
jmp 0x405ca0
Function at 0x405e10
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov edx, 0x410678
xor eax, eax
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ecx, ebx
mov dword [esp], esi
call fcn.00405240
mov dword [esp + 0x20], esi
add esp, 0x14
mov ecx, ebx
pop ebx
mov edx, 0x41066c
mov eax, 1
pop esi
jmp fcn.00405240

Function at 0x405e50
Capabilities:
Set registry value

Disassembly:
push esi
mov edx, 0x410678
xor eax, eax
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov ecx, ebx
mov dword [esp], esi
call fcn.00405180
mov dword [esp + 0x20], esi
add esp, 0x14
mov ecx, ebx
pop ebx
mov edx, 0x41066c
mov eax, 1
pop esi
jmp fcn.00405180
Function at 0x407810
Capabilities:
Get graphical window text

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x71c
mov eax, dword [0x41c728]
mov esi, dword [sym.imp.user32.dll_GetDlgItem]
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 4], 0x7dd
mov dword [esp + 0x1c], eax
mov dword [esp], eax
call esi
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call ebx
mov ecx, 0x1c
sub esp, 0x10
lea edx, [esp + 0x30]
mov dword [esp + 0x18], eax
xor eax, eax
lea ebp, [esp + 0x2c]
mov edi, edx
mov dword [esp + 0x2c], 0x74
rep stosd dword es:[edi], eax
mov eax, dword [0x41c724]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
call ebx
sub esp, 0x10
mov ecx, dword [esp + 0x18]
lea ebp, [esp + 0x116]
mov dword [esp + 8], 0x104
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 0xd
mov dword [esp], ecx
call ebx
sub esp, 0x10
test eax, eax
jne 0x4078e8
add esp, 0x71c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x46]
mov dword [esp], ebp
mov ebp, dword [sym.imp.kernel32.dll_lstrcmpW]
mov dword [esp + 4], edi
call ebp
sub esp, 8
test eax, eax
je 0x407950
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], ecx
call ebx
sub esp, 0x10
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call esi
sub esp, 8
call fcn.004073c0
add esp, 0x71c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], eax
mov eax, dword [0x41c728]
mov dword [esp + 4], 0x7d4
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 4], 0x7de
mov dword [esp], eax
call esi
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x407
mov dword [esp], eax
call ebx
mov ecx, 0x1c
sub esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0xa4]
lea esi, [esp + 0xa0]
mov dword [esp + 0xa0], 0x74
rep stosd dword es:[edi], eax
mov eax, dword [0x41c724]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x43a
mov dword [esp], eax
call ebx
sub esp, 0x10
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x314]
mov dword [esp + 8], 0x104
mov dword [esp + 0xc], edi
mov dword [esp + 4], 0xd
mov dword [esp], eax
call ebx
mov eax, 0x66666667
sub esp, 0x10
mov ecx, dword [esp + 0xac]
lea esi, [esp + 0x512]
mov dword [esp + 4], 0x410d58
mov dword [esp], esi
imul ecx
sar ecx, 0x1f
sar edx, 3
sub edx, ecx
mov dword [esp + 8], edx
call dword [sym.imp.user32.dll_wsprintfW]
mov dword [esp + 4], esi
mov dword [esp], edi
call ebp
sub esp, 8
test eax, eax
je 0x4078da
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
mov dword [esp], eax
call ebx
sub esp, 0x10
jmp 0x4078da
Function at 0x407a80
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
mov eax, dword [0x41c728]
mov dword [esp + 4], 0x7d0
mov dword [esp], eax
call dword [sym.imp.user32.dll_GetDlgItem]
sub esp, 8
test ebx, ebx
je 0x407ae0
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40f284]
sub esp, 8
mov dword [esp], eax
call fcn.00405d70
mov edx, dword [eax*4 + 0x41c708]
or edx, 2
mov dword [eax*4 + 0x41c708], edx
add esp, 0x18
pop ebx
ret
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.user32.dll_ShowWindow]
mov eax, dword [0x40f284]
sub esp, 8
mov dword [esp], eax
call fcn.00405d70
mov edx, dword [eax*4 + 0x41c708]
and edx, 0xfffffffd
mov dword [eax*4 + 0x41c708], edx
add esp, 0x18
pop ebx
ret
Function at 0x407dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x407f98
lea esi, [esp + 0x44]
mov ebp, eax
cmp ebx, 0x11
je 0x407f50
mov eax, dword [0x41c724]
mov dword [esp + 0xc], esi
mov dword [esp + 0x44], ebp
mov esi, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0x4c], 0x406820
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x44a
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp + 0x2c], eax
mov dword [esp], ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x41c724]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.user32.dll_SetFocus]
sub esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x407f08
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
add eax, 2
mov word [eax + 0x41c4fe], dx
test dx, dx
jne 0x407e80
mov eax, 0x41c500
call fcn.00407b20
mov eax, dword [0x41c724]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb9
mov dword [esp], eax
call esi
mov dword [0x40f284], ebx
sub esp, 0x10
call fcn.00407cc0
call fcn.00405ff0
mov eax, dword [0x40f284]
mov dword [esp], eax
call fcn.00405d70
mov eax, dword [eax*4 + 0x41c710]
mov dword [esp + 4], eax
mov eax, dword [0x41c728]
mov dword [esp], eax
call fcn.00402f90
add esp, 0x5c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov edx, 0x4b0
mov dword [esp + 0xc], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [0x41c724]
mov dword [esp + 0x3c], edx
mov dword [esp + 4], 0x45f
mov dword [esp], eax
call esi
sub esp, 0x10
test eax, eax
je 0x407e7b
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 2
mov dword [esp + 4], 0x410b84
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
cmp dword [esp + 0x44], 2
je 0x407e1f
mov dword [esp], ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
sub esp, 4
jmp 0x407f46
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 5
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 0x410d78
sete al
movzx eax, al
add eax, 0x6ab
mov dword [esp + 4], eax
mov eax, dword [0x41c728]
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
xor eax, eax
sub esp, 0x10
jmp 0x407f46
Function at 0x408150
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov eax, dword [0x41c724]
cmp word [0x41c500], 0
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
jne 0x4081b1
lea edx, [esp + 0x18]
mov ecx, 8
mov ebx, 0x4b0
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], ebx
mov ebx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 8], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], 0x45f
mov dword [esp], eax
call ebx
mov edx, eax
sub esp, 0x10
mov eax, dword [0x41c724]
test edx, edx
je 0x408299
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb8
mov dword [esp], eax
call ebx
sub esp, 0x10
test eax, eax
je 0x408299
cmp word [0x41c500], 0
mov ebx, 0x41bac0
movzx eax, word [0x41bac0]
jne 0x4082b0
test ax, ax
je 0x4082f8
mov eax, ebx
nop
add eax, 2
cmp word [eax], 0
jne 0x408200
sub eax, ebx
sar eax, 1
cmp word [0x41b8c0], 0
je 0x408233
mov edx, 0x41b8c0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x408220
sub edx, 0x41b8c0
sar edx, 1
add eax, edx
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_calloc]
mov esi, eax
test eax, eax
je 0x4082a8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x41b8c0
mov dword [esp], eax
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [0x41c728]
mov dword [esp + 4], esi
mov dword [esp + 0xc], 0x33
mov dword [esp + 8], 0x410d78
mov dword [esp], eax
call dword [sym.imp.user32.dll_MessageBoxW]
sub esp, 0x10
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
cmp ebx, 6
je 0x408300
cmp ebx, 7
jne 0x4082a8
add esp, 0x24
mov eax, 1
pop ebx
pop esi
ret
add esp, 0x24
xor eax, eax
pop ebx
pop esi
ret
mov eax, 0x41c500
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4082b8
cmp eax, 0x41c500
ja 0x4082d2
jmp 0x40833c
mov eax, ebx
movzx edx, word [eax]
cmp dx, 0x5c
je 0x408330
cmp dx, 0x2f
je 0x408330
lea ebx, [eax - 2]
cmp ebx, 0x41c500
ja 0x4082d0
movzx eax, word [eax - 2]
jmp 0x4081f3
xor eax, eax
jmp 0x40820d
cmp word [0x41c500], 0
je 0x408320
mov edx, dword [0x40f284]
add esp, 0x24
mov eax, 0x41c500
pop ebx
pop esi
jmp fcn.00407dc0
add esp, 0x24
pop ebx
pop esi
jmp fcn.00407fe0
lea ebx, [eax + 2]
movzx eax, word [eax + 2]
jmp 0x4081f3
mov ebx, eax
xor eax, eax
jmp 0x40820d
Function at 0x40ecc0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call 0x40ed30
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.0040ed80
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]

Function at 0x40ed80
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.0040ed70
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40edee
xor ecx, ecx
xor edx, edx
jmp 0x40edc6
cmp al, 0x5c
jne 0x40ee48
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40ede3
cmp al, 9
je 0x40edce
cmp al, 0x20
jne 0x40edb0
test ecx, ecx
je 0x40ede3
xor edx, edx
jmp 0x40edbb
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x40ede0
cmp al, 0x20
je 0x40ede0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x40ee09
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0040dbd0
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
jne 0x40edd2
and edx, 1
jne 0x40edd2
xor ecx, 1
jmp 0x40edbb