joyce8/EMBER2024-capa huggingface dataset:
Function at 0x571a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x571a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x571a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x572935
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x605580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5f7498
push esi
call fcn.004b647e
pop ecx
pop ecx
test eax, eax
jne 0x572963
xor al, al
jmp 0x5729e0
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00572676
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x57299d
push dword [ebp - 0x210]
call fcn.0049c833
xor al, al
jmp 0x5729de
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5729a3
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5729c3
push edx
call fcn.0057286c
pop ecx
test al, al
je 0x57298e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5729d1
mov bl, 1
push dword [ebp - 0x210]
call fcn.0049c833
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004883ab
leave
ret

Function at 0x574e8c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x605580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x574ecf
call fcn.004a27fc
mov dword [eax], 0xf
call fcn.004a280f
mov dword [eax], 0xd
call fcn.0049cb5a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004883ab
leave
ret
test eax, eax
jne 0x574ed6
inc eax
jmp 0x574ec3
add eax, 0x40
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]
mov ecx, eax
test ecx, ecx
je 0x574ec1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x574ec3

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4390e0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43910d
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x439129
call fcn.004062d0
mov dword [ebp - 8], eax
jmp 0x439130
mov dword [ebp - 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 4
lea eax, [ebp - 8]
push eax
push esi
call ebx
test eax, eax
je 0x43917b
cmp dword [ebp - 4], 4
jne 0x43917b
mov ecx, dword [edi]
test ecx, ecx
je 0x43915c
call fcn.0046b760
jmp 0x43915e
xor eax, eax
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 8]
push eax
push esi
call ebx
test eax, eax
je 0x43917b
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x43917b
mov bl, 1
jmp 0x43917d
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x439191
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b6a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0043a798
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0043a7ca
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0043a77f
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0043a7ba
adc eax, 0x68f09e9e
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.0043a7ba
dec eax
retf 0x2088

Function at 0x43d320
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
mov dword [ebp - 0x11c], 0
call fcn.00471730
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jb 0x43d385
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x43d3c9
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x43d3c9
cmp eax, 1
jne 0x43d3af
cmp word [ebp - 0xc], 2
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x43d3c9
cmp byte [ebp - 6], 1
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.00470e77
mov esp, ebp
pop ebp
ret
Function at 0x4a56b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
xor eax, eax
push ebp
push 0x4a57fc
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4a57d7
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0041239c
push dword [ebp - 8]
push 0x4a5818
lea edx, [ebp - 0x14]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004123d8
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00407648
mov eax, dword [ebp - 4]
call fcn.0041207c
test al, al
je 0x4a5761
push 1
push 0x4a581c
push 0x4a581c
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
push 0x4a5820
mov eax, ebx
call fcn.00479ce0
push eax
call sub.shell32.dll_ShellExecuteW
jmp 0x4a57cd
lea edx, [ebp - 0x18]
mov eax, dword [0x4ae1b4]
mov eax, dword [eax]
call fcn.004a10cc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 4]
call fcn.0041239c
mov eax, dword [ebp - 4]
test eax, eax
je 0x4a5798
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4a5798
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406a50
test eax, eax
je 0x4a57a1
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4a57cd
push 1
push 0x4a581c
push 0x4a581c
mov eax, dword [ebp - 4]
call fcn.00407134
push eax
push 0x4a5820
mov eax, ebx
call fcn.00479ce0
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a57e1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5803
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004070a0
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x6a5708de
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x17f13d4e
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402b10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x429290]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402ba4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402b61
cmp dword [ebp + 0x10], ebx
jne 0x402b98
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b10
test eax, eax
jne 0x402b73
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406207
cmp eax, ebx
je 0x402bab
push ebx
push dword [0x429290]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x429290], ebx
jne 0x402ba1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402ba1
jmp 0x402ba4
Function at 0x403123
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417e7c]
sub esi, dword [0x40bde8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x4291ec], eax
jle 0x40328d
push dword [0x41fe8c]
call fcn.004032d1
push ebx
push ebx
push dword [0x40bde8]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41fe88], esi
mov dword [0x417e78], ebx
mov ebp, 0x40be78
mov eax, dword [0x417e80]
mov edi, 0x4000
sub eax, dword [0x41fe8c]
cmp eax, edi
jg 0x403198
mov edi, eax
mov esi, 0x413e78
push edi
push esi
call fcn.0040329f
test eax, eax
je 0x40327f
add dword [0x41fe8c], edi
mov dword [0x40be08], esi
mov dword [0x40be0c], edi
cmp dword [0x4291f0], ebx
je 0x4031ef
cmp dword [0x429280], ebx
jne 0x4031ef
mov eax, dword [0x41fe88]
push ebx
sub eax, dword [0x417e7c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40bde8]
mov dword [0x417e78], eax
call fcn.00402cb0
pop ecx
mov ecx, 0x40bdf0
mov dword [0x40be10], ebp
mov dword [0x40be14], 0x8000
call fcn.00406343
test eax, eax
jl 0x403288
mov esi, dword [0x40be10]
sub esi, ebp
je 0x403249
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403284
cmp esi, dword [esp + 0x10]
jne 0x403284
add dword [0x40bde8], esi
cmp dword [0x40be0c], ebx
jne 0x4031be
jmp 0x403255
cmp dword [0x40be0c], ebx
jne 0x403288
cmp edi, ebx
je 0x403288
mov eax, dword [0x417e7c]
mov ecx, eax
sub ecx, dword [0x40bde8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403182
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40328d
or eax, 0xffffffff
jmp 0x403297
push 0xfffffffffffffffe
jmp 0x40328a
push 0xfffffffffffffffd
pop eax
jmp 0x403297
push 1
call fcn.00402cb0
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x40561f
Capabilities:
Create process on windows

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

Function at 0x4056e4
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405b01
mov edi, eax
cmp edi, 0xffffffff
je 0x405725
test byte [esp + 0x10], 1
push esi
je 0x405707
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40570d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405716
xor eax, eax
inc eax
jmp 0x405727
test byte [esp + 0x10], 4
jne 0x405725
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40572c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
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.00405a0d
test bl, 8
mov dword [ebp - 0xc], eax
je 0x40576b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429268], eax
jmp 0x4058fe
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405785
test eax, eax
je 0x4058ac
test bl, 2
je 0x4058ac
mov esi, 0x4246d8
push edi
push esi
call fcn.00405e9d
cmp dword [ebp + 8], 0
je 0x4057a4
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4057aa
push edi
call fcn.00405951
cmp word [edi], 0
jne 0x4057ba
cmp word [0x4246d8], 0x5c
jne 0x4057c5
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4058a1
lea eax, [ebp - 0x230]
push 0x3f
push eax
lea esi, [ebp - 0x230]
call fcn.00405932
xor ecx, ecx
cmp word [eax], cx
je 0x40580c
cmp word [ebp - 0x28], cx
je 0x40580c
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x405827
mov ax, word [esi + 2]
cmp ax, cx
je 0x405880
cmp ax, 0x2e
jne 0x405827
cmp word [esi + 4], cx
je 0x405880
push esi
push ebx
call fcn.00405e9d
test byte [ebp - 0x25c], 0x10
je 0x40584c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405880
push dword [ebp + 0xc]
push edi
call fcn.0040572c
jmp 0x405880
push dword [ebp - 4]
push edi
call fcn.004056e4
test eax, eax
jne 0x405878
cmp dword [ebp - 4], eax
je 0x405870
push edi
push 0xfffffffffffffff1
call fcn.00405151
push 0
push edi
call fcn.00405d37
jmp 0x405880
inc dword [0x429268]
jmp 0x405880
push edi
push 0xfffffffffffffff2
call fcn.00405151
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4057e8
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4058ac
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4058fe
cmp dword [ebp - 0xc], esi
jne 0x4058c0
inc dword [0x429268]
jmp 0x4058fe
push edi
call fcn.004061e0
test eax, eax
je 0x4058fe
push edi
call fcn.00405905
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056e4
test eax, eax
jne 0x4058f6
cmp dword [ebp - 4], esi
je 0x4058b8
push edi
push 0xfffffffffffffff1
call fcn.00405151
push esi
push edi
call fcn.00405d37
jmp 0x4058fe
push edi
push 0xffffffffffffffe5
call fcn.00405151
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405a0d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424ed8
push esi
call fcn.00405e9d
push esi
call fcn.004059b0
mov edi, eax
test edi, edi
jne 0x405a2e
xor eax, eax
jmp 0x405a86
push edi
call fcn.00406131
test byte [0x4291f8], 0x80
je 0x405a4b
mov ax, word [edi]
test ax, ax
je 0x405a2a
cmp ax, 0x5c
je 0x405a2a
sub edi, esi
sar edi, 1
jmp 0x405a65
call fcn.004061e0
test eax, eax
je 0x405a5f
test byte [eax], 0x10
je 0x405a2a
push esi
call fcn.00405951
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405a51
call fcn.00405905
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 0x405b01
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 0x405b20
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 0x405b26
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 0x405b55
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 [0x40953c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409540]
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 0x405ba5
test edi, edi
jne 0x405b62
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405b9f
Function at 0x405ba9
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d70
push 0x409560
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405bf8
push 1
push 0
push esi
call fcn.00405b26
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405d31
cmp eax, edi
jg 0x405d31
mov esi, 0x426570
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405d31
cmp eax, edi
jg 0x405d31
push esi
push ebx
push str._ls_ls_r_n
push 0x425970
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405ebf
push 4
push 0xc0000000
push esi
call fcn.00405b26
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405d31
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 0x405d2a
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405d2a
cmp edi, dword [esp + 0x10]
jne 0x405d2a
push str._Rename__r_n
push esi
call fcn.00405a8b
test eax, eax
jne 0x405cc0
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405cf5
add eax, 0xa
push 0x409544
push eax
call fcn.00405a8b
mov ebp, eax
test ebp, ebp
je 0x405cf1
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ce2
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405cdc
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405cf7
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425970
push eax
call fcn.00405ae1
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
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]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405d6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405dde
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405dcb
cmp dword [ebp + 0x14], 1
je 0x405dce
cmp dword [ebp + 0x14], 2
je 0x405dce
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x4062b5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x426d74], 0
push esi
jne 0x4062ec
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 0x4062c6
mov dword [ecx*4 + 0x426d70], eax
inc ecx
cmp ecx, 0x100
jl 0x4062c1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40631d
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 + 0x426d70]
xor eax, esi
inc ecx
dec edx
jne 0x4062ff
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034