joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401565
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x5e4, 0
sub ebp, 0x8e
lea ebx, [ebp - 0x42]
push ebx
xor eax, eax
push ebx
mov word [ebp - 0x42], ax
call dword [sym.imp.SHLWAPI.DLL_PathAddExtensionW]
lea eax, [ebp - 0x556]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push 0x104
lea ebx, [ebp - 0x34e]
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
push 0x104
lea eax, [ebp - 0x146]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea ebx, [ebp - 0x556]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
lea eax, [ebp + 0x3e]
push eax
push eax
mov byte [ebp + 0x3e], 0
call dword [sym.imp.SHLWAPI.DLL_PathAddExtensionA]
xor eax, eax
push ebx
mov word [ebp + 0x7e], ax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp + 0x7e]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push 0
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsW]
lea eax, [ebp - 0x146]
push eax
lea ebx, [esi - 3]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
lea esp, [ebp + 0x8e]
pop ebp
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401e31
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
lea edx, [eax - 1]
mov ebx, eax
and edx, dword [0x403050]
mov eax, 0x403054
call fcn.00401db0
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402da2
push edx
sub edi, fcn.0040254c
push edi
xor eax, eax
push fcn.0040254c
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401ef5
mov eax, fcn.0040254c
mov ebx, esi
mov edx, edi
call fcn.00401db0
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.004013ed
jmp 0x401ef5
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x421a90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401d76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401a50
mov ecx, dword [0x42d88c]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
jne 0x421adb
push 0x42d88c
push 0x4063c0
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x42d88c]
lea eax, [ebp - 0x20]
push eax
xor ecx, ecx
mov ebx, dword [esi]
mov edi, 0x65
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
push eax
mov edx, dword [ebp - 0x2c]
sub esp, 0x10
mov eax, 2
mov ecx, esp
push esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], edx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
call dword [ebx + 0x34]
test eax, eax
fnclex
jge 0x421b29
push 0x34
push 0x4063b0
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push eax
push ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
movzx ax, byte [0x42d038]
sub ax, 1
jo 0x421c53
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x14], esi
cmp si, ax
jg 0x421c27
movzx bx, byte [0x42d039]
sub bx, 1
jo 0x421c53
mov dword [ebp - 0x48], ebx
xor edi, edi
cmp di, bx
jg 0x421c13
push 0
push edi
push esi
push 0x65
call fcn.0041bd90
mov eax, dword [0x42d06c]
test eax, eax
je 0x421be0
cmp word [eax], 2
jne 0x421be0
mov edx, dword [eax + 0x18]
movsx ecx, si
sub ecx, dword [eax + 0x1c]
cmp ecx, edx
mov dword [ebp - 0x38], ecx
jb 0x421bb6
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [0x42d06c]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
movsx ebx, di
sub ebx, edx
cmp ebx, ecx
jb 0x421bd0
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [0x42d06c]
mov esi, dword [eax + 0x18]
mov eax, dword [ebp - 0x38]
imul esi, ebx
mov ebx, dword [ebp - 0x48]
add esi, eax
jmp 0x421be8
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov esi, eax
xor ecx, ecx
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
mov edx, dword [0x42d06c]
mov ecx, dword [edx + 0xc]
mov byte [ecx + esi], al
mov esi, dword [ebp - 0x14]
mov eax, 1
add ax, di
jo 0x421c53
mov edi, eax
mov eax, dword [ebp - 0x40]
jmp 0x421b78
mov ecx, 1
add cx, si
jo 0x421c53
mov dword [ebp - 0x14], ecx
mov esi, ecx
jmp 0x421b58
push 0x421c42
jmp 0x421c38
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
Function at 0x40105e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, eax
test ecx, ecx
jne 0x401069
xor eax, eax
pop edi
ret
or eax, 0xffffffff
cmp edi, 8
push esi
mov edx, 0xff
jl 0x401120
mov esi, edi
shr esi, 3
push ebx
mov ebx, esi
imul ebx, ebx, 0xfffffff8
add edi, ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x40aa90]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x40aa90]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x40aa90]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x40aa90]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x40aa90]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x40aa90]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x40aa90]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x40aa90]
inc ecx
dec esi
jne 0x401088
pop ebx
test edi, edi
je 0x401139
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x40aa90]
inc ecx
dec edi
jne 0x401124
pop esi
not eax
pop edi
ret

Function at 0x4016da
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov esi, eax
xor edi, edi
lea eax, [ebp - 0xc]
push eax
push 0x40af80
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.004017c4
cmp eax, 4
jne 0x4017bb
push 0xa
push 0x40af84
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4017bb
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401825
cmp eax, edi
je 0x4017bb
push ebx
mov ebx, dword [ebp - 8]
cmp ebx, edi
je 0x4017ba
mov eax, 0x400
mov ecx, eax
cmp dword [ebp - 4], eax
jae 0x401750
mov ecx, dword [ebp - 4]
xor eax, eax
cmp ecx, edi
jbe 0x40175f
xor byte [eax + ebx], 0x7b
inc eax
cmp eax, ecx
jb 0x401756
mov eax, dword [ebp - 4]
mov ecx, ebx
call fcn.0040105e
cmp eax, dword [ebp - 0xc]
jne 0x4017ba
push edi
push 0xa0
push 2
push edi
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x4017ba
cmp esi, 0xffffffff
je 0x4017ba
push edi
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4017b3
cmp dword [ebp - 0x10], edi
jne 0x4017b3
mov dword [ebp - 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
leave
ret 4
Function at 0x4017c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push edi
push 0xa
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401821
push ebx
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x401820
cmp dword [esp + 0x10], 0
je 0x401820
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40181e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40181e
cmp ebx, 4
jbe 0x401810
push 4
pop ebx
push ebx
push eax
push dword [esp + 0x18]
call fcn.00402070
add esp, 0xc
mov eax, ebx
pop ebx
pop edi
ret 8

Function at 0x401825
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 8]
mov dword [ecx], eax
test eax, eax
jne 0x40183f
xor eax, eax
jmp 0x401865
push dword [esp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40183b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
ret 0xc

Function at 0x401868
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SOFTWAREKuaiKuaiKKGame
mov ebx, 0x80000002
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call edi
cmp eax, esi
jne 0x4018ed
mov ebx, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.PartnerCode
push ebx
call edi
test eax, eax
jne 0x4018d9
mov eax, dword [esi + 8]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push 0
push str.PartnerCode1
push ebx
call edi
test ebx, ebx
je 0x4018e4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
lea esi, [ebp - 4]
call fcn.00401691
lea eax, [ebp - 8]
push eax
push 0x2001f
xor esi, esi
push esi
push str.SOFTWAREKuaiKuaiKKGame
push ebx
mov dword [ebp - 8], esi
call edi
cmp eax, esi
jne 0x40192d
xor eax, eax
cmp dword [ebp - 4], esi
je 0x401920
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 8]
cmp eax, esi
je 0x40189c
jmp 0x4018d9
mov ebx, dword [ebp - 4]
jmp 0x4018d9
Function at 0x401cf1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00401ff0
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00401ff0
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x58], 0x44
push esi
push esi
push 1
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401d59
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
inc eax
pop esi
leave
ret 8

Function at 0x401d5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c060]
jne 0x401d68
repz ret
jmp fcn.0040272f

Function at 0x4066d9
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.00404d52
and dword [ebp - 4], 0
cmp dword [0x40d668], 0
mov ebx, eax
jne 0x40678a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40683b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x409954
push edi
call esi
test eax, eax
je 0x40683b
push eax
call fcn.00404ce0
mov dword [esp], 0x409944
push edi
mov dword [0x40d668], eax
call esi
push eax
call fcn.00404ce0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d66c], eax
call esi
push eax
call fcn.00404ce0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40d670], eax
call esi
push eax
call fcn.00404ce0
pop ecx
mov dword [0x40d678], eax
test eax, eax
je 0x40678a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ce0
pop ecx
mov dword [0x40d674], eax
mov eax, dword [0x40d674]
cmp eax, ebx
je 0x4067e2
cmp dword [0x40d678], ebx
je 0x4067e2
push eax
call fcn.00404d5b
push dword [0x40d678]
mov esi, eax
call fcn.00404d5b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4067e2
test edi, edi
je 0x4067e2
call esi
test eax, eax
je 0x4067d9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4067d9
test byte [ebp - 0xc], 1
jne 0x4067e2
or dword [ebp + 0x10], 0x200000
jmp 0x40681b
mov eax, dword [0x40d66c]
cmp eax, ebx
je 0x40681b
push eax
call fcn.00404d5b
pop ecx
test eax, eax
je 0x40681b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40681b
mov eax, dword [0x40d670]
cmp eax, ebx
je 0x40681b
push eax
call fcn.00404d5b
pop ecx
test eax, eax
je 0x40681b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d668]
call fcn.00404d5b
pop ecx
test eax, eax
je 0x40683b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40683d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x41067b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41068a
pop dword [ebp - 0x10]
mov eax, 0x41068a
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x6092f90d
add dword [ebp - 0x20], 0xedbf4c3e
mov dword [ebp - 0x1c], 0xa95800b4
add dword [ebp - 0x1c], 0x88db4b91
mov dword [ebp - 0x18], 0x32ac206f
add dword [ebp - 0x18], 0x19a023bf
mov dword [ebp - 0x14], 0x6dc4bfa5
sub dword [ebp - 0x14], 0x6dc4bfa5
lea eax, [ebp - 0x20]
push eax
mov eax, 0xa3259027
sub eax, 0xa2e35fb3
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x4b051afe
add dword [ebp - 0x20], 0x296d4e58
mov dword [ebp - 0x1c], 0xd0d3209
sub dword [ebp - 0x1c], 0xcba0d094
mov dword [ebp - 0x18], 0xccc147b5
sub dword [ebp - 0x18], 0x6951db49
mov dword [ebp - 0x14], 0xcc1093da
sub dword [ebp - 0x14], 0xcc1093da
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, 0xd332585f
sub eax, 0xd2f0273b
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x3b63b
push 0
call eax
mov ecx, 0x11a0e013
sub ecx, 0x11a0a170
mov edi, eax
mov ebx, 0x12ff063e
add ebx, 0xed443dc2
add ebx, dword [ebp - 0x10]
mov esi, 0x84234968
sub esi, 0x47bce850
mov dword [ebp - 0xc], 0x811776ff
mov edx, dword [ebx]
sub dword [ebp - 0xc], 0xcfbac227
add edx, esi
xor dword [ebp - 4], 0x5aa16a8f
mov dword [edi], edx
add dword [ebp - 8], 0x243dd73f
add edi, 4
add ebx, 0x8dc615c4
sub ebx, 0x8dc615c0
loop 0x4107a7
add eax, 0x9e52dff3
add eax, 0x61ae0d6c
xor ebx, ebx
add ebx, eax
add eax, 0xa02e3d06
add eax, 0x5fd1c2ff
mov ecx, 0x84a7512d
add ecx, 0x7b98aed3
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4053e8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.004046ab
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d94
call fcn.00407360
push esi
push edi
push 0x491c90
call fcn.00407360
push esi
push edi
push 0x491b8c
call fcn.00407360
push esi
push edi
push 0x491a88
call fcn.00407360
push esi
push edi
push 0x491984
call fcn.00407360
add esp, 0x40
push str._a__v
push 0x1ebc
push 0x40e0d4
call fcn.00403529
push 0x491ea0
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491ea8], edi
mov dword [0x491e98], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x4054a8
cmp dword [ebp - 0x8c], ebx
jne 0x4054a8
mov dword [0x491ea8], ebx
call fcn.004048ef
mov esi, 0x7d000
push esi
call fcn.00407bff
cmp eax, edi
pop ecx
mov dword [0x491980], eax
jne 0x4054c6
xor eax, eax
jmp 0x4054ea
push esi
push edi
push eax
call fcn.00407360
call fcn.004055a8
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.0040530f
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4055a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x40560d
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491eb0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491eac], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491eb4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x405637
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491eb8], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x405658
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491ebc], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4068f2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00406437
mov ecx, dword [ebp + 0xc]
test cl, 8
mov dword [ebp - 4], eax
je 0x406927
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x424048], eax
jmp 0x406a8b
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406942
test eax, eax
je 0x406a8a
test cl, 2
je 0x406a46
push edi
push ebx
mov esi, 0x422b58
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406966
push 0x407614
push esi
call edi
jmp 0x40696c
push ebx
call fcn.00406411
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x144]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406a3b
cmp byte [ebp - 0x118], 0x2e
jne 0x4069b3
cmp byte [ebp - 0x117], 0x2e
je 0x406a1e
cmp byte [ebp - 0x117], 0
je 0x406a1e
lea eax, [ebp - 0x118]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x4069e0
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406a1e
push dword [ebp + 0xc]
push ebx
call fcn.004068f2
jmp 0x406a1e
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406a16
test byte [ebp + 0xc], 4
je 0x406a0e
push ebx
push 0xfffffffffffffff1
call fcn.004053f6
push 0
push ebx
call fcn.0040650b
jmp 0x406a1e
inc dword [0x424048]
jmp 0x406a1e
push ebx
push 0xfffffffffffffff2
call fcn.004053f6
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406998
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x406a45
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp - 4], esi
je 0x406a8a
cmp dword [ebp + 8], esi
je 0x406a8a
push ebx
call fcn.004063e4
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406a82
test byte [ebp + 0xc], 4
je 0x406a7a
push ebx
push 0xfffffffffffffff1
call fcn.004053f6
push esi
push ebx
call fcn.0040650b
jmp 0x406a8a
inc dword [0x424048]
jmp 0x406a8a
push ebx
push 0xffffffffffffffe5
call fcn.004053f6
pop esi
pop ebx
leave
ret 8

Function at 0x4255d0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4255d6
ret
Function at 0x409990
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46819b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045cc81
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409a12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045aa00
mov eax, dword [eax]
push 0x4ba1f0
push eax
call fcn.0044d634
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045cf0c
test bl, bl
je 0x409a12
push 0x4ba1f0
lea ecx, [esp + 0xc]
call fcn.0045d29c
push 0x4bdd78
lea ecx, [esp + 0xc]
call fcn.0045d29c
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x409a4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045cf0c
jmp 0x409b19
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409ad2
lea edx, [esp + 0x7c]
push 0x4bdd74
push edx
call fcn.0044d634
add esp, 8
test eax, eax
je 0x409ad2
lea eax, [esp + 0x7c]
push 0x4bdd70
push eax
call fcn.0044d634
add esp, 8
test eax, eax
je 0x409ad2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x409a62
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045cf0c
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40a310
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40a372
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc