joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46e004]
jne 0x40100a
repz ret
jmp fcn.00401912

Function at 0x4077ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040263b
and dword [ebp - 4], 0
cmp dword [0x470284], 0
mov ebx, eax
jne 0x40785f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407910
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407910
push eax
call fcn.004025c9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x470284], eax
call esi
push eax
call fcn.004025c9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x470288], eax
call esi
push eax
call fcn.004025c9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47028c], eax
call esi
push eax
call fcn.004025c9
pop ecx
mov dword [0x470294], eax
test eax, eax
je 0x40785f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025c9
pop ecx
mov dword [0x470290], eax
mov eax, dword [0x470290]
cmp eax, ebx
je 0x4078b7
cmp dword [0x470294], ebx
je 0x4078b7
push eax
call fcn.00402644
push dword [0x470294]
mov esi, eax
call fcn.00402644
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4078b7
test edi, edi
je 0x4078b7
call esi
test eax, eax
je 0x4078ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4078ae
test byte [ebp - 0xc], 1
jne 0x4078b7
or dword [ebp + 0x10], 0x200000
jmp 0x4078f0
mov eax, dword [0x470288]
cmp eax, ebx
je 0x4078f0
push eax
call fcn.00402644
pop ecx
test eax, eax
je 0x4078f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4078f0
mov eax, dword [0x47028c]
cmp eax, ebx
je 0x4078f0
push eax
call fcn.00402644
pop ecx
test eax, eax
je 0x4078f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x470284]
call fcn.00402644
pop ecx
test eax, eax
je 0x407910
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407912
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x469fe5
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x46e004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test ebx, ebx
jle 0x46a042
and dword [ebp - 0x408], 0
lea ecx, [ebp - 0x408]
call fcn.00469fdd
mov al, byte [ebp - 0x408]
xor byte [edi + esi], al
cmp ebx, 0xf
jne 0x46a03d
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SleepEx]
inc esi
cmp esi, ebx
jl 0x469fff
pop esi
cmp ebx, 0x2d
jne 0x46a059
or dword [0x27583bc], 0xffffffff
mov dword [0x27583b8], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
leave
ret
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x2d5d75e7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0xb481217
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x410773
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004068d2
and dword [ebp - 4], 0
cmp dword [0x423b44], 0
mov ebx, eax
jne 0x410824
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4108d5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4108d5
push eax
call fcn.00406860
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423b44], eax
call esi
push eax
call fcn.00406860
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423b48], eax
call esi
push eax
call fcn.00406860
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423b4c], eax
call esi
push eax
call fcn.00406860
pop ecx
mov dword [0x423b54], eax
test eax, eax
je 0x410824
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406860
pop ecx
mov dword [0x423b50], eax
mov eax, dword [0x423b50]
cmp eax, ebx
je 0x41087c
cmp dword [0x423b54], ebx
je 0x41087c
push eax
call fcn.004068db
push dword [0x423b54]
mov esi, eax
call fcn.004068db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41087c
test edi, edi
je 0x41087c
call esi
test eax, eax
je 0x410873
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410873
test byte [ebp - 0xc], 1
jne 0x41087c
or dword [ebp + 0x10], 0x200000
jmp 0x4108b5
mov eax, dword [0x423b48]
cmp eax, ebx
je 0x4108b5
push eax
call fcn.004068db
pop ecx
test eax, eax
je 0x4108b5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4108b5
mov eax, dword [0x423b4c]
cmp eax, ebx
je 0x4108b5
push eax
call fcn.004068db
pop ecx
test eax, eax
je 0x4108b5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423b44]
call fcn.004068db
pop ecx
test eax, eax
je 0x4108d5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4108d7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x65c8763c
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x778f067b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x12045c75
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
nop
mov eax, str.hh
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x683c50ce
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4015b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x4015e4
test dl, 7
je 0x4015e4
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x431ed0]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015c4
cmp esi, 8
jb 0x401674
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x431ed0]
xor ecx, dword [eax*4 + 0x4322d0]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4326d0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x432ed0]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x4332d0]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4336d0]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x432ad0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x433ad0]
mov ebx, ecx
sub edi, 1
jne 0x4015f3
pop edi
test esi, esi
je 0x401690
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x431ed0]
inc edx
sub esi, 1
jne 0x401678
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c96
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401caf
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401d22
mov ecx, esi
call fcn.00401d83
test al, al
je 0x401cea
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401cea
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c96
jmp 0x401d25
cmp dword [esi + 0xc], 1
jne 0x401cff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401cff
xor eax, eax
jmp 0x401d25
cmp dword [esi + 0xc], 0
jne 0x401d1d
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401d1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401d1d
push ebx
jmp 0x401cde
or eax, 0xffffffff
jmp 0x401d25
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401dae
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1054
call fcn.00412910
push ebx
mov ebx, dword [esp + 0x1060]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1020], 0
cmp byte [edi + 0x1d], 0
jne 0x401dda
test bl, 4
jne 0x401dda
xor cl, cl
jmp 0x401ddc
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401e01
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401e10
or ebx, 2
xor eax, eax
lea ecx, [esp + 0x1c]
cmp byte [edi + 0x15], al
setne al
dec eax
and eax, 0x8000000
mov dword [esp + 0x10], eax
call fcn.00401a4d
cmp byte [edi + 0x1c], 0
je 0x401e37
or esi, 0x100
push 0
push dword [esp + 0x14]
push 3
push 0
push ebx
push esi
push dword [esp + 0x1080]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401eb9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x1070]
call fcn.004032ca
test al, al
je 0x401ea8
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401ea3
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x401eb9
cmp dword [esp + 0x14], 2
jne 0x401eb9
mov dword [edi + 0x1020], 1
cmp byte [edi + 0x1c], 0
pop esi
je 0x401edf
cmp ebp, 0xffffffff
je 0x401edf
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
cmp ebp, 0xffffffff
je 0x401f0d
push 0x800
push dword [esp + 0x1068]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.004065c8
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1054
ret 8
Function at 0x4021ff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x402212
mov al, 1
jmp 0x402300
cmp dword [edi + 0xc], 1
jne 0x402223
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x402278
xor esi, esi
test ebp, ebp
je 0x40229a
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x402248
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x40229a
add esi, 0x4000
cmp esi, ebp
jb 0x402238
jmp 0x402296
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x4022f8
cmp byte [edi + 0x14], 0
je 0x4022f8
cmp dword [edi + 0xc], 0
jne 0x4022f8
push 0
lea esi, [edi + 0x1e]
mov ecx, 0x450cd4
push esi
call fcn.0040176a
test al, al
je 0x4022eb
cmp dword [esp + 0x18], ebp
jae 0x402225
cmp dword [esp + 0x18], 0
jbe 0x402225
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x14]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0x10]
jmp 0x402225
push esi
push 0
mov ecx, 0x450cd4
call fcn.004019ac
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8

Function at 0x40244a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00412910
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40248f
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004032ca
test al, al
je 0x40248f
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4024cc
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00412910
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004035d9
movzx eax, word [eax]
cmp eax, 0x2e
je 0x4024fd
cmp eax, 0x20
je 0x4024fd
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402530
push esi
call fcn.00402436
test al, al
jne 0x402543
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.004032ca
test al, al
je 0x402543
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402543
cmp byte [ebp + 0xc], 0
je 0x40253f
push dword [ebp + 0x10]
push esi
call fcn.00402709
xor eax, eax
jmp 0x40255b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402558
cmp eax, 3
je 0x402558
xor eax, eax
inc eax
jmp 0x40255b
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402709
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00412910
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x402759
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004032ca
test al, al
je 0x402759
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4028b9
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00412910
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x402953
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x40297a
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.004032ca
test al, al
je 0x40292c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x40297a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402946
cmp eax, 3
je 0x402946
cmp eax, 0x12
je 0x402946
xor eax, eax
inc eax
jmp 0x402948
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402a28
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402972
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x402a28
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.004065c8
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004036b0
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.00407024
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.00407024
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.00407024
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x4032ca
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00412910
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4032e8
xor al, al
jmp 0x403452
push ebx
push edi
push esi
call fcn.00403459
push esi
call fcn.00417b93
pop ecx
push esi
mov edi, eax
call fcn.00403485
test al, al
je 0x40337a
push esi
call fcn.00403459
test al, al
je 0x403331
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40344e
push dword [ebp + 0x10]
push 0x42730c
push dword [ebp + 0xc]
call fcn.004065c8
push dword [ebp + 0x10]
jmp 0x403441
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40344e
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x40344e
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x40344e
push esi
push 0x42730c
push dword [ebp + 0xc]
call fcn.004065c8
push esi
push 0x427318
push dword [ebp + 0xc]
call fcn.004065a0
push esi
push ebx
jmp 0x403442
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40344e
cmp eax, ebx
ja 0x40344e
movzx eax, word [esi]
push eax
call fcn.004034bb
test al, al
je 0x4033e1
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x40344e
push edi
push 0x42730c
push dword [ebp + 0xc]
call fcn.004065c8
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.004065a0
jmp 0x403440
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402edc
lea eax, [ebp - 0x1000]
push eax
call fcn.00417b93
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x40344e
push edi
push 0x42730c
push dword [ebp + 0xc]
call fcn.004065c8
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.004065a0
cmp word [esi], 0x2e
jne 0x403440
movzx eax, word [esi + 2]
push eax
call fcn.004034bb
test al, al
je 0x403440
add esi, 4
push edi
push esi
push dword [ebp + 0xc]
call fcn.004065a0
mov al, 1
jmp 0x403450
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405220
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp dword [esp + 8], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [ecx + 0x18]
jbe 0x40529a
mov edx, dword [esp + 0x14]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x40524a
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x40527c
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 0xc], edi
lea edi, [ecx + 0x18]
sub dword [esp + 0xc], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x405266
mov edx, dword [esp + 0x14]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x10], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x14], edx
movups xmmword [eax], xmm1
jne 0x405238
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
ret 0xc

Function at 0x4052a3
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x405351
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x43ad40]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43a540]
xor dl, byte [esi + eax*4 + 0x43a140]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43a940]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x4052db
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4052d0
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.004141a0
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x4052c7
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret