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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.0040575a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4054ef
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4e8], eax
jmp 0x405674
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x40550a
test eax, eax
je 0x40561f
test cl, 2
je 0x40561f
mov esi, 0x42b8d0
push ebx
push esi
call fcn.00405b87
cmp dword [ebp + 8], 0
je 0x405529
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40552f
push ebx
call fcn.004056c1
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405615
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056a5
cmp byte [eax], 0
je 0x405580
cmp byte [ebp - 0x18], 0
je 0x405580
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405596
mov al, byte [esi + 1]
test al, al
je 0x4055f4
cmp al, 0x2e
jne 0x405596
cmp byte [esi + 2], 0
je 0x4055f4
push esi
push edi
call fcn.00405b87
test byte [ebp - 0x148], 0x10
je 0x4055bb
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055f4
push dword [ebp + 0xc]
push ebx
call fcn.004054b9
jmp 0x4055f4
push ebx
call fcn.0040583e
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055ec
test byte [ebp + 0xc], 4
je 0x4055e4
push ebx
push 0xfffffffffffffff1
call fcn.00404f1b
push 0
push ebx
call fcn.004058d4
jmp 0x4055f4
inc dword [0x42f4e8]
jmp 0x4055f4
push ebx
push 0xfffffffffffffff2
call fcn.00404f1b
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40555e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40561f
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x405674
cmp dword [ebp - 8], esi
jne 0x405634
inc dword [0x42f4e8]
jmp 0x405674
push ebx
call fcn.00405e43
test eax, eax
je 0x405674
push ebx
call fcn.0040567a
push ebx
call fcn.0040583e
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40566c
test byte [ebp + 0xc], 4
je 0x40562c
push ebx
push 0xfffffffffffffff1
call fcn.00404f1b
push esi
push ebx
call fcn.004058d4
jmp 0x405674
push ebx
push 0xffffffffffffffe5
call fcn.00404f1b
pop esi
pop ebx
leave
ret 8
Function at 0x40575a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bcd0
push esi
call fcn.00405b87
push esi
call fcn.0040570d
mov edi, eax
test edi, edi
jne 0x40577b
xor eax, eax
jmp 0x4057cd
push edi
call fcn.00405daa
test byte [0x42f470], 0x80
je 0x405794
mov al, byte [edi]
test al, al
je 0x405777
cmp al, 0x5c
je 0x405777
sub edi, esi
jmp 0x4057ac
call fcn.00405e43
test eax, eax
je 0x4057a6
test byte [eax], 0x10
je 0x405777
push esi
call fcn.004056c1
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405798
call fcn.0040567a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40583e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40585a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40585d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40588c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058d0
test edi, edi
jne 0x405897
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058ca
Function at 0x4058d4
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405e81
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405900
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a3f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42ca58], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42ca58
je 0x405944
push 1
push 0
push esi
call fcn.0040585d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a45
cmp eax, edi
jg 0x405a45
mov esi, 0x42c4d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a45
cmp eax, edi
jg 0x405a45
push esi
push ebp
push str._s_s_r_n
push 0x42c0d0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
push 4
push 0xc0000000
push esi
call fcn.0040585d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a3f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a38
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a38
cmp edi, dword [esp + 0x18]
jne 0x405a38
push str._Rename__r_n
push esi
call fcn.004057d2
test eax, eax
jne 0x405a4c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b87
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42c0d0
push eax
call fcn.0040581e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42f4f0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409320
push eax
call fcn.004057d2
test eax, eax
je 0x405a03
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a73
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a68
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405a05
Function at 0x405a7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405adf
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ace
cmp dword [ebp + 0x14], 1
je 0x405ad0
cmp dword [ebp + 0x14], 2
je 0x405ad0
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405ba9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405bca
mov ecx, dword [0x42ec3c]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x42f498]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x42e400
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x405d84
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x405d84
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405d91
inc ebx
cmp cl, 0xfc
jbe 0x405d77
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x10], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 8], eax
jne 0x405d22
cmp dword [0x42f4e4], 0
push 2
pop esi
je 0x405c55
push 4
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x42f464]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405c89
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.004053d4
cmp dword [ebp + 0xc], 0
jne 0x405c90
and byte [edi], 0
test esi, esi
jne 0x405c55
cmp byte [edi], 0
jne 0x405d09
mov eax, dword [ebp - 0x14]
cmp eax, 0x2b
jne 0x405cb4
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a7b
jmp 0x405d04
cmp eax, 0x26
jne 0x405ce0
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405a7b
cmp byte [edi], 0
jne 0x405d09
push str.C:Program_Files
push edi
call fcn.00405b87
jmp 0x405d04
cmp eax, 0x25
jne 0x405cf3
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405d04
cmp eax, 0x24
jne 0x405d04
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
je 0x405d1a
cmp dword [ebp - 0xc], 0x1a
jne 0x405d1a
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405daa
jmp 0x405d68
cmp byte [ebp + 0xf], 0xfd
jne 0x405d56
cmp esi, 0x1b
jne 0x405d3b
push dword [0x42f464]
push edi
call fcn.00405ae5
jmp 0x405d4c
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.00405b87
add esi, 0xffffffeb
cmp esi, 6
jae 0x405d68
jmp 0x405d1a
cmp byte [ebp + 0xf], 0xff
jne 0x405d68
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.00405ba9
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x42e400
jmp 0x405d84
jne 0x405d81
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405d84
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405bf5
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405da6
push eax
push dword [ebp + 8]
call fcn.00405b87
leave
ret 8
Function at 0x405ede
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ce5c], 0
push esi
jne 0x405f15
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405eef
mov dword [ecx*4 + 0x42ce58], eax
inc ecx
cmp ecx, 0x100
jl 0x405eea
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f46
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ce58]
xor eax, esi
inc ecx
dec edx
jne 0x405f28
pop edi
not eax
pop esi
ret 0xc
Function at 0x408120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40813a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x408141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x408130
mov eax, 1
add ebx, ebx
jne 0x408153
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x408148
jne 0x408164
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408148
xor ecx, ecx
sub eax, 3
jb 0x408178
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4081ea
mov ebp, eax
add ebx, ebx
jne 0x408183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x408190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4081b4
inc ecx
add ebx, ebx
jne 0x4081a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x408195
jne 0x4081b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x408195
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4081d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4081c5
jmp 0x408136
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4081d4
add edi, ecx
jmp 0x408136
pop esi
mov edi, esi
mov ecx, 0xc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4081f2
cmp byte [edi], 1
jne 0x4081f2
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 0x4081f7
lea edi, [esi + 0x6000]
mov eax, dword [edi]
or eax, eax
je 0x40826f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x88f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8930]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x408224
mov ecx, edi
jns 0x408253
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 + 0x8938]
or eax, eax
je 0x408269
mov dword [ebx], eax
add ebx, 4
jmp 0x408241
call dword [esi + 0x8934]
mov ebp, dword [esi + 0x893c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4082a3
sub esp, 0xffffff80
jmp 0x40134c
Function at 0x408683
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b168]
jne 0x40868d
repz ret
jmp fcn.00406b7d

Function at 0x813058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008131a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81306a
add dl, dl
jne 0x813089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8130dc
xor eax, eax
add dl, dl
jne 0x813096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81317d
add dl, dl
jne 0x8130a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8130d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x813075
mov eax, 1
add dl, dl
jne 0x8130ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8130e1
sub eax, ebx
mov ebx, 1
jne 0x813128
mov ecx, 1
add dl, dl
jne 0x81310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x813119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813136
cmp eax, 0x7d00
jae 0x81316d
cmp eax, 0x500
jb 0x813168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
cmp eax, 0x7f
ja 0x813170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x813075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x5d8ab9
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x5d87dc
mov edi, edx
and edx, edx
or edi, edx
call fcn.005d8aec
dec edx
inc edx
xor dword [eax], esi
sub edi, edi
add eax, 2
or edx, edx
inc edx
cmp eax, ebx
jl fcn.005d8ab9
add edi, 1
mov edi, 0xe3b57f92
ret
Function at 0x401000
Capabilities:
Encode data using xor
Hide graphical window

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
sub esp, 0x10
movaps xmm0, xmmword [section..rdata]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x401152
xor ecx, ecx
mov byte [eax + ecx], 0
inc ecx
cmp ecx, 0x2faf080
jne 0x401034
xor ecx, ecx
mov esi, 0xffffe858
mov edi, 0x4ec4ec4f
lea eax, [ecx + 1]
imul edi
mov al, byte [esi + 0x42b7b0]
rol al, 5
xor al, byte [ecx + str.fajrpmbddwhmy]
mov byte [esi + 0x42b7b0], al
mov eax, edx
shr eax, 0x1f
sar edx, 2
add edx, eax
lea eax, [edx + edx*2]
lea eax, [edx + eax*4]
neg eax
add ecx, eax
inc ecx
inc esi
jne 0x40104d
sub esp, 0x10
movaps xmm0, xmmword [0x41f010]
movups xmmword [esp], xmm0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov cl, byte [esi + 0x42a008]
mov byte [eax + esi], cl
inc esi
cmp esi, 0x17a8
jne 0x401095
xor esi, esi
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edi, [esp + 0x1c]
mov dword [edi + 0x1c], 5
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [edi + 0x18], eax
mov dword [edi + 0x24], 0x424516
mov dword [edi + 4], 0x401163
push edi
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x401156
sub esp, 0x30
mov dword [esp + 0x2c], esi
movaps xmm0, xmmword [0x41f020]
movups xmmword [esp + 0x1c], xmm0
movaps xmm0, xmmword [0x41f030]
movups xmmword [esp + 0xc], xmm0
mov dword [esp], esi
mov dword [esp + 8], str.Advanced_C_Image_Viewer
mov dword [esp + 4], 0x424516
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, esp
push esi
push esi
push esi
push edi
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401159
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
xor esi, esi
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call ebp
push esi
push esi
push esi
push edi
call ebx
test eax, eax
jne 0x40113c
jmp 0x401159
xor esi, esi
jmp 0x401159
xor esi, esi
dec esi
mov eax, esi
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x40915c
mov ecx, 0x38835d81
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x56cb633b
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x4074ae
Capabilities:
Persist via active setup registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x40c050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
push 0x2e
pop ecx
mov esi, 0x4075c8
lea edi, [ebp - 0xc0]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc8]
push eax
push 1
movsw word es:[edi], word [esi]
xor edi, edi
push edi
lea eax, [ebp - 0xc0]
push eax
push 0x80000002
call dword [0x401020]
test eax, eax
jne 0x40759e
mov eax, dword [ebp + 0xc]
add eax, eax
push eax
push edi
push ebx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc4], edi
call fcn.00402e34
add esp, 0xc
lea eax, [ebp - 0xcc]
push eax
push ebx
lea eax, [ebp - 0xc4]
push eax
push edi
push 0x4075b4
push dword [ebp - 0xc8]
call dword [0x40101c]
test eax, eax
jne 0x407592
cmp dword [ebp - 0xc4], 1
je 0x407554
cmp dword [ebp - 0xc4], 2
jne 0x407592
mov eax, dword [ebp - 0xcc]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
lea eax, [ebp - 0xd0]
push eax
push ebx
mov dword [ebp - 0xd0], edi
call dword [0x401208]
mov esi, eax
cmp esi, edi
je 0x407592
push dword [esi]
push dword [ebp + 0xc]
push ebx
call fcn.004020e3
push esi
call dword [fcn.00401080]
xor edi, edi
inc edi
push dword [ebp - 0xc8]
call dword [0x401018]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004016b1
leave
ret 8
Function at 0x40610d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40611c
pop dword [ebp - 0x34]
mov eax, 0xa9561cef
sub eax, 0xa915bbd3
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xbbd6783
sub dword [ebp - 0x44], 0xbd6b2238
mov dword [ebp - 0x40], 0x9af985b6
sub dword [ebp - 0x40], 0x68c63971
mov dword [ebp - 0x3c], 0xdee5f9b5
add dword [ebp - 0x3c], 0x6d664a79
mov dword [ebp - 0x38], 0xa2798e4b
add dword [ebp - 0x38], 0x5d8671b5
lea eax, [ebp - 0x44]
push eax
mov eax, 0x4f9756cc
add eax, 0xb0a91994
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x1d3b3866
add dword [ebp - 0x44], 0x573730f0
mov dword [ebp - 0x40], 0x6a0a6836
sub dword [ebp - 0x40], 0x289e06c1
mov dword [ebp - 0x3c], 0xc360c101
add dword [ebp - 0x3c], 0xa00eab6b
mov dword [ebp - 0x38], 0xd8ab0958
add dword [ebp - 0x38], 0x2754f6a8
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xc9612f14
add eax, 0x36df41ec
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x34b0b
push 0
call eax
mov ecx, 0x5091185e
add ecx, 0xaf6f27f6
xor esi, esi
add esi, eax
mov edi, 0xde6d0be7
sub edi, 0xde2c0be7
add edi, dword [ebp - 0x34]
mov edx, 0x4bdd0ada
xor dword [ebp - 0x10], esi
mov ebx, dword [edi]
add dword [ebp - 8], ebx
add ebx, edx
add dword [ebp - 4], 0x788fe402
mov dword [esi], ebx
mov dword [ebp - 0x1c], 0xb308cd50
add esi, 0x4b31205c
sub esi, 0x4b312058
add edi, 0xc92b5758
sub edi, 0xc92b5754
loop 0x40623a
add eax, 0xf0a7965d
sub eax, 0xf0a6a23a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941