joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e10
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
push edi
mov edi, 1
push esi
push ebx
sub esp, 0x37c
mov eax, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebp, dword [esp + 0x390]
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp], ebx
mov dword [esp + 4], ebp
call eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0x10], eax
call eax
mov esi, eax
sub eax, 2
sub esp, 4
cmp eax, 0xff
ja 0x403efc
cmp byte [ebp + esi - 1], 0x5c
je 0x403ff4
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 4], 0x4081d7
add esi, 1
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call eax
sub esp, 8
lea eax, [esp + 0x230]
mov dword [esp], ebx
xor edi, edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
sub esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + esi + 0x28], 0
je 0x403efc
lea ebp, [esp + 0x25c]
mov dword [esp], ebp
call dword [esp + 0x10]
add eax, esi
sub esp, 4
cmp eax, 0x103
jbe 0x403f40
mov edi, 1
lea eax, [esp + 0x230]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub esp, 8
test eax, eax
jne 0x403eb5
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
sub esp, 4
test eax, eax
jne 0x403f2d
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov edi, 1
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
sub esp, 0xc
add esp, 0x37c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x12c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [esp + 0x18]
sub esp, 8
lea eax, [esp + 0x12c]
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [esp + 0x1c]
sub esp, 8
mov dword [esp + 4], 0x4081da
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
sub esp, 8
test eax, eax
je 0x403ecd
mov dword [esp + 4], 0x4081dc
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
sub esp, 8
test eax, eax
je 0x403ecd
test byte [esp + 0x230], 0x10
lea eax, [esp + 0x12c]
mov dword [esp], eax
jne 0x404012
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
test eax, eax
jne 0x403ecd
lea eax, [esp + 0x12c]
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov edi, 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
sub esp, 0xc
jmp 0x403ecd
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp + 4], 0x4081d5
mov dword [esp], ebx
mov dword [esp + 0x1c], eax
call eax
sub esp, 8
jmp 0x403e87
call fcn.00403e10
test eax, eax
mov eax, 1
cmove edi, eax
jmp 0x403ecd
Function at 0x4040f0
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x36c
lea edi, [esp + 0x18]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub esp, 8
mov ebx, eax
cmp byte [esp + eax + 0x17], 0x5c
je 0x404132
mov dword [esp + 4], 0x40807c
mov dword [esp], edi
add ebx, 1
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 8
mov dword [esp + 4], str..ocra_delete_me
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 8
lea eax, [esp + 0x220]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
sub esp, 8
cmp eax, 0xffffffff
mov ebp, eax
je 0x4041fe
mov byte [esp + ebx + 0x18], 0
lea ebx, [esp + 0x11c]
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
sub esp, 8
lea eax, [esp + 0x24c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esp, 4
mov esi, eax
mov dword [esp], 0x4081df
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub esp, 4
sub esi, eax
mov byte [esp + esi + 0x11c], 0
mov dword [esp], ebx
call fcn.004040c0
lea eax, [esp + 0x220]
mov dword [esp], ebp
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
sub esp, 8
test eax, eax
jne 0x404174
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 4
add esp, 0x36c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404210
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x20]
jmp 0x40423e
mov eax, dword [esi]
mov edi, dword [eax]
add eax, 4
mov dword [esi], eax
cmp edi, 8
ja 0x404260
mov dword [esp], esi
call dword [edi*4 + 0x407040]
test eax, eax
mov ebx, eax
je 0x40424d
mov ebx, dword [0x40b03c]
test ebx, ebx
je 0x404220
mov ebx, 1
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.FATAL_ERROR:
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edi
mov dword [esp + 4], str.Invalid_opcode__lu.
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
ret
Function at 0x4042d0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
lea esi, [ebx + eax - 4]
mov eax, dword [esi]
cmp dword [0x4084bc], eax
jne 0x404352
mov eax, dword [0x40b038]
test eax, eax
jne 0x404310
add ebx, dword [esi - 4]
lea eax, [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 0x1c], ebx
call fcn.00404210
add esp, 0x24
pop ebx
pop esi
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x15
mov dword [esp + 4], 1
mov dword [esp], str.Good_signature_found.
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
jmp 0x4042f4
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.FATAL_ERROR:
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 1
mov dword [esp], str.Bad_signature_in_executable.
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x24
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4049a0
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push edi
push esi
xor eax, eax
push ebx
mov ecx, 0x10
sub esp, 0x90
lea edx, [esp + 0x50]
mov ebx, dword [esp + 0xa0]
lea esi, [esp + 0x4c]
mov dword [esp + 0x4c], 0x44
mov edi, edx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x404a82
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0x40b040
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
sub esp, 8
test eax, eax
je 0x404af2
mov eax, dword [esp + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call ebx
sub esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp], eax
call ebx
sub esp, 4
add esp, 0x90
pop ebx
pop esi
pop edi
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.FATAL_ERROR:
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Failed_to_create_process___s_:__lu
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x90
pop ebx
pop esi
pop edi
ret
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0xd
mov dword [esp + 4], 1
mov dword [esp], str.FATAL_ERROR:
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 4], str.Failed_to_get_exit_status__error__lu_.
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
jmp 0x404a5a
Function at 0x4056c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00405720

Function at 0x405720
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x40b3c0]
test esi, esi
jle 0x405813
mov edi, dword [0x40b3c4]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x405754
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40580c
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x405740
mov dword [esp], eax
mov esi, eax
call fcn.00406020
test eax, eax
mov edi, eax
je 0x405850
mov esi, dword [0x40b3c4]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call fcn.00406130
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x40b3c4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x405830
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x405805
sub eax, 4
and eax, 0xfffffffb
je 0x405805
add ebx, dword [0x40b3c4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40581a
add dword [0x40b3c0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x40575e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004056c0
mov eax, dword [0x40b3c4]
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 fcn.004056c0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004056c0
Function at 0x405c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40b3d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40b3d0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x405ce5
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 0x405cde
test esi, esi
je 0x405cde
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x405cc0
mov dword [esp], 0x40b3d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4659a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x457015
lea edi, [esi - 0x56015]
push edi
or ebp, 0xffffffff
jmp 0x4659c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4659c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4659b8
mov eax, 1
add ebx, ebx
jne 0x4659db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4659d0
jne 0x4659ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4659d0
xor ecx, ecx
sub eax, 3
jb 0x465a00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x465a72
mov ebp, eax
add ebx, ebx
jne 0x465a0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x465a18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x465a3c
inc ecx
add ebx, ebx
jne 0x465a28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x465a1d
jne 0x465a39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x465a1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x465a5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x465a4d
jmp 0x4659be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x465a5c
add edi, ecx
jmp 0x4659be
pop esi
mov edi, esi
mov ecx, 0x33e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x465a7a
cmp byte [edi], 0
jne 0x465a7a
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 eax, ebx
loop 0x465a7f
lea edi, [esi + 0x63000]
mov eax, dword [edi]
or eax, eax
je 0x465aee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x651f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x65254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x465aac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x65258]
or eax, eax
je 0x465ae8
mov dword [ebx], eax
add ebx, 4
jmp 0x465ac9
call dword [esi + 0x6525c]
popal
jmp 0x40da18

Function at 0x43cf4c
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43ccda
add eax, 0xd0b13db3
call fcn.0043cf6c
xor dword [esi], edi
inc esi
cmp esi, edx
jne fcn.0043cf4c
or ecx, ecx
add ecx, 0xae384e14
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x45b93c53
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section._RDATA
mov ebx, 0x42cd70
nop
mov ecx, 0x1ecd5721
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40121a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401243
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40123b
cmp al, 0x22
jne 0x40122f
cmp byte [esi], 0x22
jne 0x40124d
inc esi
jmp 0x40124d
cmp al, 0x20
jle 0x40124d
inc esi
cmp byte [esi], 0x20
jg 0x401247
mov al, byte [esi]
test al, al
je 0x401257
cmp al, 0x20
jle 0x401240
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401bda
push 0x403004
push section..data
call fcn.00401bc0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x401287
movzx eax, word [ebp - 0x14]
jmp 0x40128a
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401bf2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4013d0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40334c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401401
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319d]
mov dword [ebp - 0x48], eax
mov eax, 0x4018d6
mov dword [ebp - 0x54], eax
mov ecx, str.secondclass
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ecx, ecx
push ecx
push dword [0x40319d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bytesma
push eax
mov eax, 0x4030f5
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403398], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403398]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4014b5
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4014a7
mov esp, ebp
ret

Function at 0x4022df
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x4022e2
imul ebp, dword [ebp + 0x5a], 0xffffffdd
jmp fcn.004022cd
Function at 0x40ed73
Capabilities:
Encode data using xor

Disassembly:
push 0x40eae0
pop ecx
call fcn.0040eda5
mov edi, 0x690d0b1f
and eax, edi
xor dword [esi], ecx
inc esi
add eax, 0x30ef8b25
add eax, 0x354845b5
cmp esi, ebx
jne fcn.0040ed73
sub eax, 0x6e35de9e
add edi, 0xf975e1c4
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x401291
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
jle 0x4012dc
push edi
push esi
mov esi, dword [esp + 0xc]
push ebx
lea edi, [eax + 1]
mov eax, dword [0x4051a0]
movzx ebx, byte [esi]
mov cx, word [eax + 0x10324]
mov edx, ecx
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, ch
mov cx, word [eax + edx*2 + 0x10000]
xor cx, bx
inc esi
dec edi
mov word [eax + 0x10324], cx
jne 0x4012a6
pop ebx
pop esi
pop edi
mov eax, dword [0x4051a0]
mov ax, word [eax + 0x10324]
ret 8

Function at 0x401619
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0xffffffff
push edi
je 0x401671
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401642
cmp edi, dword [ebp + 0x10]
je 0x401666
mov eax, dword [0x4051a0]
add eax, 0x138b6
push eax
push dword [0x405008]
call fcn.004011b0
push 0
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]
push edi
push dword [ebp + 8]
call fcn.00401291
jmp 0x4016ac
mov ecx, dword [0x4051a0]
cmp byte [ecx + 0x18225], 0
jne 0x4016ac
mov edx, dword [ebp + 0xc]
mov eax, 0x400
cmp edx, eax
ja 0x40168f
lea eax, [edx + 1]
push eax
add ecx, 0x17e25
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [0x4051a0]
mov byte [eax + 0x18225], 1
pop edi
pop ebp
ret 0xc