joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a4c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x42c420], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x42c41c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x42c420], eax
cmp ecx, 0x26f
jl 0x40a4d0
mov dword [0x415900], 0x270
ret

Function at 0x40a510
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x42b010]
cmp eax, dword [0x415420]
je 0x40a528
mov dword [0x415900], 0x271
cmp dword [0x415900], 0x270
jl 0x40a647
cmp dword [0x415900], 0x271
jne 0x40a55f
mov eax, dword [0x42b010]
call fcn.0040a4c0
mov eax, dword [0x42b010]
not eax
mov dword [0x42b010], eax
mov dword [0x415420], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x42c424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x42c420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x42ca54]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x415910]
xor edx, eax
mov dword [ebx*4 + 0x42c420], edx
cmp ebx, 0xe2
jl 0x40a568
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x42c424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x42c420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x42c094]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x415910]
xor edx, eax
mov dword [ebx*4 + 0x42c420], edx
cmp ebx, 0x26e
jl 0x40a5bc
mov eax, dword [0x42cddc]
and eax, 0x80000000
mov edx, dword [0x42c420]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x42ca50]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x415910]
xor eax, edx
mov dword [0x42cddc], eax
mov dword [0x415900], 0
mov eax, dword [0x415900]
mov eax, dword [eax*4 + 0x42c420]
add dword [0x415900], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x40c0d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x415180]
cmp ax, 0xcb
je 0x40c1cc
cmp ax, 0xcc
je 0x40c1cc
mov edx, dword [0x42d030]
test edx, edx
je 0x40c102
mov eax, dword [0x42ced0]
call edx
mov ebx, eax
jmp 0x40c107
mov ebx, 0x42ced4
cmp word [0x42cec0], 0
jle 0x40c12a
mov eax, 0x42cea0
call fcn.0040c340
mov eax, ebx
call fcn.0040bcb0
mov eax, ebx
call fcn.0040bd20
mov edi, dword [ebx]
jmp 0x40c14a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40c145
mov edx, edi
mov eax, ebx
call fcn.0040b180
jmp 0x40c148
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40c130
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x42cec0], 0
jle 0x40c1cc
mov edx, 0x42cde0
mov eax, ebx
call fcn.0040b2b0
mov edi, eax
test edi, edi
je 0x40c19f
mov eax, dword [0x42ce74]
mov dword [edi + 0xc], eax
cmp dword [0x42ce74], 0
je 0x40c194
mov eax, dword [0x42ce74]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x42ce74], eax
sub word [0x42cec0], 1
cmp word [0x42cec0], 0
sete bl
mov eax, 0x42cea0
call fcn.0040c350
test bl, bl
je 0x40c1cc
mov eax, 0x42cea0
call fcn.0040c330
pop edi
pop esi
pop ebx
ret
Function at 0x40f6f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x40
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40f875
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40f869
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40f7cc
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40f869
mov eax, ebx
and eax, 0x20000000
je 0x40f7de
mov dword [ebp - 0x68], 1
jmp 0x40f7e5
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40f7f7
mov dword [ebp - 0x64], 1
jmp 0x40f7fe
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40f810
mov dword [ebp - 0x60], 1
jmp 0x40f817
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40f829
mov dword [ebp - 0x5c], 1
jmp 0x40f830
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40f856
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 4]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40f774
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
mov eax, section..retplne
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x75080275
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..reloc
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x29624af7
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
mov eax, section..rsrc
mov ebx, 0x40915c
nop
mov ecx, 0x77e27710
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x7d3c142c
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
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 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x3fb23f27
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
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
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x1106707d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4038fc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408398]
jne 0x403906
repz ret
jmp fcn.00403dae

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x4034a8
Capabilities:
Check os version

Disassembly:
sub esp, 0x184
push ebx
push esi
push edi
xor ebx, ebx
push 0x8001
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], str.Error_writing_temporary_file._Make_sure_your_temp_folder_is_valid.
mov dword [esp + 0x20], ebx
mov byte [esp + 0x14], 0x20
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xbfffffff
mov dword [0x4243e0], eax
cmp ax, 6
je 0x4034fa
push ebx
call fcn.00405e50
cmp eax, ebx
je 0x4034fa
push 0xc00
call eax
jmp 0x40a252
Function at 0x405774
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408658
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x408648
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4057c5
xor eax, eax
jmp 0x4057f2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4057f1
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x4057ef
xor eax, eax
jmp 0x4057f1
call esi
pop esi
leave
ret 4

Function at 0x405813
Capabilities:
Create process on windows

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

Function at 0x405856
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
push eax
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405a2b
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405a31
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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 0x405a60
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
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405aa4
test edi, edi
jne 0x405a6b
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a9e
Function at 0x405be6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x400
push dword [ebp + 8]
call fcn.00405b85
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405c55
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov byte [esi + 0x3ff], 0
pop edi
jne 0x405c55
cmp dword [ebp + 0xc], 1
je 0x405c58
cmp dword [ebp + 0xc], 2
je 0x405c58
mov byte [esi], 0
pop esi
leave
ret 0x14

Function at 0x405de2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x405e06
xor eax, eax
test eax, eax
je 0x405e18
cmp byte [ebp + eax - 0x121], 0x5c
je 0x405e18
xor ecx, ecx
jmp 0x405e1b
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x4082a0]
push ecx
lea eax, [ebp + eax - 0x120]
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 8
push 0
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405a0b
mov edi, eax
cmp edi, 0xffffffff
je 0x405f5e
test byte [esp + 0x10], 1
push esi
je 0x405f47
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x405f4f
xor eax, eax
inc eax
jmp 0x405f60
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x405f3e
test byte [esp + 0x10], 4
jne 0x405f5e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421a28
push esi
call fcn.00405cff
push esi
call fcn.0040593c
mov edi, eax
test edi, edi
jne 0x406019
xor eax, eax
jmp 0x406071
push edi
call fcn.00405d21
test byte [0x42444c], 0x80
je 0x406032
mov al, byte [edi]
test al, al
je 0x406015
cmp al, 0x5c
je 0x406015
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x406052
push esi
call fcn.00405dbb
test eax, eax
je 0x40604c
test byte [eax], 0x10
je 0x406076
push esi
call fcn.00405f92
push esi
call ebx
cmp eax, edi
jg 0x40603d
push esi
call fcn.00405f65
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406070
Function at 0x4062cb
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov dword [0x421e28], 0x4c554e
mov edi, 0x400
mov ebp, 0x421e28
test esi, esi
je 0x406317
push 1
push 0
push esi
call fcn.00405a31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406436
cmp eax, edi
jg 0x406436
push edi
mov esi, 0x422b68
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406436
cmp eax, edi
jg 0x406436
push esi
push ebp
push str._s_s_r_n
push 0x422368
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4243f0]
push dword [eax + 0x128]
push esi
call fcn.0040607a
push 4
push 0xc0000000
push esi
call fcn.00405a31
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x406436
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 0x40642f
push edi
push esi
push ebp
call fcn.00405aa8
test eax, eax
je 0x40642f
push str._Rename__r_n
push esi
call fcn.00405991
test eax, eax
jne 0x4063cd
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406402
push 0x4086f4
add eax, 0xa
push eax
call fcn.00405991
mov ebp, eax
test ebp, ebp
je 0x4063fe
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4063ef
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4063e9
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406404
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x422368
add eax, esi
push eax
call fcn.004059e7
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405ad7
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
ret

Function at 0x40643b
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40645e
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062cb
pop ecx
pop ecx
inc dword [0x4244b0]
ret 8
Function at 0x406467
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
and esi, 4
push ebx
mov dword [ebp - 4], esi
call fcn.00405ff8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4064a6
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4244a8], eax
jmp 0x406631
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push edi
je 0x4064c1
test eax, eax
je 0x4065df
test cl, 2
je 0x4065df
push ebx
mov esi, 0x422768
push esi
call fcn.00405cff
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4064e3
push str..
push esi
call edi
jmp 0x4064e9
push ebx
call fcn.00405f92
cmp byte [ebx], 0
jne 0x4064f7
cmp byte [0x422768], 0x5c
jne 0x4064ff
push 0x4082a0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4065d2
lea esi, [ebp - 0x120]
push 0x3f
mov eax, esi
push eax
call fcn.004058f6
cmp byte [eax], 0
je 0x406542
cmp byte [ebp - 0x1c], 0
je 0x406542
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x406558
mov al, byte [esi + 1]
test al, al
je 0x4065b1
cmp al, 0x2e
jne 0x406558
cmp byte [esi + 2], 0
je 0x4065b1
push esi
push edi
call fcn.00405cff
test byte [ebp - 0x14c], 0x10
je 0x40657d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4065b1
push dword [ebp + 0xc]
push ebx
call fcn.00406467
jmp 0x4065b1
push dword [ebp - 4]
push ebx
call fcn.00405f1d
test eax, eax
jne 0x4065a9
cmp dword [ebp - 4], eax
je 0x4065a1
push ebx
push 0xfffffffffffffff1
call fcn.00404b37
push 0
push ebx
call fcn.0040643b
jmp 0x4065b1
inc dword [0x4244a8]
jmp 0x4065b1
push ebx
push 0xfffffffffffffff2
call fcn.00404b37
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406524
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
mov esi, dword [ebp - 4]
je 0x4065df
mov byte [edi - 1], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x406630
cmp dword [ebp - 0xc], edi
je 0x406620
push ebx
call fcn.00405dbb
test eax, eax
je 0x406630
push ebx
call fcn.00405f65
mov eax, esi
or eax, 1
push eax
push ebx
call fcn.00405f1d
test eax, eax
jne 0x406628
cmp esi, edi
je 0x406620
push ebx
push 0xfffffffffffffff1
call fcn.00404b37
push edi
push ebx
call fcn.0040643b
jmp 0x406630
inc dword [0x4244a8]
jmp 0x406630
push ebx
push 0xffffffffffffffe5
call fcn.00404b37
pop edi
pop esi
pop ebx
leave
ret 8