joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415f4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415fa5
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x4aa244
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415f9c
mov byte [0x4ab274], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x41765b
Capabilities:
Hide graphical window

Disassembly:
push dword [0x4ab2b0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41768b
push 0
push dword [0x4ab2b0]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4ab2b8]
push 0
mov ecx, dword [eax + 0x168]
call fcn.004333f2
ret

Function at 0x41768c
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x4ab2b0]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0042a687
cmp dword [eax], 1
je 0x4176f6
cmp dword [eax + 4], ebx
je 0x41774b
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41774b
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x4ab2b0]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418dbf
Capabilities:
Check os version

Disassembly:
mov eax, 0x483879
call fcn.0046746c
sub esp, 0x180
push ebx
lea eax, [ebp - 0x18c]
push esi
mov dword [ebp - 0x14], ecx
push eax
mov dword [ebp - 0x18c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x188], 5
jne 0x418f3d
push 2
pop esi
cmp dword [ebp - 0x184], esi
jne 0x418f3d
cmp byte [ebp - 0xf2], 1
je 0x418f3d
push 0x4a1394
push dword [ebp + 8]
call fcn.00467b80
pop ecx
pop ecx
test eax, eax
push 1
je 0x418fd8
lea eax, [ebp + 0xb]
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp + 8]
call fcn.00402e7f
xor ebx, ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0x94], ebx
je 0x418f2e
mov al, byte [ebp + 0xb]
push edi
mov byte [ebp - 0x28], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0xa0]
push eax
push ebx
push 0x2c
mov byte [ebp - 4], 3
call fcn.0040b31a
lea eax, [ebp - 0xd]
push ebx
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], 0x48b6a8
mov dword [ebp - 0x30], 0x48b6a0
call fcn.00403cd9
xor edi, edi
mov byte [ebp - 4], 4
xor esi, esi
cmp dword [ebp - 0x24], ebx
je 0x418f15
mov eax, dword [ebp - 0x20]
push 0x28
sub eax, dword [ebp - 0x24]
pop ecx
cdq
idiv ecx
cmp edi, eax
jae 0x418f15
lea eax, [ebp - 0x15]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0xf0]
call fcn.00402e7f
push eax
mov eax, dword [ebp - 0x24]
add eax, esi
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.00417096
add esp, 0xc
push ebx
lea ecx, [ebp - 0x50]
push ebx
push ecx
mov ecx, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.0041f299
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 5
call fcn.00402438
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 4
call fcn.00402438
inc edi
add esi, 0x28
jmp 0x418e99
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.00402438
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00407b12
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
jmp 0x418fd1
xor esi, esi
lea eax, [ebp - 0xd]
push esi
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], 0x48b6a8
mov dword [ebp - 0x58], 0x48b6a0
call fcn.00403cd9
push 0x4a1394
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.00467b80
pop ecx
test eax, eax
pop ecx
jne 0x418fca
lea eax, [ebp + 0xb]
push 1
push eax
push str.dotnetfxsp1.exe
lea ecx, [ebp - 0x50]
call fcn.00402e7f
mov ecx, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x78]
push 1
push eax
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.0041f299
mov ebx, eax
lea ecx, [ebp - 0x50]
neg ebx
sbb bl, bl
and byte [ebp - 4], 0
inc bl
call fcn.00402438
test bl, bl
je 0x418fca
mov ecx, dword [ebp - 0x14]
call fcn.004221fe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402438
xor eax, eax
jmp 0x418fd9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00402438
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41ba6d
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x483dcb
call fcn.0046746c
sub esp, 0x5c0
and byte [ebp - 0x5cc], 0
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5cb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x5cc]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0xf]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401884
and dword [ebp - 4], 0
mov eax, str..mst
mov ecx, eax
mov dword [ebp - 0x3c], 0x48b660
test ecx, ecx
mov dword [ebp - 0x1c], 0x48b658
jne 0x41bae1
mov eax, 0x4aa140
lea ecx, [ebp - 0xd]
push 0
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00423ba6
and byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00401093
or edi, 0xffffffff
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 2
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, edi
je 0x41bbdd
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x41bbbb
lea eax, [ebp - 0xd]
push 1
push eax
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401884
lea eax, [ebp - 0xe]
push 1
push eax
lea eax, [ebp - 0x1a0]
push eax
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401884
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.00423ba6
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x3c]
call fcn.00401a14
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401093
lea eax, [ebp - 0x1cc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41bb39
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x41bbdd
push esi
call eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], edi
call fcn.00401093
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41dcde
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x484194
call fcn.0046746c
sub esp, 0x440
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x44b]
mov byte [ebp - 0x44c], bl
mov dword [ebp - 0x10], 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x41ddd7
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
mov byte [ebp - 0x244], 0x22
call fcn.00401166
mov ecx, eax
call fcn.0042a757
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.004042dd
push eax
lea eax, [ebp - 0x243]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00402438
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x244]
push 0x4a2590
push eax
call esi
lea eax, [ebp - 0x44c]
push 0x20
push eax
call fcn.00469320
pop ecx
cmp eax, ebx
pop ecx
je 0x41ddd7
push eax
lea eax, [ebp - 0x244]
push eax
call esi
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x244]
push eax
push 1
push ebx
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
jmp 0x41ddd9
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42332e
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x484c8f
call fcn.0046746c
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 4], 1
cmp edi, dword [esi + 0x30]
je 0x423362
mov ecx, edi
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add edi, 0x28
jmp 0x42334a
mov ecx, esi
call fcn.004042dd
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
and byte [ebp - 4], 0
lea ecx, [esi + 0x28]
call fcn.00407b12
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402438
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x426a4e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x48529e
call fcn.0046746c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00469564
mov eax, 0x48ccb8
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x48b660
mov esi, 0x48b658
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401907
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401907
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x48b888
mov dword [ebx + 0xc], eax
call fcn.00426bdc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x426ae0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4852c6
call fcn.0046746c
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00469564
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x48b658
push 0
push eax
mov ecx, edi
mov dword [edi], 0x48b660
mov dword [edi + 0x20], esi
call fcn.00401907
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x48b660
mov dword [ecx + 0x20], esi
call fcn.00401907
mov esi, dword [ebp + 8]
mov dword [ebx], 0x48b888
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.00401d3d
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.00401d3d
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4292d9
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040116a
push 1
lea eax, [ebp - 0xd0]
pop esi
mov dword [ebp - 0xd0], 0x94
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x429389
dec eax
je 0x42937e
dec eax
jne 0x429390
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x42936e
dec eax
je 0x429365
dec eax
jne 0x429371
mov dword [ebp - 0x18], 5
jmp 0x429371
mov dword [ebp - 0x18], 3
jmp 0x429371
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0xcc], ecx
jb 0x429390
mov dword [ebp - 0x14], esi
jmp 0x429390
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x429390
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401166
mov ecx, eax
call fcn.0042a68e
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x4297c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x429803
mov eax, dword [ecx + 0x74]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x4297e1
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc

Function at 0x42c68f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x42c6d4
mov eax, dword [ebp + 8]
test eax, eax
je 0x42c6a9
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c730
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042c589
lea eax, [ebp - 0x4c]
push 0x497690
push eax
call fcn.00468cf7
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c730
cmp dword [ebp + 8], 0
jne 0x42c709
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42c730
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c4c2
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x42e594
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x485ea9
call fcn.0046746c
sub esp, 0x4d0
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x4db]
mov byte [ebp - 0x4dc], bl
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4dc]
lea ecx, [esi + 0x18]
push eax
push 0x4aa144
push str.ClickOncePackage
push 0x4a02b0
call fcn.00402b3d
cmp byte [ebp - 0x4dc], bl
jne 0x42e5f5
xor eax, eax
jmp 0x42e749
lea eax, [ebp - 0xdc]
mov ecx, esi
push eax
call fcn.0042a757
mov eax, dword [eax + 8]
mov dword [ebp - 4], ebx
cmp eax, ebx
jne 0x42e612
mov eax, 0x48b6d0
cmp eax, ebx
mov dword [ebp - 0x3c], 0x48b660
mov dword [ebp - 0x1c], 0x48b658
jne 0x42e629
mov eax, 0x4aa140
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.004011a9
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 2
call fcn.00402438
push 1
lea eax, [ebp - 0xd]
pop esi
lea ecx, [ebp - 0x64]
push esi
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.00401884
push ebx
lea eax, [ebp - 0xb4]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.00411f18
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, eax
call fcn.0040aa0f
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.00401d3d
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.00401093
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 3
call fcn.00401093
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push 4
lea eax, [ebp - 0xd]
sub esp, 0x28
lea ecx, [ebp - 0x38]
mov edi, esp
mov dword [ebp - 0x14], esp
push esi
push eax
call fcn.0042f810
push eax
mov ecx, edi
call fcn.0040ade9
call fcn.00439538
add esp, 0x2c
cmp al, bl
jne 0x42e71a
lea eax, [ebp - 0xd]
push esi
push eax
lea eax, [ebp - 0x4dc]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401884
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 6
call fcn.00401d3d
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00401093
push esi
push ebx
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00401a14
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x3c]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401093
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x42feda
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x42feee
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42ff22
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044b83b
test al, al
jne 0x42ff55
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042c589
lea eax, [ebp - 0x4c]
push 0x497690
push eax
call fcn.00468cf7
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42ff55
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x42ff5d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x42ff71
push 8
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42ffa5
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0044b83b
test al, al
jne 0x42ffd8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.0042c589
lea eax, [ebp - 0x4c]
push 0x497690
push eax
call fcn.00468cf7
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42ffd8
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.0042c1ff
lea eax, [ebp - 0x48]
push 0x4974e0
push eax
call fcn.00468cf7
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x4333f2
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
je 0x43340e
mov ecx, esi
call fcn.00433412
pop esi
ret 4

Function at 0x433708
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4866ee
call fcn.0046746c
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
or dword [esi + 0x11c], 0xffffffff
lea eax, [esi + 0x124]
mov dword [esi + 0x108], edi
mov dword [esi + 0x10c], edi
mov byte [esi + 0x110], 1
mov byte [esi + 0x111], 1
mov byte [esi + 0x112], 1
mov dword [esi + 0x118], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x48c0ec
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
push ebx
call fcn.004338ca
pop ecx
mov dword [esi + 0x114], eax
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x108], eax
jne 0x4337b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x118], eax
jmp 0x4338b7
push 0x2e
mov dword [esi + 0x10c], 1
call fcn.004675be
push 0x2e
push edi
push eax
mov dword [esi + 0x120], eax
call fcn.00467b20
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x114]
push dword [esi + 0x108]
call fcn.00434ac5
test eax, eax
je 0x4338b7
lea eax, [ebp - 0x14]
push edi
push eax
push 0x2e
push dword [esi + 0x120]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x4338b7
cmp dword [ebp - 0x14], edi
je 0x4338b7
mov ecx, esi
call fcn.00433de0
test eax, eax
je 0x43383d
mov eax, dword [esi + 0x120]
mov ax, word [eax + 0xe]
cmp ax, di
jne 0x4338ac
push edi
push ebx
call fcn.004338ca
cmp eax, dword [esi + 0x114]
pop ecx
pop ecx
jbe 0x433854
mov dword [esi + 0x114], eax
push edi
push edi
push dword [esi + 0x114]
mov ecx, esi
push dword [esi + 0x108]
call fcn.00434ac5
test eax, eax
je 0x4338b7
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x120]
push dword [esi + 0x108]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x4338b7
cmp dword [ebp - 0x14], edi
je 0x4338b7
mov ecx, esi
call fcn.00433de0
test eax, eax
je 0x4338b7
mov eax, dword [esi + 0x120]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x4338b7
movzx eax, ax
push eax
mov ecx, esi
call fcn.004349c3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4