joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f9a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0041117f
push 0x41dbf8
lea ecx, [ebp - 0xc]
call fcn.0041121e
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404076
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.004111b8
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040164b
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041121e
test byte [ebp - 0x25c], 0x10
je 0x404041
push 0x41dbf4
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x404059
push 0x41dbec
lea eax, [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x404059
push dword [ebp - 0xc]
call fcn.00403f9a
pop ecx
jmp 0x404055
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x4040a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4040a7
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403fe5
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x42425c]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x4040a7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4040a7
push dword [ebp - 0xc]
call fcn.00414ea0
xor eax, eax
inc eax
jmp 0x4040b1
push dword [ebp - 0xc]
call fcn.00414ea0
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4040b7
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x424398], 0
je 0x4040ce
xor eax, eax
inc eax
leave
ret
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4040ea
xor eax, eax
inc eax
jmp 0x40411b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x404114
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404110
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40411b
xor eax, eax
jmp 0x40411b
push esi
call fcn.00403f9a
pop ecx
pop esi
leave
ret
Function at 0x404661
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00410d16
push 2
mov ecx, esi
call fcn.004045af
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
and dword [esi + 4], 0
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
test eax, eax
je 0x4046aa
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.004045af
push eax
push ebx
call edi
mov ecx, esi
call fcn.00404594
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ebx, [eax + 0xf]
lea edi, [eax + eax]
push ebx
mov ecx, esi
call fcn.004045af
push dword [ebp + 8]
add eax, edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, esi
call fcn.00404594
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4046f1
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x4046b7
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x404a61
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov esi, eax
mov dword [ebp - 4], eax
call fcn.0041117f
push 0
lea ecx, [ebp - 0x18]
call fcn.004045af
mov edi, eax
movzx eax, word [ebx + esi*2 - 2]
cmp eax, 0x5c
je 0x404a9d
cmp eax, 0x2f
jne 0x404acb
xor eax, eax
mov word [edi + esi*2 - 2], ax
dec esi
mov dword [ebp - 4], esi
jmp 0x404acb
movzx eax, word [edi + esi*2]
cmp eax, 0x2f
je 0x404abd
cmp eax, 0x5c
je 0x404abd
dec esi
test esi, esi
jg 0x404aaa
test esi, esi
je 0x404b6f
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.004031fa
pop ecx
test eax, eax
je 0x404ab9
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x404b02
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004047ca
pop ecx
pop ecx
test eax, eax
je 0x404b02
xor esi, esi
jmp 0x404b92
push edi
call fcn.004031fa
pop ecx
test eax, eax
jne 0x404b5c
push edi
push 0xc
push 1
call fcn.0040988e
add esp, 0xc
jmp 0x404afb
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call fcn.004154f0
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x404b4e
jmp 0x404b4d
movzx eax, word [edi + esi*2]
cmp eax, 0x5c
je 0x404b54
cmp eax, 0x2f
je 0x404b54
inc esi
cmp word [edi + esi*2], cx
jne 0x404b3f
xor eax, eax
mov word [edi + esi*2], ax
jmp 0x404b02
cmp esi, dword [ebp - 4]
jl 0x404b1c
push dword [ebp - 0x18]
call fcn.00414ea0
xor eax, eax
pop ecx
inc eax
jmp 0x404bb6
cmp dword [ebp - 4], 2
jne 0x404b9f
mov ax, word [ebx]
or ax, 0x20
cmp ax, 0x61
jb 0x404b9f
cmp ax, 0x7a
ja 0x404b9f
cmp word [ebx + 2], 0x3a
jne 0x404b9f
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.00414ea0
pop ecx
mov eax, esi
jmp 0x404bb6
push ebx
push 0xc
push 1
call fcn.0040988e
push dword [ebp - 0x18]
call fcn.00414ea0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4050e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call esi
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov edi, eax
call fcn.00410d16
lea eax, [edi + 2]
push eax
mov ecx, ebx
mov dword [ebp + 8], eax
call fcn.004045af
inc edi
push edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.004045af
push eax
push dword [ebp + 0xc]
call esi
mov ecx, ebx
call fcn.00404594
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4055b3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4241f8], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00409d55
call fcn.004039f7
push 3
call fcn.00403a52
push 0x28
mov dword [0x424220], eax
call fcn.00403a52
push 2
mov dword [0x42421c], eax
call fcn.00403a52
push 5
mov dword [0x424218], eax
call fcn.00403a52
push 0x15
mov dword [0x424214], eax
call fcn.00403a52
push 0x16
mov dword [0x424210], eax
call fcn.00403a52
push 0x17
mov dword [0x42420c], eax
call fcn.00403a52
xor ebx, ebx
add esp, 0x1c
mov dword [0x424208], eax
mov dword [0x424200], ebx
mov dword [0x424204], ebx
xor edi, edi
push ebx
push edi
lea eax, [ebp - 0x268]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4056a7
push edi
lea eax, [ebp - 0x5c]
push 0x41e930
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00405132
add esp, 0x18
xor esi, esi
cmp dword [esi + 0x4233c4], edi
jne 0x40569f
push ebx
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x4233c8]
call fcn.00405132
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x405681
inc edi
cmp edi, 0x40
jl 0x405646
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405c40
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x424360], esi
jle 0x405c94
mov eax, dword [0x42435c]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00410d3a
lea eax, [ebp - 0xc]
push eax
call fcn.004056e9
mov eax, dword [0x42435c]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call fcn.00414ea0
inc esi
pop ecx
cmp esi, dword [0x424360]
jl 0x405c51
pop esi
leave
ret
Function at 0x405f51
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
cmp word [eax + 2], 0x3a
push ebx
push edi
jne 0x406105
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x405f79
cmp ecx, 0x2f
jne 0x406105
mov ax, word [eax]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x405fab
push dword [ebp + 8]
jmp 0x406106
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404661
pop ecx
pop ecx
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4060cd
push esi
lea ecx, [ebp - 0x18]
call fcn.00410d16
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.004111b8
mov edi, str.del__
push edi
lea ecx, [ebp - 0x18]
call fcn.0041121e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410dc7
mov esi, 0x41ea50
push esi
lea ecx, [ebp - 0x18]
call fcn.0041121e
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.0041121e
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410dc7
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.0041121e
push edi
lea ecx, [ebp - 0x18]
call fcn.0041121e
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00410dc7
push esi
lea ecx, [ebp - 0x18]
call fcn.0041121e
mov esi, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404742
mov eax, dword [eax]
add esp, 0xc
xor edi, edi
push edi
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call fcn.00414ea0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
pop esi
je 0x4060e0
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x4060e0
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
push edi
push edi
push dword [ebp - 0x24]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call fcn.00414ea0
pop ecx
push dword [ebp - 0x24]
call fcn.00414ea0
push dword [ebp + 8]
call fcn.00414ea0
pop ecx
jmp 0x40610b
push dword [ebp - 0x24]
call fcn.004040b7
push dword [ebp - 0x18]
call fcn.00414ea0
push dword [ebp - 0x24]
call fcn.00414ea0
push dword [ebp + 8]
call fcn.00414ea0
add esp, 0x10
jmp 0x40610c
push eax
call fcn.00414ea0
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x407103
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00415e2c
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004070ba
add esp, 0x1c
leave
ret

Function at 0x408b33
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0040766d
test eax, eax
jne 0x408b51
push eax
push eax
push esi
push 0x408b0f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
ret
push dword [0x424218]
mov ecx, esi
push dword [esi + 4]
call fcn.0040795c
push 0x2d
call fcn.00403a52
pop ecx
push eax
push 0x4b2
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov ecx, esi
call fcn.0040795c
pop esi
ret
Function at 0x408ffd
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.00407978
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.00407997
push 1
inc edi
push edi
mov ecx, esi
call fcn.00407997
and dword [ebp - 0x2c4], 0
push 0x2b0
lea eax, [ebp - 0x2c0]
push 0
push eax
call fcn.00415100
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407fd9
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408cbd
mov ecx, esi
mov edi, eax
call fcn.0040862a
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x409d55
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x409d5d
mov dword [ecx*4 + 0x427300], eax
inc ecx
cmp ecx, 0x100
jb 0x409d58
mov edx, 0x800
jmp 0x409daa
mov eax, dword [ecx*4 + 0x426f00]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x427300]
inc ecx
mov dword [ecx*4 + 0x4272fc], eax
cmp ecx, edx
jb 0x409d89
mov eax, 0x41bc00
mov esi, 0x41bb20
mov dword [0x4272ec], eax
mov dword [0x429300], eax
mov dword [0x4272e8], esi
call fcn.0040f553
test eax, eax
jne 0x409dd7
mov dword [0x429300], esi
pop esi
ret
Function at 0x40f78c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f7b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f7b2
xor al, al
jmp 0x40f7c7
mov edx, dword [ebp - 4]
xor eax, eax
xor ecx, ecx
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x411f35
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
test eax, eax
je 0x411f6a
mov ebx, dword [edx]
mov dword [ecx + esi*4 + 0x10], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x411f5c
cmp esi, edi
jae 0x41204b
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4 + 0x10]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov edi, dword [ecx + esi*4 + 0xc]
mov dword [ebp - 8], eax
test edx, edx
jne 0x411fe2
mov eax, edi
mov ebx, edi
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl eax, 8
or eax, ebx
mov ebx, edi
shr edi, 8
and edi, edx
shr ebx, 0x10
and ebx, edx
movzx edx, byte [edi + str.cw]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x41f300]
shl eax, 8
or eax, ebx
shl eax, 8
xor edi, edx
or edi, eax
jmp 0x412032
cmp dword [ebp + 8], 6
jbe 0x412032
cmp edx, 4
jne 0x412032
mov edx, edi
shr edx, 0x10
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov eax, 0xff
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
or edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
and edi, eax
movzx edi, byte [edi + str.cw]
or edx, ebx
shl edx, 8
or edi, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, edi
mov dword [ecx + esi*4 + 0x10], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x411f7d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x412a97
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x4197ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4240c0]
jne 0x4197b7
repz ret
jmp fcn.0041b798

Function at 0x41a47b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4240c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00417ff5
and dword [ebp - 0x14], 0
cmp dword [0x426f64], 0
mov dword [ebp - 0x18], eax
jne 0x41a52e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41a5d6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41a5d6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x426f64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x426f68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x426f6c], eax
call edi
push eax
call esi
mov dword [0x426f74], eax
test eax, eax
je 0x41a52e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x426f70], eax
mov eax, dword [0x426f70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41a587
cmp dword [0x426f74], ecx
je 0x41a587
push eax
call esi
push dword [0x426f74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41a587
test ebx, ebx
je 0x41a587
call edi
test eax, eax
je 0x41a57e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41a57e
test byte [ebp - 8], 1
jne 0x41a587
or dword [ebp + 0x10], 0x200000
jmp 0x41a5ba
mov eax, dword [0x426f68]
cmp eax, dword [ebp - 0x18]
je 0x41a5ba
push eax
call esi
test eax, eax
je 0x41a5ba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41a5ba
mov eax, dword [0x426f6c]
cmp eax, dword [ebp - 0x18]
je 0x41a5ba
push eax
call esi
test eax, eax
je 0x41a5ba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x426f64]
call esi
test eax, eax
je 0x41a5d6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41a5d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004197ad
leave
ret
Function at 0x4038fa
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4040fa], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404658], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4045ec], eax
mov dword [0x4040f2], eax
mov dword [0x4045d8], 0x30
mov dword [0x4045dc], 2
jmp 0x40393f
mov dword [0x4045e0], 0x403153
mov dword [0x4045e4], 0
mov dword [0x4045e8], 0
mov dword [0x404600], 0x40454e
mov dword [0x4045f8], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4045f0], eax
mov dword [0x404604], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4045f4], eax
push 0x4045d8
fadd dword [ebp + 0x40]
add bh, bh
adc eax, sym.imp.user32.dll_RegisterClassExA
push 0
push dword [0x4040f2]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.asdlkjalsdj_ai8
push 0x40454e
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x404650], eax
push 5
push dword [0x404650]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x404650]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x404608]
jmp 0x403a13
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x403a05
mov eax, dword [0x404610]
jmp 0x403a2e
call 0x402bd5
ret

Function at 0x8e1060
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e1066
pop ebp
sub ebp, 6
sub ebp, 0x4e1060
jmp 0x8e10c4
adc dword [eax], eax
daa
add byte [edi], dh
add byte [edi + 0x67], cl
adc byte [esi + ebp], bh
pop edi
mov al, byte [0x5f8109a]
and eax, 0x8c5b57d2
mov esi, 0x1eaf093
add byte [eax], al
add byte [edx + 0x6b], dh
sub ah, byte [edx + 0x200f4e81]
fist dword [ebp + 0x6a56d85a]
mov ebx, dword [esi + 0x486ebe51]
fisub word [edx]
mov esi, 0x22de486e
mov ebp, 0x77e2a302
mov byte [esi - 0x10], bh
shl dword [edi - 0x17], 1
add al, 0
add byte [eax], al
jne 0x8e10fe
jmp 0x8e10cd
jecxz 0x8e10e5
mov eax, 0x4e1060
add eax, ebp
add eax, 0x93
mov ecx, 0x632
mov edx, 0xfbd0fa8b
xor byte [eax], dl
inc eax
dec ecx
adc byte [eax + 0x49], al
jne 0x8e10e4
jmp 0x8e10f7
loope 0x8e10c4
jecxz 0x8e1086
wait
mov ecx, dword [ebx - 0x58b8741d]
jecxz 0x8e108b
inc edi
cmpsd dword [esi], dword es:[edi]
mov ecx, dword [edx]
jnp 0x8e10b5
cmp byte [ebp - 0x2f], bl
or bh, byte [ebx - 0x51]
cmp byte [ebp - 0x2f], bl
mov eax, 0x1e74db4b
mov bh, 0xda
iretd
Function at 0x40894e
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov ecx, dword [esp]
add esp, 4
sub esi, 0x871bc6c0
dec edi
call fcn.00408979
xor dword [edx], ecx
inc esi
inc edx
add esi, 0xfb168e33
mov esi, esi
cmp edx, ebx
jne fcn.0040894e
and esi, esi
inc edi
ret
Function at 0x4067a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4714f6
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x491d58]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
push edi
mov eax, dword [0x491d58]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov edi, 7
xor esi, esi
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], vtable.LogItem.0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov word [esp + 0x20], ax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], cx
mov dword [esp + 0x58], 1
push str.Starting_the_service_control_dispatcher.
mov dword [esp + 0xe4], esi
push str._INF___N_A_
lea ecx, [esp + 0x24]
mov dword [esp + 0x64], 2
call fcn.00403090
mov ecx, eax
call fcn.00403090
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00402d10
call fcn.00404d40
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x47f8dc
mov dword [esp + 0x14], 0x405b70
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x406904
xor ecx, ecx
mov dword [esp + 0x1c], vtable.LogItem.0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], esi
mov word [esp + 0x20], ax
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], esi
mov word [esp + 0x3c], cx
mov dword [esp + 0x58], 1
push str.Service_did_not_start._Examine_log_for_details
mov dword [esp + 0xe4], 1
push str._FTL___N_A_
lea ecx, [esp + 0x24]
mov dword [esp + 0x64], 4
call fcn.00403090
mov ecx, eax
call fcn.00403090
lea ecx, [esp + 0x1c]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00402d10
lea esi, [esp + 0x64]
call fcn.00403450
push 0x489094
mov edx, esi
push edx
call fcn.00450350
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.0044ce4c
mov esp, ebp
pop ebp
ret