joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405444
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x40545d
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x405480
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x405485
inc edi
cmp edi, dword [ebp - 4]
jb 0x405477
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x40557d
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x4054dc
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x4054b0
cmp cl, 0xff
jne 0x405507
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x405515
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x40551c
dec ecx
shl edx, cl
and edx, 7
je 0x4054a1
movzx ecx, byte [edx + 0x41c0a8]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x41c0a0], 0
mov cl, byte [ebx + 4]
je 0x405504
test cl, cl
je 0x405504
cmp cl, 0xff
jne 0x4054a1
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x405472
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x405550
movzx esi, byte [edx + 0x41c0a8]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x40553b
cmp al, 0xff
jne 0x40554d
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x4054ce
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x405472
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x405720
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [0x425a88]
mov esi, 0x425a90
sub esi, edi
mov ecx, edi
mov ebx, 4
lea ecx, [ecx]
mov edx, 4
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
dec edx
jne 0x405745
dec ebx
jne 0x405740
mov esi, 0x425aa0
mov dword [ebp - 8], 9
lea ecx, [ecx]
mov ebx, edi
mov dword [ebp - 4], 4
lea esp, [esp]
mov ecx, ebx
mov edx, 4
jmp 0x405780
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x41c0b0]
mov byte [ecx - 4], al
dec edx
jne 0x405780
inc ebx
dec dword [ebp - 4]
jne 0x405770
movzx eax, byte [edi + 5]
mov cl, byte [edi + 1]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov byte [edi + 0xb], al
mov byte [edi + 7], cl
call fcn.00405bb0
mov eax, edi
mov ebx, 4
mov edx, 4
lea esp, [esp]
mov cl, byte [esi]
xor byte [eax], cl
inc esi
inc eax
dec edx
jne 0x405800
dec ebx
jne 0x4057f4
dec dword [ebp - 8]
jne 0x405760
mov esi, edi
lea ebx, [edx + 4]
lea ebx, [ebx]
mov ecx, esi
mov edx, 4
jmp 0x405830
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x41c0b0]
mov byte [ecx - 4], al
dec edx
jne 0x405830
inc esi
dec ebx
jne 0x405820
movzx eax, byte [edi + 5]
mov cl, byte [edi + 1]
mov byte [edi + 1], al
movzx eax, byte [edi + 9]
mov byte [edi + 5], al
movzx eax, byte [edi + 0xd]
mov byte [edi + 9], al
movzx eax, byte [edi + 0xa]
mov byte [edi + 0xd], cl
mov cl, byte [edi + 2]
mov byte [edi + 2], al
movzx eax, byte [edi + 0xe]
mov byte [edi + 0xa], cl
mov cl, byte [edi + 6]
mov byte [edi + 6], al
movzx eax, byte [edi + 0xf]
mov byte [edi + 0xe], cl
mov cl, byte [edi + 3]
mov byte [edi + 3], al
movzx eax, byte [edi + 0xb]
mov byte [edi + 0xf], al
movzx eax, byte [edi + 7]
mov edx, 0x425b30
mov byte [edi + 0xb], al
mov byte [edi + 7], cl
sub edx, edi
lea esi, [ebx + 4]
mov ecx, 4
mov al, byte [edx + edi]
xor byte [edi], al
inc edi
dec ecx
jne 0x4058a5
dec esi
jne 0x4058a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405a80
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x425a8c]
push ebx
movzx eax, byte [ecx]
mov byte [0x425a90], al
movzx eax, byte [ecx + 1]
mov byte [0x425a91], al
movzx eax, byte [ecx + 2]
mov byte [0x425a92], al
movzx eax, byte [ecx + 3]
mov byte [0x425a93], al
movzx eax, byte [ecx + 4]
mov byte [0x425a94], al
movzx eax, byte [ecx + 5]
mov byte [0x425a95], al
movzx eax, byte [ecx + 6]
mov byte [0x425a96], al
movzx eax, byte [ecx + 7]
mov byte [0x425a97], al
movzx eax, byte [ecx + 8]
mov byte [0x425a98], al
movzx eax, byte [ecx + 9]
mov byte [0x425a99], al
movzx eax, byte [ecx + 0xa]
mov byte [0x425a9a], al
movzx eax, byte [ecx + 0xb]
mov byte [0x425a9b], al
movzx eax, byte [ecx + 0xc]
mov byte [0x425a9c], al
movzx eax, byte [ecx + 0xd]
mov byte [0x425a9d], al
movzx eax, byte [ecx + 0xe]
mov byte [0x425a9e], al
movzx eax, byte [ecx + 0xf]
mov byte [0x425a9f], al
mov ebx, 4
mov eax, 0x425a9d
mov cl, byte [eax]
mov ch, byte [eax + 1]
mov dh, byte [eax + 2]
mov dl, byte [eax - 1]
mov byte [ebp - 2], cl
mov byte [ebp - 1], ch
mov byte [ebp - 3], dh
test bl, 3
jne 0x405b7d
movzx ecx, cl
movzx edx, dl
mov cl, byte [ecx + 0x41c0b0]
mov dh, byte [edx + 0x41c0b0]
mov byte [ebp - 4], cl
movzx ecx, byte [ebp - 1]
mov dl, byte [ebp - 4]
mov cl, byte [ecx + 0x41c0b0]
mov byte [ebp - 2], cl
movzx ecx, byte [ebp - 3]
mov cl, byte [ecx + 0x41c0b0]
mov byte [ebp - 1], cl
mov ecx, ebx
shr ecx, 2
xor dl, byte [ecx + 0x41c2b0]
mov ch, byte [ebp - 1]
mov cl, byte [eax - 0xd]
xor cl, dl
mov byte [eax + 3], cl
mov cl, byte [eax - 0xc]
xor cl, byte [ebp - 2]
inc ebx
mov byte [eax + 4], cl
mov cl, byte [eax - 0xb]
xor cl, ch
mov byte [eax + 5], cl
mov cl, byte [eax - 0xa]
xor cl, dh
mov byte [eax + 6], cl
add eax, 4
cmp ebx, 0x2c
jb 0x405b24
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x425a88]
push ebx
push esi
add ecx, 2
mov esi, 4
mov dl, byte [ecx + 1]
mov bh, byte [ecx]
mov al, byte [ecx - 2]
mov bl, byte [ecx - 1]
mov dh, dl
mov byte [ebp - 2], al
mov byte [ebp - 3], dl
xor dh, bh
mov dl, dh
xor dl, al
xor dl, bl
mov byte [ebp - 1], dl
mov dl, al
xor dl, bl
mov al, dl
shr al, 7
mov ah, 0x1b
imul ah
add dl, dl
xor al, dl
xor al, byte [ebp - 2]
mov dl, bl
xor al, byte [ebp - 1]
xor dl, bh
mov byte [ecx - 2], al
mov al, dl
shr al, 7
mov ah, 0x1b
imul ah
add dl, dl
xor al, dl
xor al, bl
mov bl, byte [ebp - 1]
xor al, bl
mov byte [ecx - 1], al
mov al, dh
shr al, 7
mov dl, 0x1b
imul dl
mov dl, byte [ebp - 3]
xor dl, byte [ebp - 2]
add dh, dh
xor al, dh
xor al, bh
xor al, bl
mov byte [ecx], al
mov al, dl
shr al, 7
mov ah, 0x1b
imul ah
add dl, dl
xor al, dl
xor al, byte [ebp - 3]
lea ecx, [ecx + 4]
xor al, bl
mov byte [ecx - 3], al
dec esi
jne 0x405bc4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405f10
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
pop ebp
ret
Function at 0x407cde
Capabilities:
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
cmp dword [0x425418], 0
push esi
push edi
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
je 0x407d07
push dword [0x42541c]
call dword [sym.imp.KERNEL32.DLL_Wow64RevertWow64FsRedirection]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
xor ecx, ecx
push 0x14
mov word [esi + eax*2 + 2], cx
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [0x425418], 0
mov edi, eax
je 0x407d49
push 0x42541c
call dword [sym.imp.KERNEL32.DLL_Wow64DisableWow64FsRedirection]
test edi, edi
je 0x407d5c
push esi
push edi
push str.Exception:_SHFileOperation_failed__0x_X__:__s
call fcn.00407e9b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
inc eax
neg eax
pop edi
sbb eax, eax
inc eax
pop esi
leave
ret

Function at 0x407da2
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x424064]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x407e1c
push esi
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop esi
test eax, eax
jne 0x407e1c
push 0x80040002
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x407e1c
xor eax, eax
inc eax
jmp 0x407e1e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a558
leave
ret

Function at 0x407e2a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x3c
xor edi, edi
lea eax, [ebp - 0x3c]
push edi
push eax
call fcn.0040b3e0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
test eax, eax
jne 0x407e82
leave
ret
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
leave
ret
Function at 0x407e9b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2018
call fcn.0040a570
mov eax, dword [0x424064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push str.c:LiuInstall.log
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407f87
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x7ff
push eax
call fcn.00407f9b
add esp, 0x14
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
lea eax, [ebp - 0x1004]
push eax
movzx eax, word [ebp - 0x2008]
push eax
movzx eax, word [ebp - 0x200a]
push eax
movzx eax, word [ebp - 0x200c]
push eax
movzx eax, word [ebp - 0x200e]
push eax
movzx eax, word [ebp - 0x2012]
push eax
movzx eax, word [ebp - 0x2014]
push eax
lea eax, [ebp - 0x2004]
push str._02d__02d__02d__02d:_02d:_02d_____s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov dword [ebp - 0x2018], eax
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push edi
lea eax, [ebp - 0x2018]
push eax
mov eax, dword [ebp - 0x2018]
add eax, eax
push eax
lea eax, [ebp - 0x2004]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040a558
leave
ret

Function at 0x40864c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x424064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push 0x14
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x1e
lea eax, [ebp - 0x68]
push eax
push 0x8f
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x124
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x4086ab
push 1
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040a558
leave
ret
Function at 0x40a084
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, dword [ebp + 8]
jae 0x40a0cd
push ebx
xor ebx, ebx
jmp 0x40a0ae
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x40a09a
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, dword [ebp + 8]
jb 0x40a0ae
pop ebx
leave
ret
Function at 0x40a0cf
Capabilities:
Check if file exists
Create directory
Delete file
Extract resource via kernel32 functions
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x20c]
mov ebx, 0x425640
push ebx
push 0x424fe8
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a187
lea eax, [ebp - 0x20c]
push eax
call fcn.00407cde
pop ecx
test eax, eax
jne 0x40a187
push 0x65
pop esi
push esi
push str.LiuPack
push str._s__d_
push ebx
call edi
push ebx
push 0x424fe8
lea eax, [ebp - 0x20c]
push str._s_s
push eax
call edi
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40a187
inc esi
cmp esi, 0xc8
jle 0x40a12d
lea eax, [ebp - 0x20c]
push eax
push str.Error:_UnpackFiles___01____s
call fcn.00407e9b
pop ecx
pop ecx
xor eax, eax
jmp 0x40a2db
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
lea eax, [ebp - 0x20c]
push eax
jne 0x40a1a9
push str.Error:_UnpackFiles___02____s
jmp 0x40a179
lea eax, [ebp - 0x414]
push str._sliupack
push eax
call edi
add esp, 0xc
push 0x41b4bc
push 0x8a
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
test esi, esi
je 0x40a280
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
mov edi, eax
push ebx
mov dword [ebp - 0x418], edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40a280
push ebx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
je 0x40a279
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ecx, eax
mov dword [ebp - 0x424], ecx
cmp ecx, 0xffffffff
je 0x40a279
push 0
lea eax, [ebp - 0x41c]
shr edi, 1
push eax
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
sub eax, edi
add eax, dword [ebp - 0x418]
push edi
push eax
push ecx
call esi
push 0
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebp - 0x418]
sub eax, edi
mov edi, dword [ebp - 0x424]
push eax
push dword [ebp - 0x420]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeResource]
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40a2a3
lea eax, [ebp - 0x414]
push eax
push str.Error:_UnpackFiles___03____s
jmp 0x40a179
lea eax, [ebp - 0x20c]
push eax
push str.liupack
call section..text
pop ecx
pop ecx
test eax, eax
jne 0x40a2cb
lea eax, [ebp - 0x20c]
push eax
push str.Error:_UnpackFiles___04____s
jmp 0x40a179
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a558
leave
ret
Function at 0x40a314
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x424064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x11c
push ebx
mov dword [esi], eax
push eax
mov dword [edi], eax
lea eax, [ebp - 0x120]
push eax
call fcn.0040b3e0
add esp, 0xc
mov dword [ebp - 0x120], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call ebx
test eax, eax
jne 0x40a383
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call ebx
test eax, eax
jne 0x40a383
xor al, al
jmp 0x40a514
mov eax, dword [ebp - 0x110]
sub eax, 1
je 0x40a4bd
sub eax, 1
jne 0x40a50a
mov eax, dword [ebp - 0x11c]
sub eax, 3
je 0x40a4b5
sub eax, 1
je 0x40a4ad
sub eax, 1
je 0x40a44e
sub eax, 1
jne 0x40a50a
mov eax, dword [ebp - 0x118]
xor ecx, ecx
sub eax, ecx
je 0x40a3f8
sub eax, 1
je 0x40a3ee
sub eax, 1
jne 0x40a442
mov eax, 0xd0
lea ecx, [eax - 0x10]
cmp byte [ebp - 6], 1
cmove eax, ecx
mov dword [esi], eax
jmp 0x40a442
mov eax, 0xb0
lea ecx, [eax - 0x10]
jmp 0x40a3e3
cmp byte [ebp - 6], 1
movzx eax, word [ebp - 0xc]
jne 0x40a423
sub eax, ecx
je 0x40a41b
sub eax, 1
je 0x40a413
mov dword [esi], 0x82
jmp 0x40a442
mov dword [esi], 0x81
jmp 0x40a442
mov dword [esi], 0x80
jmp 0x40a442
sub eax, ecx
je 0x40a43c
sub eax, 1
je 0x40a434
mov dword [esi], 0x92
jmp 0x40a442
mov dword [esi], 0x91
jmp 0x40a442
mov dword [esi], 0x90
call fcn.0040a523
mov dword [edi], eax
jmp 0x40a50a
mov eax, dword [ebp - 0x118]
xor ecx, ecx
sub eax, ecx
je 0x40a4a5
sub eax, 1
je 0x40a473
sub eax, 1
jne 0x40a50a
push 0x70
pop eax
push 0x60
pop ecx
jmp 0x40a3e3
movzx eax, word [ebp - 0xc]
sub eax, ecx
je 0x40a49d
sub eax, 1
je 0x40a495
sub eax, 1
je 0x40a48d
mov dword [esi], 0x63
jmp 0x40a50a
mov dword [esi], 0x62
jmp 0x40a50a
mov dword [esi], 0x61
jmp 0x40a50a
mov dword [esi], 0x60
jmp 0x40a50a
mov dword [esi], 0x50
jmp 0x40a50a
mov dword [esi], 0x41
jmp 0x40a50a
mov dword [esi], 0x40
jmp 0x40a50a
cmp dword [ebp - 0x11c], 4
jne 0x40a50a
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x40a4f4
cmp eax, 0xa
je 0x40a4e2
cmp eax, 0x5a
jne 0x40a50a
mov dword [esi], 0x30
jmp 0x40a50a
xor eax, eax
cmp word [ebp - 0x10a], 0x41
sete al
add eax, 0x20
jmp 0x40a508
movzx eax, word [ebp - 0x10a]
xor ecx, ecx
sub eax, 0x42
inc ecx
cmp ecx, eax
sbb eax, eax
add eax, 0x11
mov dword [esi], eax
cmp dword [ebp - 0x110], 2
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a558
leave
ret
Function at 0x405200
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x424708
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
push edi
push eax
mov eax, dword [esp + 0x28]
push 0x429ce8
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x24], esi
call fcn.00404720
mov ebp, dword [esp + 0x30]
mov cl, byte [esp + 0x34]
add esi, 0x2b4
xor ebx, ebx
push ebp
mov dword [esp + 0x20], ebx
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.00418527
mov edi, eax
add esp, 4
cmp edi, 0x7ffffffd
jbe 0x405277
call fcn.00417845
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x40529c
mov al, byte [ecx - 1]
cmp al, bl
je 0x40529c
cmp al, 0xff
je 0x40529c
cmp edi, ebx
jne 0x4052c0
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, esi
call fcn.004034a0
jmp 0x4052ec
cmp edi, ebx
jne 0x4052ab
push 1
mov ecx, esi
call fcn.004034a0
jmp 0x4052ec
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x4052b7
cmp eax, edi
jae 0x4052c8
push 1
mov ecx, esi
call fcn.004034a0
push edi
mov ecx, esi
call fcn.004036d0
mov eax, dword [esi + 4]
cmp edi, ebx
mov ecx, ebp
jbe 0x4052e2
mov edx, edi
mov bp, word [ecx]
add ecx, 2
mov word [eax], bp
add eax, 2
dec edx
jne 0x4052d3
mov edx, dword [esi + 4]
mov dword [esi + 8], edi
mov word [edx + edi*2], bx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov dword [eax + 0x2c4], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax], 0x4255cc
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x4069a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x21c
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 8]
lea ebp, [ebx + 0xc]
push edi
mov ecx, 0x14
xor eax, eax
mov edi, ebp
mov dword [esi], 0
mov dword [esp + 0x14], ebx
rep stosd dword es:[edi], eax
call dword [sym.imp.WINMM.dll_mixerGetNumDevs]
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x406a37
mov ecx, ebx
call fcn.00406da0
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
jne 0x406a2e
mov eax, dword [esi]
push 0x50
push ebp
push eax
call dword [sym.imp.WINMM.dll_mixerGetDevCapsW]
test eax, eax
jne 0x406a2e
mov eax, dword [esi]
test eax, eax
je 0x406a2e
mov ecx, dword [esp + 0x234]
lea edx, [esp + 0x30]
push 0x80000003
push edx
push eax
mov dword [esp + 0x3c], 0x118
mov dword [esp + 0x54], ecx
call dword [sym.imp.WINMM.dll_mixerGetLineInfoW]
test eax, eax
je 0x406a46
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x4069d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret 0xc
mov eax, dword [esp + 0x238]
test eax, eax
je 0x406ac6
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x406ac6
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x34]
xor edi, edi
mov ebp, eax
test eax, eax
jbe 0x406aaf
mov ecx, dword [esi]
lea eax, [esp + 0x30]
push 0x80000001
push eax
push ecx
mov dword [esp + 0x3c], 0x118
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edi
call dword [sym.imp.WINMM.dll_mixerGetLineInfoW]
test eax, eax
jne 0x406aaa
mov edx, dword [esp + 0x238]
lea eax, [esp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406aaf
inc edi
cmp edi, ebp
jb 0x406a6c
cmp edi, ebp
jne 0x406ac2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret 0xc
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
push 0x80000002
lea edx, [esp + 0x14c]
push eax
push ecx
mov dword [esp + 0x24], 0x18
mov dword [esp + 0x2c], 0x20010002
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0xe4
mov dword [esp + 0x38], edx
call dword [sym.imp.WINMM.dll_mixerGetLineControlsW]
test eax, eax
je 0x406b1f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x21c
ret 0xc
mov edx, dword [esp + 0x14c]
pop edi
pop esi
mov dword [ebx + 4], edx
pop ebp
mov eax, 1
pop ebx
add esp, 0x21c
ret 0xc