joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418549
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x41b877
call fcn.0040aa0a
mov esi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], cx
mov dword [ebp - 4], ebx
cmp word [eax], bx
jne 0x4185b1
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4185dd
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00411d52
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041845c
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00416140
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x41865b
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x41865b
lea eax, [ecx - 1]
push eax
push ebx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x230]
call fcn.00417db9
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00411cf1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0041845c
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00416140
push ebx
push 1
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], bl
call fcn.00416140
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov ecx, dword [0x420178]
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
push ebx
cmovae edx, dword [ebp - 0x230]
mov eax, dword [ecx]
push 0x2000000
push 3
push ebx
push 7
push 0x100001
push edx
call dword [eax + 0xa4]
mov ecx, eax
mov dword [esi + 0x30], ecx
cmp ecx, 0xffffffff
je 0x4186c2
push ebx
push ebx
push ebx
push ebx
lea eax, [esi + 0x44]
push eax
push ebx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationByHandleW]
cmp eax, 1
jne 0x4186c2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test al, al
je 0x4186c2
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
push 0
push 1
call fcn.00416140
mov al, bl
call fcn.0040a9be
ret 4
Function at 0x4186e4
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 0x1d], 1
xor edx, edx
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x41874d
mov eax, dword [ebx + 0x38]
sub eax, dword [ebx + 0x34]
push edx
push edx
push edx
push 0x26
push eax
push dword [ebx + 0x34]
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
push dword [ebx + 0x30]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
js 0x418739
cmp dword [ebp - 0x34], 0
je 0x418739
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x40], eax
jmp 0x41875a
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov byte [ebp - 0x1d], al
jmp 0x41875d
mov ecx, dword [eax]
test ecx, ecx
je 0x418757
add eax, ecx
jmp 0x418734
mov dword [ebx + 0x40], edx
mov al, byte [ebp - 0x1d]
test al, al
je 0x4187de
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x4187cc
mov eax, dword [ecx + 0x3c]
shr eax, 1
push eax
lea eax, [ecx + 0x50]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418357
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 8]
call fcn.0041845c
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00416140
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx + 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x4c]
lea ecx, [ebp - 0x48]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00418f09
mov esi, eax
lea edi, [ebx + 0x20]
lea ecx, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00418f49
mov ecx, ebx
call fcn.0041884b
push 0
pop edx
test al, al
je 0x418701
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040a985
mov esp, ebp
pop ebp
ret
Function at 0x401020
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
sub esp, 0x18
mov dword [0x41600c], 0
mov dword [esp + 8], 0xc0
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [0x416008], 0x10
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
mov dword [0x416004], eax
sub esp, 0xc
test eax, eax
je 0x401087
mov dword [esp + 4], 0
mov dword [esp], sym._enum_proc_8
call dword [0x417560]
sub esp, 8
test eax, eax
jne 0x401090
leave
xor eax, eax
ret
mov eax, dword [0x41600c]
mov dword [esp + 0xc], sym._cmp_window
mov dword [esp + 8], 0xc
mov dword [esp + 4], eax
mov eax, dword [0x416004]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_qsort]
mov eax, 1
leave
ret

Function at 0x4010c0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ecx, dword [0x41600c]
mov edx, dword [0x416008]
mov ebx, dword [ebp + 8]
mov eax, dword [0x416004]
cmp ecx, edx
jb 0x401126
lea esi, [edx + edx]
mov dword [esp + 8], eax
add edx, esi
mov dword [esp + 4], 0
shl edx, 3
mov dword [esp + 0xc], edx
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x401160
mov dword [0x416004], eax
mov ecx, dword [0x41600c]
mov dword [0x416008], esi
lea edx, [ecx + ecx*2]
lea esi, [eax + edx*4]
lea eax, [esi + 4]
mov dword [esi], ebx
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [0x417570]
add dword [0x41600c], 1
mov dword [esi + 8], eax
sub esp, 8
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8
xor eax, eax
jmp 0x401150
Function at 0x4014c0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test byte [section..data], 8
je 0x401526
cmp dword [ebp + 0xc], 0x11
mov eax, str.WM_QUERYENDSESSION
je 0x4014f3
cmp dword [ebp + 0xc], 0x16
mov eax, str.WM_ENDSESSION
mov edx, str.Unknown
cmovne eax, edx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], str.received_response__s_hwnd__p_lresult__Id_n
mov dword [esp + 8], str.end_session_message_callback
mov dword [esp + 4], 0x409000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test esi, esi
je 0x401558
mov edx, dword [ebx + 8]
xor eax, eax
test edx, edx
setne al
mov esi, eax
mov eax, dword [ebx]
mov dword [ebx + 8], esi
lea edx, [eax - 1]
mov dword [ebx], edx
test eax, eax
jne 0x40154b
mov eax, dword [ebx + 4]
test eax, eax
jne 0x4015b0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [0x417578]
sub esp, 4
test eax, eax
jne 0x401536
test byte [section..data], 8
je 0x40152a
mov dword [esp + 0xc], str.window_was_destroyed__ignoring_FALSE_lresult_n
mov dword [esp + 8], str.end_session_message_callback
mov dword [esp + 4], 0x409000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebx + 8]
xor eax, eax
test ecx, ecx
setne al
mov esi, eax
jmp 0x401536
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4015e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
je 0x401630
cmp eax, 0x111
jne 0x40161e
mov eax, dword [ebp + 8]
mov dword [esp + 4], 8
mov dword [esp], eax
call dword [0x41756c]
sub esp, 8
cmp dword [ebp + 0x10], 1
mov ebx, eax
je 0x401690
cmp dword [ebp + 0x10], 2
je 0x401678
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 8
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [0x417598]
mov eax, dword [ebp + 8]
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x41759c]
mov eax, 1
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x10
mov dword [eax + 4], 1
lea esp, [ebp - 8]
mov eax, 1
pop ebx
pop esi
pop ebp
ret 0x10
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 8], eax
call dword [sym.imp.kernelbase.dll_OpenProcess]
mov esi, eax
sub esp, 0xc
mov eax, 1
test esi, esi
je 0x401620
test byte [section..data], 8
jne 0x401700
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov dword [ebx + 8], 1
mov eax, 1
sub esp, 4
jmp 0x401620
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [esp + 0xc], str.terminating_process__04lx_n
mov dword [esp + 8], str.endtask_dlg_proc
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x409000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4016c9
Function at 0x401730
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
mov eax, dword [eax + 4]
cmp eax, dword [section..bss]
je 0x4017e1
mov dword [esp + 8], eax
mov eax, dword [sym.imp.kernelbase.dll_OpenProcess]
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], 0
mov dword [esp], 0x100000
mov dword [ebp - 0x20], eax
call eax
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x4017e1
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x1c]
mov ecx, eax
mov eax, ebx
mov dword [esp], 0x11
call sym._send_messages_with_timeout_dialog.constprop.0
mov edx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
mov esi, eax
je 0x4017f0
mov dword [esp + 4], eax
mov ecx, edi
mov eax, ebx
mov dword [esp], 0x16
call sym._send_messages_with_timeout_dialog.constprop.0
test esi, esi
je 0x401810
cmp eax, 0xffffffff
je 0x4017f0
mov dword [esp], edi
mov dword [esp + 4], 0
call dword [sym.imp.kernelbase.dll_WaitForSingleObject]
sub esp, 8
mov esi, eax
mov dword [esp], edi
mov edi, dword [sym.imp.kernelbase.dll_CloseHandle]
call edi
sub esp, 4
cmp esi, 0x102
je 0x401820
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
mov eax, 1
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call dword [sym.imp.kernelbase.dll_CloseHandle]
xor eax, eax
sub esp, 4
jmp 0x4017e6
mov eax, dword [ebx + 4]
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x4017e1
test byte [section..data], 8
jne 0x401870
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.kernelbase.dll_TerminateProcess]
sub esp, 8
mov dword [esp], esi
call edi
sub esp, 4
jmp 0x4017e1
mov eax, dword [ebx + 4]
mov dword [esp + 0xc], str.terminating_process__04lx_n
mov dword [esp + 8], str.send_end_session_messages
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x409000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40184d

Function at 0x401d90
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sym._get_all_windows
test eax, eax
jne 0x401da8
leave
xor eax, eax
ret
leave
jmp sym._shutdown_close_windows.part.0
Function at 0x402310
Capabilities:
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp], str.Usage:_wineboot__options__n
call sym._wine_dbg_printf
mov dword [esp], str.Options__n
call sym._wine_dbg_printf
mov dword [esp], str._____h___help_________Display_this_help_message_n
call sym._wine_dbg_printf
mov dword [esp], str._____e___end_session__End_the_current_session_cleanly_n
call sym._wine_dbg_printf
mov dword [esp], str._____f___force________Force_exit_for_processes_that_dont_exit_cleanly_n
call sym._wine_dbg_printf
mov dword [esp], str._____i___init_________Perform_initialization_for_first_Wine_instance_n
call sym._wine_dbg_printf
mov dword [esp], str._____k___kill_________Kill_running_processes_without_any_cleanup_n
call sym._wine_dbg_printf
mov dword [esp], str._____r___restart______Restart_only__dont_do_normal_startup_operations_n
call sym._wine_dbg_printf
mov dword [esp], str._____s___shutdown_____Shutdown_only__dont_reboot_n
call sym._wine_dbg_printf
mov dword [esp], str._____u___update_______Update_the_wineprefix_directory_n
call sym._wine_dbg_printf
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]

Function at 0x4023a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
cmp word [ecx], 0
je 0x4023f0
mov ebx, ecx
nop
add ebx, 2
cmp word [ebx], 0
jne 0x4023b0
sub ebx, ecx
add ebx, 2
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, dword [ebp - 4]
sub esp, 0x18
leave
ret
mov ebx, 2
jmp 0x4023be
Function at 0x402450
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea ebx, [eax + esi]
test cl, cl
je 0x4024ad
cmp esi, dword [ebp + 0x10]
jae 0x4024ad
xor esi, esi
movzx edi, cl
mov ecx, esi
lea esi, [esi]
cmp byte [ebx], 0
je 0x4024ad
add ecx, 1
cmp ecx, edi
je 0x4024e8
mov esi, ebx
sub esi, eax
cmp dword [ebp + 0x10], esi
jbe 0x4024a1
lea esi, [esi]
add ebx, 1
mov esi, ebx
sub esi, eax
cmp dword [ebp + 0x10], esi
jbe 0x4024a1
cmp byte [ebx], 0
jne 0x402490
add ebx, 1
mov esi, ebx
sub esi, eax
cmp dword [ebp + 0x10], esi
ja 0x402478
xor esi, esi
mov ecx, 0x40a3fc
mov eax, dword [ebp - 0x1c]
call sym._set_reg_value
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [sym.imp.kernelbase.dll_MultiByteToWideChar]
mov dword [ebp - 0x20], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x24], eax
call eax
mov edi, eax
sub esp, 0x18
lea ecx, [edi + edi]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
mov edx, dword [ebp - 0x20]
sub esp, 0xc
test eax, eax
mov esi, eax
je 0x4024af
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call eax
mov edx, dword [ebp - 0x20]
mov ecx, esi
sub esp, 0x18
jmp 0x4024b4
Function at 0x4026d0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x83c
mov dword [esp + 0x14], 0x8000
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], 1
mov dword [esp + 4], 0x7f05
mov dword [esp], 0
call dword [0x41757c]
mov edi, dword [0x41758c]
sub esp, 0x18
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x170
mov dword [esp + 4], 1
mov dword [esp], eax
call edi
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x818]
sub esp, 0x14
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], 0xd
mov dword [esp + 4], 2
mov dword [esp], eax
call edi
sub esp, 0x14
cmp word [ebp - 0x818], 0
je 0x402858
lea edx, [ebp - 0x818]
mov ebx, edx
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x402788
sub ebx, edx
sar ebx, 1
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x4027b0
nop
add eax, 2
cmp word [eax], 0
jne 0x4027a0
sub eax, dword [ebp + 0x14]
sar eax, 1
add ebx, eax
add ebx, 1
mov dword [esp + 4], 0
lea eax, [ebx + ebx]
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x81c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapAlloc]
lea edx, [ebp - 0x818]
mov esi, eax
mov eax, dword [ebp + 0x14]
sub esp, 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sym._swprintf
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xc
mov dword [esp + 4], 2
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x81c]
sub esp, 0x14
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernelbase.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
xor ebx, ebx
jmp 0x402795
Function at 0x4047f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x404848
cmp byte [esi + ebx - 1], 0xa
je 0x40481c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4164e4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x404ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x405078
mov edi, dword [0x4164e4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x404f87
test byte [0x409100], 8
jne 0x405020
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x409110], 8
jne 0x404fe0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x404f29
cmp esi, 3
jbe 0x404f98
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x404f3a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x412410]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x404f29
mov dword [esp], 0x409110
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x404f00
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x404f00
mov dword [esp], 0x409100
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x404eeb
call dword [sym.imp.kernelbase.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x404ef3
mov eax, 0xffffffff
jmp 0x404f87

Function at 0x405160
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__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 sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x218c3855
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x76950cfe
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219