joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8352a340
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x879ce244]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov al, byte [ebp + 0x28]
sub al, 2
and al, 0xfe
push ebx
mov ebx, dword [ebp + 0x10]
add al, al
mov dl, 0xe
add al, al
sub dl, bl
push esi
mov esi, dword [ebp + 0x1c]
or al, dl
cmp dword [ebp + 0x18], 0
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 0x14], al
jbe 0x8352a389
or al, 0x40
mov byte [ebp - 0x14], al
push ebx
lea eax, [ebp - 0x13]
push edi
push eax
call fcn.8350e828
mov edi, dword [ebp + 0x20]
mov eax, 0xf
add esp, 0xc
mov ecx, edi
cmp ebx, eax
jae 0x8352a3b1
mov byte [ebp + eax - 0x14], cl
dec eax
shr ecx, 8
cmp eax, ebx
ja 0x8352a3a5
lea ecx, [ebp - 0x14]
push ecx
mov edx, ecx
mov ecx, dword [ebp - 0x18]
call fcn.8351e0b0
mov edx, dword [ebp + 0x18]
test edx, edx
jbe 0x8352a435
xor eax, eax
lea edi, [eax + 2]
cmp edx, 0xff00
jb 0x8352a3e6
mov al, byte [ebp - 0x14]
xor byte [ebp - 0x13], 0xfe
not al
mov byte [ebp - 0x14], al
mov eax, edi
mov edi, 4
lea ecx, [edi - 1]
test ecx, ecx
jl 0x8352a3fc
lea ebx, [ebp + eax - 0x14]
xor byte [ebx + ecx], dl
shr edx, 8
sub ecx, 1
jns 0x8352a3f1
mov ebx, dword [ebp + 0x14]
add eax, edi
cmp eax, 0x10
jne 0x8352a416
lea ecx, [ebp - 0x14]
push ecx
mov edx, ecx
mov ecx, dword [ebp - 0x18]
call fcn.8351e0b0
xor eax, eax
mov dl, byte [ebx]
xor byte [ebp + eax - 0x14], dl
inc eax
inc ebx
sub dword [ebp + 0x18], 1
jne 0x8352a401
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov edx, eax
call fcn.8351e0b0
mov edi, dword [ebp + 0x20]
cmp edi, 0x10
jb 0x8352a46e
mov ebx, edi
shr ebx, 4
nop
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor dword [ebp - 0x14], ecx
mov ecx, dword [esi + 0xc]
xor dword [ebp - 0x10], edx
mov eax, dword [esi + 8]
xor dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x18]
xor dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
push edx
call fcn.8351e0b0
add esi, 0x10
sub edi, 0x10
sub ebx, 1
jne 0x8352a440
test edi, edi
jbe 0x8352a48b
push edi
push esi
lea eax, [ebp - 0x14]
push eax
call fcn.8352ab70
lea ecx, [ebp - 0x14]
push ecx
mov edx, ecx
mov ecx, dword [ebp - 0x18]
call fcn.8351e0b0
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push ecx
call fcn.8350e828
add esp, 0xc
pop edi
pop esi
mov ecx, 0x10
lea eax, [ebp - 0x14]
pop ebx
lea ebx, [ebx]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x8352a4b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.834ef3e8
mov esp, ebp
pop ebp
ret 0x24
Function at 0x8352a750
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jbe 0x8352a8dd
mov eax, dword [ebp + 8]
push ebx
add eax, 0x1e0
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x8352a778
xor edi, edi
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 0x38], ecx
mov eax, ecx
mov cl, 0x20
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], edi
call fcn.83510c1a
mov edx, dword [esi + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov eax, edx
mov edx, dword [esi + 0xc]
mov cl, 0x20
call fcn.83510c1a
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
xor eax, eax
lea edx, [ebp - 0x2c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], edx
jmp 0x8352a7c0
mov edx, dword [ebp + 0x10]
mov esi, dword [edx + eax*4]
mov eax, dword [ebp + 8]
bswap esi
xor esi, dword [eax]
mov dword [ebp - 4], 8
mov ebx, dword [ecx + 0x10]
mov eax, esi
and eax, 1
neg eax
cdq
and ebx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x14]
and eax, edx
xor dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x18]
and eax, dword [ebp - 0x28]
xor edi, ebx
xor dword [ebp - 0x18], eax
mov ebx, dword [ecx + 0x1c]
and ebx, edx
xor dword [ebp - 0x14], ebx
shr esi, 1
mov eax, esi
and eax, 1
neg eax
cdq
mov ebx, eax
and ebx, dword [ecx]
mov dword [ebp - 0x24], edx
and edx, dword [ecx + 4]
shr esi, 1
xor dword [ebp - 0x1c], edx
mov edx, dword [ecx + 8]
and edx, eax
mov eax, dword [ecx + 0xc]
and eax, dword [ebp - 0x24]
xor dword [ebp - 0x18], edx
xor dword [ebp - 0x14], eax
xor edi, ebx
mov ebx, dword [ecx - 0x10]
mov eax, esi
and eax, 1
neg eax
cdq
and ebx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ecx - 0xc]
and eax, edx
xor dword [ebp - 0x1c], eax
mov eax, dword [ecx - 8]
and eax, dword [ebp - 0x28]
xor edi, ebx
xor dword [ebp - 0x18], eax
mov ebx, dword [ecx - 4]
shr esi, 1
and ebx, edx
xor dword [ebp - 0x14], ebx
mov ebx, dword [ecx - 0x20]
mov eax, esi
and eax, 1
neg eax
cdq
and ebx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ecx - 0x1c]
and eax, edx
xor dword [ebp - 0x1c], eax
mov eax, dword [ecx - 0x18]
and eax, dword [ebp - 0x28]
xor edi, ebx
mov ebx, dword [ecx - 0x14]
xor dword [ebp - 0x18], eax
and ebx, edx
xor dword [ebp - 0x14], ebx
mov edx, 1
shr esi, 1
sub ecx, 0x40
sub dword [ebp - 4], edx
jne 0x8352a7d4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub dword [ebp + 8], 4
add eax, edx
add ecx, 0x200
cmp eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jl 0x8352a7c0
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add dword [ebp + 0x10], 0x10
sub dword [ebp + 0x14], edx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [esi], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
jne 0x8352a776
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x57f770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x122000]
push edi
jmp 0x57f78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57f791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f780
mov eax, 1
add ebx, ebx
jne 0x57f7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57f7b4
jne 0x57f7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7d3
dec eax
add ebx, ebx
jne 0x57f7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57f798
add ebx, ebx
jne 0x57f7cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57f825
xor ecx, ecx
sub eax, 3
jb 0x57f7eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57f85a
sar eax, 1
mov ebp, eax
jmp 0x57f7f6
add ebx, ebx
jne 0x57f7f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
inc ecx
add ebx, ebx
jne 0x57f804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
add ebx, ebx
jne 0x57f811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57f806
jne 0x57f822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57f806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57f844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57f836
jmp 0x57f786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57f844
add edi, ecx
jmp 0x57f786
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57f862
cmp byte [edi], 0x11
jne 0x57f862
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 0x57f867
lea edi, [esi + 0x178000]
mov eax, dword [edi]
or eax, eax
je 0x57f8df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x219a74]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219bf0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57f894
mov ecx, edi
jns 0x57f8c3
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 + 0x219bf4]
or eax, eax
je 0x57f8d9
mov dword [ebx], eax
add ebx, 4
jmp 0x57f8b1
call dword [esi + 0x219c04]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57f910
cmp al, 0xef
ja 0x57f903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x57f8e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x57f8f2
mov ebp, dword [esi + 0x219bf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x57f944
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x10001800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [0x10006094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x100019c0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10006094]
movzx eax, al
bt eax, esi
jae 0x10001a20
mov ecx, dword [0x10006084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x100018c5
test byte [0x10002030], 8
jne 0x10001960
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x10002040], 8
jne 0x10001910
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001894
cmp esi, 3
jbe 0x100018d0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xfc
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100040cc]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001894
mov ecx, dword [0x10006094]
test ecx, ecx
je 0x10001a00
mov dword [esp], 0x10002040
call dword [0x10006094]
test al, 8
je 0x1000186b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x1000186b
mov ebx, dword [0x10006094]
test ebx, ebx
je 0x100019e0
mov dword [esp], 0x10002030
call dword [0x10006094]
test al, 8
je 0x10001856
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x1000185e
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x1000181d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x1000196a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10006094
call sym._load_func.part.0
jmp 0x1000191e
mov eax, 0xffffffff
jmp 0x100018c5
Function at 0x40323e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403269
mov ecx, dword [0x42a2b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x420ed4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403346
cmp eax, esi
jl 0x403340
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405fd3
test eax, eax
je 0x403330
push dword [ebp + 8]
add dword [0x420ed4], 4
call fcn.00403346
mov ebx, eax
cmp ebx, esi
jl 0x40333e
cmp dword [ebp + 0x10], esi
jne 0x40330c
cmp dword [ebp + 8], esi
jle 0x40333e
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4032ce
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405fd3
test eax, eax
je 0x403330
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406002
test eax, eax
je 0x403308
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x420ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4032bd
jmp 0x40333e
push 0xfffffffffffffffe
jmp 0x403332
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403317
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403335
push 0xfffffffffffffffd
pop eax
jmp 0x403340
mov ebx, dword [ebp - 4]
add dword [0x420ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10

Function at 0x405991
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4059e2
xor eax, eax
jmp 0x405a09
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405a09
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4059de
call esi
pop esi
leave
ret 4

Function at 0x405a43
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426730], 0x44
push eax
xor eax, eax
push 0x426730
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405a82
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a86
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4
Function at 0x405b24
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f2b
mov edi, eax
cmp edi, 0xffffffff
je 0x405b65
test byte [esp + 0x10], 1
push esi
je 0x405b47
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405b4d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405b56
xor eax, eax
inc eax
jmp 0x405b67
test byte [esp + 0x10], 4
jne 0x405b65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

Function at 0x405b6c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405e37
test bl, 8
mov dword [ebp - 8], eax
je 0x405bab
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2e8], eax
jmp 0x405d28
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bc5
test eax, eax
je 0x405cd6
test bl, 2
je 0x405cd6
mov esi, 0x425730
push edi
push esi
call fcn.0040645a
cmp dword [ebp + 8], 0
je 0x405be4
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405bea
push edi
call fcn.00405d7b
cmp word [edi], 0
jne 0x405bfa
cmp word [0x425730], 0x5c
jne 0x405c05
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ccb
cmp word [ebp - 0x22c], 0x2e
jne 0x405c4f
cmp word [ebp - 0x22a], 0
je 0x405cae
cmp word [ebp - 0x22a], 0x2e
jne 0x405c4f
cmp word [ebp - 0x228], 0
je 0x405cae
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040645a
test byte [ebp - 0x258], 0x10
je 0x405c7a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cae
push dword [ebp + 0xc]
push edi
call fcn.00405b6c
jmp 0x405cae
push dword [ebp - 4]
push edi
call fcn.00405b24
test eax, eax
jne 0x405ca6
cmp dword [ebp - 4], eax
je 0x405c9e
push edi
push 0xfffffffffffffff1
call fcn.004054c2
push 0
push edi
call fcn.00406220
jmp 0x405cae
inc dword [0x42a2e8]
jmp 0x405cae
push edi
push 0xfffffffffffffff2
call fcn.004054c2
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405c27
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cd6
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d28
cmp dword [ebp - 8], esi
jne 0x405cea
inc dword [0x42a2e8]
jmp 0x405d28
push edi
call fcn.0040679d
test eax, eax
je 0x405d28
push edi
call fcn.00405d2f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b24
test eax, eax
jne 0x405d20
cmp dword [ebp - 4], esi
je 0x405ce2
push edi
push 0xfffffffffffffff1
call fcn.004054c2
push esi
push edi
call fcn.00406220
jmp 0x405d28
push edi
push 0xffffffffffffffe5
call fcn.004054c2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405e37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.0040645a
push esi
call fcn.00405dda
mov edi, eax
test edi, edi
jne 0x405e58
xor eax, eax
jmp 0x405eb0
push edi
call fcn.004066ee
test byte [0x42a25c], 0x80
je 0x405e75
mov ax, word [edi]
test ax, ax
je 0x405e54
cmp ax, 0x5c
je 0x405e54
sub edi, esi
sar edi, 1
jmp 0x405e8f
call fcn.0040679d
test eax, eax
je 0x405e89
test byte [eax], 0x10
je 0x405e54
push esi
call fcn.00405d7b
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e7b
call fcn.00405d2f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f4a
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405f50
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x405f7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a588]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a58c]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405fcf
test edi, edi
jne 0x405f8c
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405fc9

Function at 0x406220
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406243
push dword [esp + 8]
push dword [esp + 8]
call fcn.004060a6
pop ecx
pop ecx
inc dword [0x42a2f0]
ret 8
Function at 0x406328
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c7
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406398
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x406398
cmp dword [ebp + 0xc], 1
je 0x40639c
cmp dword [ebp + 0xc], 2
je 0x40639c
and word [esi], 0
pop esi
leave
ret 0x14

Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x40695e
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 0x406938
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc