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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [0x416230], 0
mov dword [0x416234], 0
mov eax, dword [0x416250]
mov dword [0x416260], eax
mov dword [0x416290], 0
mov dword [0x416294], 0
mov dword [0x4161b0], 0
mov dword [0x416060], 2
mov dword [0x4161f0], 0
sub esp, 8
push 0
push 0
push 0
push sym._thread_proc_4
push 0
push 0
call sub.KERNEL32.dll_CreateThread
add esp, 8
sub esp, 8
push eax
push 0x40b2f9
call sym._system_assert_
add esp, 0x10
leave
ret

Function at 0x402f6c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
sub esp, 8
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.USER32.dll_GetWindowThreadProcessId
add esp, 8
mov eax, dword [0x4162d0]
mov edx, eax
mov eax, dword [ebp - 4]
cmp edx, eax
je 0x402f9b
mov dword [ebp - 0x14], 1
jmp 0x402fc8
mov eax, dword [0x416da0]
sub esp, 8
push 1
push eax
call sub.USER32.dll_KillTimer
add esp, 8
mov eax, dword [0x416da0]
sub esp, 8
push 0
push eax
call sub.USER32.dll_ShowWindow
add esp, 8
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
leave
ret 8

Function at 0x402fcf
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
sub esp, 8
push 0
push sym._enum_windows_proc_8
call sub.USER32.dll_EnumWindows
add esp, 8
leave
ret 0x10
Function at 0x402feb
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
sub esp, 4
push 0
push 0
push 3
push 0
push 1
push 3
push dword [ebp + 8]
call sub.KERNEL32.dll_CreateFileA
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x403041
call sub.KERNEL32.dll_GetLastError
sub esp, 8
push eax
push 0x40b5b0
call sym._system_error
add esp, 0x10
mov dword [0x4162b0], eax
mov dword [ebp - 0x410], 1
jmp 0x403248
sub esp, 0xc
push 0
lea eax, [ebp - 0x3f8]
push eax
push 0x3e8
lea eax, [ebp - 0x3f4]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
jne 0x403092
call sub.KERNEL32.dll_GetLastError
sub esp, 8
push eax
push str.Failed_to_read_file
call sym._system_error
add esp, 0x10
mov dword [0x4162b0], eax
mov dword [ebp - 0x410], 1
jmp 0x403248
cmp dword [ebp + 0xc], 0
je 0x4030d0
mov al, byte [ebp - 0x3f4]
cmp al, 0x32
jne 0x4030b8
mov al, byte [ebp - 0x3f3]
cmp al, 0x25
jne 0x4030b8
mov dword [ebp - 0x408], 1
jmp 0x4030c2
mov dword [ebp - 0x408], 0
mov al, byte [ebp - 0x408]
mov byte [ebp - 0x409], al
jmp 0x403106
mov al, byte [ebp - 0x3f4]
cmp al, 0x4d
jne 0x4030f0
mov al, byte [ebp - 0x3f3]
cmp al, 0x5a
jne 0x4030f0
mov dword [ebp - 0x404], 1
jmp 0x4030fa
mov dword [ebp - 0x404], 0
mov cl, byte [ebp - 0x404]
mov byte [ebp - 0x409], cl
cmp byte [ebp - 0x409], 0
je 0x40312c
sub esp, 0xc
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
mov dword [ebp - 0x410], 0
jmp 0x403248
mov dword [ebp - 8], 0
jmp 0x40314f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
mov al, byte [ebp + eax - 0x3f4]
xor eax, 0x7f
mov byte [ebp + edx - 0x3f4], al
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x3f8]
cmp edx, eax
jb 0x403135
push 0
push 0
push 0
push dword [ebp - 0xc]
call sub.KERNEL32.dll_SetFilePointer
jmp 0x4031f7
lea eax, [ebp - 0x3f4]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x3f8]
sub esp, 0xc
push 0
lea eax, [ebp - 0x3fc]
push eax
push edx
lea eax, [ebp - 0x3f4]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
jne 0x4031d6
call sub.KERNEL32.dll_GetLastError
sub esp, 8
push eax
push str.Failed_to_write_to_file
call sym._system_error
add esp, 0x10
mov dword [0x4162b0], eax
sub esp, 0xc
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
mov dword [ebp - 0x410], 1
jmp 0x403248
mov eax, dword [ebp - 0x3fc]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0x3f8]
mov eax, dword [ebp - 0x3fc]
mov ecx, edx
sub ecx, eax
mov eax, ecx
mov dword [ebp - 0x3f8], eax
mov eax, dword [ebp - 0x3f8]
test eax, eax
jne 0x40316f
sub esp, 0xc
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
test eax, eax
jne 0x40323e
call sub.KERNEL32.dll_GetLastError
sub esp, 8
push eax
push str.Failed_to_close_file
call sym._system_error
add esp, 0x10
mov dword [0x4162b0], eax
mov dword [ebp - 0x410], 1
jmp 0x403248
mov dword [ebp - 0x410], 0
mov eax, dword [ebp - 0x410]
leave
ret
Function at 0x403250
Capabilities:
Create process on windows
Create process suspended
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x40a010]
add eax, 9
mov edx, dword [0x416d50]
sub esp, 4
push eax
push edx
push str._1_s__2_s_launch
call sym._format_string
add esp, 0x10
mov dword [ebp - 0x10], eax
sub esp, 8
push 0
push dword [ebp - 0x10]
call sym._lock
add esp, 0x10
test eax, eax
je 0x4032a0
sub esp, 0xc
push dword [ebp - 0x10]
call sym._free
add esp, 0x10
jmp 0x403471
mov ecx, dword [0x416d60]
mov eax, dword [0x40a010]
add eax, 9
mov edx, dword [0x416d50]
push ecx
push eax
push edx
push str._1_s__2_s__3_s_
call sym._format_string
add esp, 0x10
mov dword [ebp - 0xc], eax
sub esp, 8
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sub.KERNEL32.dll_MoveFileA
add esp, 8
test eax, eax
je 0x403405
sub esp, 4
push 0x44
push 0
lea eax, [ebp - 0x64]
push eax
call sym._memset
add esp, 0x10
mov dword [ebp - 0x64], 0x44
mov eax, dword [0x40a010]
add eax, 9
mov edx, dword [0x416d50]
sub esp, 4
push eax
push edx
push 0x40b62a
call sym._format_string
add esp, 0x10
mov dword [ebp - 8], eax
sub esp, 8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 8]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CreateProcessA
add esp, 8
test eax, eax
je 0x4033a9
mov eax, dword [ebp - 0x1c]
sub esp, 0xc
push eax
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [0x4162d0], eax
mov eax, dword [0x416da0]
push sym._timer_proc_16_1
push 0xc8
push 1
push eax
call sub.USER32.dll_SetTimer
mov eax, dword [ebp - 0x20]
sub esp, 8
push 0xffffffffffffffff
push eax
call sub.KERNEL32.dll_WaitForSingleObject
add esp, 8
mov eax, dword [0x416da0]
sub esp, 8
push 1
push eax
call sub.USER32.dll_KillTimer
add esp, 8
mov eax, dword [ebp - 0x20]
sub esp, 0xc
push eax
call sub.KERNEL32.dll_CloseHandle
add esp, 0xc
jmp 0x4033c4
call sub.KERNEL32.dll_GetLastError
sub esp, 8
push eax
push str.Failed_to_launch_installer
call sym._system_error
add esp, 0x10
mov dword [0x4162b0], eax
sub esp, 0xc
push dword [ebp - 8]
call sym._free
add esp, 0x10
sub esp, 8
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call sub.KERNEL32.dll_MoveFileA
add esp, 8
test eax, eax
jne 0x403445
sub esp, 0xc
push dword [ebp - 0x10]
call sym._free
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0xc]
call sym._free
add esp, 0x10
jmp 0x403471
sub esp, 4
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push str.Failed_to_rename_file._Source:__1_s___Target:__2_s___Error
call sym._format_string
add esp, 0x10
mov dword [ebp - 4], eax
call sub.KERNEL32.dll_GetLastError
sub esp, 8
push eax
push dword [ebp - 4]
call sym._system_error
add esp, 0x10
mov dword [0x4162b0], eax
sub esp, 0xc
push dword [ebp - 4]
call sym._free
add esp, 0x10
sub esp, 8
push 1
push dword [ebp - 0x10]
call sym._lock
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0x10]
call sym._free
add esp, 0x10
sub esp, 0xc
push dword [ebp - 0xc]
call sym._free
add esp, 0x10
leave
ret
Function at 0x40350e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov dword [0x416d30], 3
mov eax, dword [0x416d80]
sub esp, 8
push eax
push str.Launching__1_s__installer...
call sym._format_string
add esp, 0x10
mov dword [ebp - 8], eax
mov ecx, dword [0x416d20]
mov ebx, dword [0x416da0]
mov edx, dword [0x416d70]
mov eax, edx
add eax, eax
lea edx, [eax + edx]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
push 0
push ecx
push 0
push ebx
push eax
push 0x1be
push 0x29
push 0x11
push 0x50000000
push dword [ebp - 8]
push 0x40b6ac
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x4162c0], eax
mov eax, dword [0x4162c0]
sub esp, 8
push eax
push 0x40b6b3
call sym._system_assert_
add esp, 0x10
sub esp, 0xc
push dword [ebp - 8]
call sym._free
add esp, 0x10
mov eax, dword [0x416d40]
mov edx, dword [0x4162c0]
push 0
push eax
push 0x30
push edx
call sub.USER32.dll_SendMessageA
sub esp, 8
push 0
push 0
push 0
push sym._thread_proc_4_1
push 0
push 0
call sub.KERNEL32.dll_CreateThread
add esp, 8
sub esp, 8
push eax
push 0x40b6c0
call sym._system_assert_
add esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x404253
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
sub esp, 0xc
push 0
push 0
push 0
push 0
push 0x40cd41
call sub.WININET.DLL_InternetOpenA
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404292
call sub.KERNEL32.dll_GetLastError
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov dword [ebp - 0x34], 1
jmp 0x404436
cmp dword [ebp + 0xc], 0
je 0x4042a1
mov dword [ebp - 0x30], 0x1bb
jmp 0x4042a8
mov dword [ebp - 0x30], 0x50
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x30]
push dword [ebp + 0x14]
push dword [ebp - 0xc]
call sub.WININET.DLL_InternetConnectA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4042ef
call sub.KERNEL32.dll_GetLastError
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
sub esp, 0xc
push dword [ebp - 0xc]
call sub.WININET.DLL_InternetCloseHandle
add esp, 0xc
mov dword [ebp - 0x34], 1
jmp 0x404436
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0xc], 0
je 0x404304
mov dword [ebp - 0x28], 0x84800000
jmp 0x40430b
mov dword [ebp - 0x28], 0x84000000
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push 0
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.WININET.DLL_HttpOpenRequestA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404354
call sub.KERNEL32.dll_GetLastError
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
sub esp, 0xc
push dword [ebp - 0xc]
call sub.WININET.DLL_InternetCloseHandle
add esp, 0xc
mov dword [ebp - 0x34], 1
jmp 0x404436
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx + 8], eax
sub esp, 8
push sym._status_callback_20
push dword [ebp - 4]
call sub.WININET.DLL_InternetSetStatusCallback
add esp, 8
cmp dword [ebp + 0x20], 0
je 0x404392
sub esp, 0xc
push dword [ebp + 0x20]
call sym._strlen
add esp, 0x10
mov dword [ebp - 0x24], eax
jmp 0x404399
mov dword [ebp - 0x24], 0
sub esp, 0xc
push dword [ebp - 0x24]
push dword [ebp + 0x20]
push 0xffffffffffffffff
push dword [ebp + 0x1c]
push dword [ebp - 4]
call sub.WININET.DLL_HttpSendRequestA
add esp, 0xc
test eax, eax
jne 0x4043d9
call sub.KERNEL32.dll_GetLastError
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
sub esp, 0xc
push dword [ebp + 8]
call sym._net_close
add esp, 0x10
mov dword [ebp - 0x34], 1
jmp 0x404436
mov dword [ebp - 0x14], 4
sub esp, 0xc
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push dword [ebp - 4]
call sub.WININET.DLL_HttpQueryInfoA
add esp, 0xc
test eax, eax
jne 0x404424
call sub.KERNEL32.dll_GetLastError
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
sub esp, 0xc
push dword [ebp + 8]
call sym._net_close
add esp, 0x10
mov dword [ebp - 0x34], 1
jmp 0x404436
mov eax, dword [ebp - 0x10]
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], edx
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
leave
ret
Function at 0x40443b
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
lea eax, [ebp - 4]
push eax
push edx
push dword [ebp + 0xc]
push ecx
call sub.WININET.DLL_InternetReadFile
test eax, eax
je 0x40446f
mov eax, dword [ebp - 4]
mov edx, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov dword [ebp - 0x14], 0
jmp 0x40449a
call sub.KERNEL32.dll_GetLastError
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x404493
sub esp, 0xc
push dword [ebp + 8]
call sym._net_close
add esp, 0x10
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x404cd9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [0x4162e0]
test eax, eax
je 0x404e2e
cmp dword [ebp + 8], 0x64
je 0x404cfb
cmp dword [ebp + 8], 0x65
jne 0x404d64
cmp dword [ebp + 0xc], 0x300
jne 0x404e2e
mov eax, dword [0x416310]
sub esp, 0xc
push eax
call sub.USER32.dll_GetWindowTextLengthA
add esp, 0xc
test eax, eax
je 0x404d3e
mov eax, dword [0x416330]
sub esp, 0xc
push eax
call sub.USER32.dll_GetWindowTextLengthA
add esp, 0xc
test eax, eax
je 0x404d3e
mov dword [ebp - 0xf4], 1
jmp 0x404d48
mov dword [ebp - 0xf4], 0
mov eax, dword [0x416340]
sub esp, 8
push dword [ebp - 0xf4]
push eax
call sub.USER32.dll_EnableWindow
add esp, 8
jmp 0x404e2e
cmp dword [ebp + 8], 0x66
jne 0x404e2e
cmp dword [ebp + 0xc], 0
jne 0x404e2e
mov eax, dword [0x416310]
sub esp, 8
push 0
push eax
call sub.USER32.dll_EnableWindow
add esp, 8
mov eax, dword [0x416330]
sub esp, 8
push 0
push eax
call sub.USER32.dll_EnableWindow
add esp, 8
mov eax, dword [0x416340]
sub esp, 8
push 0
push eax
call sub.USER32.dll_EnableWindow
add esp, 8
mov edx, dword [0x416310]
sub esp, 4
push 0x64
lea eax, [ebp - 0x80]
push eax
push edx
call sub.USER32.dll_GetWindowTextA
add esp, 4
mov edx, dword [0x416330]
sub esp, 4
push 0x64
lea eax, [ebp - 0xe4]
push eax
push edx
call sub.USER32.dll_GetWindowTextA
add esp, 4
mov eax, dword [0x40a010]
lea edx, [eax + 9]
mov dword [ebp - 0x1c], str.name
lea eax, [ebp - 0x80]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], str.password
lea eax, [ebp - 0xe4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], str.product
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
sub esp, 8
lea eax, [ebp - 0x1c]
push eax
push 0x4162f0
call sym._query
add esp, 0x10
leave
ret

Function at 0x405275
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov eax, dword [0x40a010]
add eax, 9
mov edx, dword [0x416d50]
sub esp, 4
push eax
push edx
push str._1_s__2_s_
call sym._format_string
add esp, 0x10
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
dec ebx
sub esp, 0xc
push dword [ebp - 8]
call sym._strlen
add esp, 0x10
lea eax, [ebx + eax]
mov byte [eax], 0
mov eax, dword [0x416da0]
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], 3
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], 0
mov word [ebp - 0x16], 0x410
sub esp, 0xc
lea eax, [ebp - 0x26]
push eax
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0xc
sub esp, 0xc
push dword [ebp - 8]
call sym._free
add esp, 0x10
mov eax, dword [0x416d50]
sub esp, 0xc
push eax
call sub.KERNEL32.dll_RemoveDirectoryA
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40542c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x54
and esp, 0xfffffff0
call fcn.004059fc
call sym.___main
call sym._GetCommandLineA_0
sub esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x58]
push eax
call sym._GetStartupInfoA_4
add esp, 0xc
test ebx, ebx
jne 0x405465
jmp 0x4054ef
inc ebx
mov cl, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x405464
cmp cl, 0x22
je 0x4054b1
cmp cl, 0x20
setne dl
cmp cl, 9
setne al
and eax, 0xff
test edx, eax
je 0x4054cd
test cl, cl
je 0x4054cd
inc ebx
mov cl, byte [ebx]
cmp cl, 0x20
setne dl
cmp cl, 9
setne al
and eax, 0xff
test edx, eax
jne 0x405493
jmp 0x4054cd
inc ebx
mov cl, byte [ebx]
cmp cl, 0x22
setne dl
test cl, cl
setne al
and eax, 0xff
test edx, eax
jne 0x4054b1
cmp cl, 0x22
je 0x405518
cmp cl, 0x20
sete dl
cmp cl, 9
jmp 0x4054e6
inc ebx
mov al, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x4054dc
mov eax, 0xa
test byte [ebp - 0x2c], 1
je 0x405502
mov eax, dword [ebp - 0x28]
and eax, 0xffff
push eax
push ebx
push 0
push 0
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sym._WinMain_16
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
mov cl, byte [ebx]
jmp 0x4054cd
Function at 0x40b27e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x40b2a2
jmp 0x40b2ac
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40b292
mov esp, ebp
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ceab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f88e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40cecc
test byte [esp + 8], 2
je 0x40cecc
mov dword [0x41cf20], 0xd
mov dword [0x41cf24], 5
jmp 0x40cea7
xor eax, eax
ret

Function at 0x40f19d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x415890
cmp edx, dword [eax]
je 0x40f1bf
add eax, 8
inc ecx
cmp eax, 0x415920
jl 0x40f1b0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x415890]
jne 0x40f2ed
mov eax, dword [0x41cf74]
cmp eax, 1
je 0x40f2c7
test eax, eax
jne 0x40f1f0
cmp dword [0x415318], 1
je 0x40f2c7
cmp edx, 0xfc
je 0x40f2ed
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f227
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040bc70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040bdc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f26a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040bdc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4144fc
push edi
call fcn.0040c940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040bc70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040bc80
lea eax, [ebp - 0xa0]
push 0x4144dc
push eax
call fcn.0040bc80
push dword [esi + 0x415894]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040bc80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411c65
add esp, 0x2c
pop edi
jmp 0x40f2ed
lea eax, [ebp + 8]
lea esi, [esi + 0x415894]
push 0
push eax
push dword [esi]
call fcn.0040bdc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10007863
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1000789e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x10007885
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x10007896
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100078a0
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1000787b
xor eax, eax
pop edi
pop esi
ret

Function at 0x10007cd2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.10007823
das
fidiv dword [ecx + 0x7c858d6b]
invalid

Function at 0x10007ed8
Capabilities:
Inspect section memory permissions

Disassembly:
pop ebp
or al, 0xeb
push es
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10007efa
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x10007f18
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10007f76
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x10007f5d
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10007f66
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x10007f70
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10007f52
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10007edc
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10007fc3
dec eax
je 0x10007fba
sub eax, 3
je 0x10007fb1
mov dword [ebp - 4], 0x40
jmp 0x10007fe0
mov dword [ebp - 4], 4
jmp 0x10007fc6
mov dword [ebp - 4], 0x20
jmp 0x10007fc6
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10008012
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10007f92
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10007823
sbb dword [esi + 0x75ff9789], ebx
adc al, 0x6a
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x1000801e
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008068
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ebx + 0x75fffffc], esi
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov esp, 0x44fffffc