joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406715
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 1
jne 0x406778
mov dword [ebp - 0x18], 0x71
mov dword [esp], 0x34f8
call sym._malloc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x40676e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax*4 + 0x41f5a0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strcat
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jl 0x406751
jmp 0x4067e7
cmp dword [ebp + 8], 2
jne 0x4067c4
mov dword [ebp - 0x18], 0x778
mov dword [esp], 0x38040
call sym._malloc
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
jmp 0x4067ba
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x41f780]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._strcat
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x40679d
jmp 0x4067e7
cmp dword [ebp + 8], 3
jne 0x4067d8
mov dword [esp], str.Noddy
call sym._puts
jmp 0x4067e7
mov dword [ebp - 0x1c], str.Pass_an_int_between_1_and_3
mov eax, dword [ebp - 0x1c]
jmp 0x406873
mov dword [esp], str.twatter_make_a_fadoong_n
call sym._puts
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._creator_func
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40681e
mov dword [esp], str.Create_batch_failed
call sym._puts
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.powershell_Set_ItemProperty__Path__s__Name_Attributes__Value___System.IO.FileAttributes_::Hidden_
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._sprintf_8
lea eax, [ebp - 0x218]
mov dword [esp], eax
call sym._system
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x406870
mov dword [esp], str.Set_attribute_of_file_to_hidden
call sym._puts
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x4068e1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
mov dword [esp + 4], 0x43afe0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40691e
mov dword [esp], str.Error_opening_file
call sym._perror
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._rewind
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 0
jmp 0x406a80
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s.part_d
lea eax, [ebp - 0x154]
mov dword [esp], eax
call sym._sprintf_9
mov dword [esp + 4], 0x43b000
lea eax, [ebp - 0x154]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4069c6
mov dword [esp], str.Error_creating_output_file
call sym._perror
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp + 0xc]
sub eax, 1
cmp dword [ebp - 0xc], eax
jne 0x4069e1
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 0x18]
sub eax, edx
jmp 0x4069e4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
jmp 0x406a39
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x554]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x24]
je 0x406a30
mov dword [esp], str.Error_writing_to_output_file
call sym._perror
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x406a71
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x554]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4069e9
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jl 0x406968
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
nop
leave
ret
Function at 0x406a9a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
mov dword [esp + 4], 0x43b000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x406ad7
mov dword [esp], str.Error_creating_output_file
call sym._perror
mov dword [esp], 1
call sym._exit
mov dword [ebp - 0xc], 0
jmp 0x406bdb
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s.part_d
lea eax, [ebp - 0x480]
mov dword [esp], eax
call sym._sprintf_9
lea eax, [ebp - 0x480]
mov dword [esp + 4], eax
mov dword [esp], str.Processing:_s_n
call sym._printf_8
mov dword [esp + 4], 0x43afe0
lea eax, [ebp - 0x480]
mov dword [esp], eax
call sym._fopen
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x406b9e
mov dword [esp], str.Error_opening_input_file
call sym._perror
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
lea eax, [ebp - 0x41c]
mov dword [esp], eax
call sym._fwrite
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
je 0x406b9e
mov dword [esp], str.Error_writing_to_output_file
call sym._perror
mov dword [esp], 1
call sym._exit
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x41c]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x406b57
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._fclose
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jl 0x406ae3
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._fclose
nop
leave
ret
Function at 0x40737c
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
add eax, 2
mov edx, 0xaaaaaaab
mul edx
mov eax, edx
shr eax, 1
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4073ba
mov eax, 0
jmp 0x407539
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
jmp 0x4074dc
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x4073eb
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x4073f0
mov eax, 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x407411
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x407416
mov eax, 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jae 0x407437
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
jmp 0x40743c
mov eax, 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
shl eax, 0x10
mov edx, eax
mov eax, dword [ebp - 0x20]
shl eax, 8
add edx, eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
shr eax, 0x12
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x43b080]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
shr eax, 0xc
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x43b080]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
shr eax, 6
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x43b080]
mov byte [edx], al
mov eax, dword [ebp - 0x28]
and eax, 0x3f
mov ecx, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
add edx, eax
movzx eax, byte [ecx + 0x43b080]
mov byte [edx], al
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jb 0x4073cd
mov ecx, dword [ebp + 0xc]
mov edx, 0xaaaaaaab
mov eax, ecx
mul edx
mov eax, edx
shr eax, 1
mov edx, eax
add edx, edx
add edx, eax
mov eax, ecx
sub eax, edx
cmp eax, 1
je 0x40750e
cmp eax, 2
je 0x40751c
jmp 0x40752b
mov eax, dword [ebp - 0x14]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0x3d
mov eax, dword [ebp - 0x14]
lea edx, [eax - 2]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0x3d
nop
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add eax, edx
mov byte [eax], 0
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x40cf68
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x10], 0x28
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._malloc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40cf9a
mov dword [esp], str.Unable_to_allocate_memory_for_the_reply_buffer._n
call sym._printf_10
jmp 0x40d0e5
call sym._IcmpCreateFile_0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40cfd6
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.IcmpCreateFile_returned_an_error:__ld_n
call sym._printf_10
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
jmp 0x40d0e5
mov dword [ebp - 0xc], 0
jmp 0x40d0b9
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_inet_addr]
call eax
sub esp, 4
mov dword [esp + 0x1c], 0x3e8
mov edx, dword [ebp - 0x10]
mov dword [esp + 0x18], edx
mov edx, dword [ebp - 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp + 8], str.Data
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._IcmpSendEcho_32
sub esp, 0x20
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x40d07c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + 0x14]
movzx ecx, al
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x20]
movzx eax, word [eax + 0xc]
movzx eax, ax
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Ping_to__s_successful:_bytes_d_time_ldms_TTL_d_n
call sym._printf_10
jmp 0x40d0a4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.Ping_to__s_failed._Error:__ld_n
call sym._printf_10
mov dword [0x442e7c], 1
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
jl 0x40cfe2
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._IcmpCloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._free
mov dword [ebp - 0x14], 0
leave
ret

Function at 0x40d0e7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov dword [ebp - 0xc], 5
cmp dword [ebp - 0xc], 0
jg 0x40d104
mov eax, 1
jmp 0x40d14d
lea eax, [ebp - 0x1a0]
mov dword [esp + 4], eax
mov dword [esp], 0x202
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40d12f
mov eax, 1
jmp 0x40d14d
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._pingit
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, dword [0x442e7c]
leave
ret
Function at 0x40d410
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40d470
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x442eb0]
test esi, esi
jle 0x40d590
mov eax, dword [0x442eb4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40d4a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40d527
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40d490
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40d5b7
mov eax, dword [0x442eb4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x442eb4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40d597
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40d520
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40d530
add dword [0x442eb0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x442eb4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40d520
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40d4ae
mov eax, dword [0x442eb4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x40dad0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x442ecc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x442ec4]
sub esp, 4
test ebx, ebx
je 0x40db25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40db1e
test esi, esi
je 0x40db1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40db00
mov dword [esp], 0x442ecc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40de60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40de85
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40de90
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40de85
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x40ded8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40dece
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40deda
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40dec0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40e300
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [esp + 0x150]
call sym.__errno
mov dword [eax], 0
test ebx, ebx
je 0x40e480
cmp byte [ebx], 0
je 0x40e448
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x40e490
test al, 0x10
je 0x40e448
lea esi, [esp + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sym.__fullpath
mov dword [esp], esi
call sym._strlen
mov dword [esp + 0x1c], eax
mov ebx, eax
lea eax, [eax + 0x233]
mov dword [esp], eax
call sym._malloc
mov edx, eax
test eax, eax
je 0x40e49f
lea ebp, [eax + 0x22c]
lea eax, [ebx + 1]
cmp eax, 4
jb 0x40e420
mov ecx, dword [esp + eax + 0x28]
mov edi, ebp
mov dword [ebp + eax - 4], ecx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
cmp byte [edx + 0x22c], 0
je 0x40e3ca
movzx ecx, byte [edx + ebx + 0x22b]
cmp cl, 0x5c
je 0x40e3ca
cmp cl, 0x2f
jne 0x40e468
mov eax, dword [esp + 0x1c]
mov ecx, 0x2a
lea ebx, [edx + 0x120]
mov edi, ebx
mov word [ebp + eax], cx
xor eax, eax
mov ecx, 0x41
mov dword [edx + 0x224], 0xffffffff
mov dword [edx + 0x228], 0
mov dword [edx + 0x118], 0
mov dword [edx + 0x11c], 0
rep stosd dword es:[edi], eax
add esp, 0x13c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
test eax, eax
je 0x40e3ab
movzx ecx, byte [esp + 0x2c]
mov byte [ebp], cl
test al, 2
je 0x40e3ab
movzx ecx, word [esp + eax + 0x2a]
mov word [ebp + eax - 2], cx
jmp 0x40e3ab
call sym.__errno
xor edx, edx
mov dword [eax], 0x14
add esp, 0x13c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, 0x5c
mov dword [esp + 0x1c], eax
mov word [ebp + ebx], si
jmp 0x40e3ca
call sym.__errno
xor edx, edx
mov dword [eax], 0xe
jmp 0x40e455
call sym.__errno
xor edx, edx
mov dword [eax], 2
jmp 0x40e455
call sym.__errno
xor edx, edx
mov dword [eax], 0xc
jmp 0x40e455
Function at 0x401331
Capabilities:
Encode data using xor

Disassembly:
sub dword [eax], 0xafba473f
jmp 0x401304
call 0x401331
invalid
jne 0x401160
jae 0x401343
and cl, byte [ebp - 0x67]
fmul qword [edi + 0x32]
add al, 0x8b
mov cl, 0xfe
pop es
mov dl, bh
pushal
cmpsd dword [esi], dword es:[edi]
lahf
add ah, ah
dec esi
push ebp
push ds
push ss
inc esp
hlt
add edx, 0xffffffff
clc
jae 0x4011b3
mov word [edx], es
retf
cmp dword [esi], 0
stc
jmp 0x401360
add dword [edi], 0xffffffff
clc
jae 0x401371
inc esi
inc esi
outsd dx, dword [esi]
scasb al, byte es:[edi]
xor cl, byte [edi + 0x288fda9]
aaa
fild word [ecx - 0x7df00175]
push 1
add byte [eax], al
mov edi, esi
jb 0x4013a8
add cl, cl
push edx
in al, dx
sub edi, dword [ebx]
rcl byte [esi + 0x5b], cl
push esi
pop ebx
jae 0x4013c6
invalid
push dword [esi]
pop eax
jmp 0x40140f
jmp 0x403c81
pop ecx
pop ebx
pop eax
pop edi
pop esi
pop edx
clc
jae 0x401280
outsd dx, dword [esi]
arpl si, cx
in al, dx
out 0xaa, al
xor eax, 0x30507f41
retf 0x6ab8
shr ah, 0x31
jb 0x4012f8
jbe 0x401330
mov dh, 0x1c
mov ebx, 0xcea1299c
push edx
push esi
push edi
and edx, 0
push eax
push ebx
push ecx
je 0x401199
xchg ebx, eax
or dl, byte [ebx + 0x41186b7a]
mov byte es:[ebp - 0x545a039f], bl
dec ecx
dec ebx
out 0xa6, al
bound ebp, qword [ecx]
adc al, 2
fstp dword [edi + ebp*8 + 0x4e]
add bl, cl
pop esp
out dx, eax
dec esi
xchg edi, eax
jnp 0x4012c6
jb 0x401376
push eax
inc esi
add eax, 4
jmp 0x4011e1
sub esi, 0x7a
jmp 0x401211
cwde
pop esi
jmp 0x401315
stc
adc esi, 7
jmp 0x40121f
je 0x4012a4
jb 0x401236
dec esi
add ecx, dword [edi - 0x21]
leave
jne 0x401263
dec dword [edi]
or eax, 0xfffffffe
invalid
jae 0x401245
or cl, dh
jns 0x401377
shr ch, 0xf4
push 0xf1a90e5
jecxz 0x401389
pavgw mm7, mm5
invalid
stc
sbb esi, 0xfffffffb
jmp 0x401263
call fcn.0040141d
jmp 0x4012a4
push dword [esi + 4]
pop edx
jmp 0x401160
add eax, esi
jmp 0x4013fb
popfd
inc ebp
pushfd
test eax, 0xb1a02346
xchg dword [edx - 0x567cce9], edi
scasd eax, dword es:[edi]
mov dword [0x3fafbae8], eax
inc edi
or dl, byte [eax + ecx*8]
insb byte es:[edi], dx
mov edx, 0x3d473faf
pushfd
xchg edi, eax
lcall 0xafa2, 0xacc80710
push esp
invalid
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x401163
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, eax
mov ebx, dword [esp + 4]
mov eax, ebx
add eax, 0
add eax, ecx
sub eax, 1
push ebx
mov al, byte [eax]
rol al, 1
mov edx, 0xf8
xor al, dl
push eax
pop ebx
mov edx, dword [esp + 0xc]
push edx
pop eax
add eax, ecx
mov byte [eax - 1], bl
pop ebx
loop 0x40116d
ret 0xc