joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40245f
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x40246f
xor eax, eax
leave
ret
test byte [0x41678c], 2
mov dword [ebp - 0x40], 0x40
jne 0x4024c4
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4024c4
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x4024c4
jb 0x4024a0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x4024c4
push 0x2b
call fcn.00401fa0
push eax
call fcn.00407744
pop ecx
pop ecx
cmp eax, 1
je 0x4024bd
or dword [0x41678c], 0xffffffff
jmp 0x40246b
or dword [0x41678c], 2
xor eax, eax
inc eax
leave
ret

Function at 0x4027b5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.00401424
cmp dword [ebp - 4], 1
jg 0x4027d3
push 1
lea ecx, [ebp - 0xc]
call fcn.00401139
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x4027f7
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x40282f
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402252
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401125
pop ecx
xor ecx, ecx
mov word [esi + eax*2], cx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.00401372
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x402b6c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00402501
push 0x413454
lea ecx, [ebp - 0xc]
call fcn.0040253a
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x402c48
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401338
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0040143c
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040253a
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x402c17
push 0x413450
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c2b
push 0x413448
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402c2b
push edi
call fcn.00402b6c
pop ecx
jmp 0x402c27
push 0
push edi
call esi
test eax, eax
je 0x402c6b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x402c6b
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402bb2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x402c6b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x402c6b
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x402c73
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
cmp dword [0x416810], 0
je 0x402c86
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402c9c
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x402cba
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402cb6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00402b6c
pop ecx
pop esi
ret

Function at 0x402d71
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00401424
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x402db0
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402252
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
xor ecx, ecx
mov word [eax + esi*2], cx
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x402f08
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.00401424
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402252
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402252
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401125
pop ecx
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403030
xor eax, eax
jmp 0x403089
test al, 0x10
je 0x403041
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x403089
mov eax, dword [0x416790]
test eax, eax
jne 0x403053
push esi
call fcn.00402fe6
pop ecx
jmp 0x403089
cmp eax, 2
jne 0x403086
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40304a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x40304a
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x40334d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402501
cmp dword [ebp - 0x10], 0
jg 0x40337e
push 0
lea ecx, [ebp - 0x18]
call fcn.00401139
movzx eax, word [esi + ebx*2 - 2]
mov edi, dword [ebp - 0x18]
cmp ax, 0x5c
je 0x403392
cmp ax, 0x2f
jne 0x40339d
xor eax, eax
mov word [edi + ebx*2 - 2], ax
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x4033c4
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x4033b6
cmp ax, 0x5c
je 0x4033b6
dec esi
test esi, esi
jg 0x4033a1
test esi, esi
je 0x403475
xor eax, eax
mov word [edi + esi*2], ax
push edi
call fcn.00401978
pop ecx
test eax, eax
je 0x4033b2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x4033fb
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403013
pop ecx
pop ecx
test eax, eax
je 0x4033fb
xor esi, esi
jmp 0x40349a
push edi
call fcn.00401978
pop ecx
test eax, eax
jne 0x403415
push edi
push 0xc
push 1
call fcn.004077a3
add esp, 0xc
jmp 0x4033f4
cmp esi, ebx
jge 0x403469
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x40344d
jmp 0x40344c
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403453
cmp ax, 0x2f
je 0x403453
inc esi
cmp word [edi + esi*2], cx
jne 0x40343c
xor eax, eax
push edi
mov word [edi + esi*2], ax
call fcn.00401978
pop ecx
test eax, eax
je 0x403406
cmp esi, dword [ebp - 4]
jl 0x403419
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x4034ba
mov ecx, dword [ebp + 8]
cmp ebx, 2
jne 0x4034a5
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x4034a5
cmp ax, 0x7a
ja 0x4034a5
cmp word [ecx + 2], 0x3a
jne 0x4034a5
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x4034ba
push ecx
push 0xc
push 1
call fcn.004077a3
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403faa
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.00401424
push 2
mov ecx, esi
call fcn.00402252
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
xor edx, edx
mov word [ecx], dx
and dword [esi + 4], edx
test eax, eax
jbe 0x403ffe
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402252
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.00401125
pop ecx
xor ecx, ecx
mov word [edi + eax*2], cx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402252
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.00401125
xor ecx, ecx
add esp, 0x10
mov word [edi + eax*2], cx
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404054
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x40400e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40405b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41638c], esi
jle 0x4040af
mov eax, dword [0x416390]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00401306
lea eax, [ebp - 0xc]
push eax
call fcn.00403b89
mov eax, dword [0x416390]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41638c]
pop ecx
jl 0x40406c
pop esi
leave
ret
Function at 0x404817
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x34
cmp word [eax + 2], 0x3a
push ebx
jne 0x4049d1
movzx ecx, word [eax + 4]
cmp cx, 0x5c
je 0x404840
cmp cx, 0x2f
jne 0x4049d1
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x10], ax
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x404872
push dword [ebp + 8]
jmp 0x4049d2
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00403faa
pop ecx
pop ecx
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x404999
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00401424
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00401338
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040253a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013f5
mov esi, 0x414250
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040253a
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.0040253a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013f5
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.0040253a
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040253a
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004013f5
push esi
lea ecx, [ebp - 0x1c]
call fcn.0040253a
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402764
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
cmp esi, ebx
pop esi
je 0x4049ac
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x4049ac
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push 0x41420c
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x4049d7
push dword [ebp - 0x28]
call fcn.00402c79
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x4049d8
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
leave
ret
Function at 0x404ad6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call fcn.00401f45
push 3
call fcn.00401fa0
push 0x28
mov dword [0x416784], eax
call fcn.00401fa0
push 2
mov dword [0x416780], eax
call fcn.00401fa0
push 5
mov dword [0x41677c], eax
call fcn.00401fa0
push 0x15
mov dword [0x416778], eax
call fcn.00401fa0
push 0x16
mov dword [0x416774], eax
call fcn.00401fa0
push 0x17
mov dword [0x416770], eax
call fcn.00401fa0
add esp, 0x1c
xor ebx, ebx
mov dword [0x41676c], eax
mov dword [0x416764], ebx
mov dword [0x416768], ebx
mov edi, 0x416384
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404bfa
push ebx
lea eax, [ebp - 0x98]
push str.7zSfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.00401424
lea ecx, [ebp - 0xc]
call fcn.00401424
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.00401338
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401338
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402f65
cmp dword [esi + 0x41635c], ebx
jne 0x404bea
push dword [esi + 0x416360]
lea ecx, [ebp - 0x18]
call fcn.00401338
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401338
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00402f65
add esi, 8
cmp esi, 0x28
jb 0x404bba
lea ecx, [ebp - 0x18]
call fcn.00401a79
inc ebx
cmp ebx, 0x40
jl 0x404b51
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406565
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00406527
add esp, 0x1c
leave
ret
Function at 0x4086aa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4086b2
mov dword [ecx*4 + 0x416960], eax
inc ecx
cmp ecx, 0x100
jb 0x4086ad
mov edx, 0x800
jmp 0x4086ff
mov eax, dword [ecx*4 + 0x416560]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x416960]
inc ecx
mov dword [ecx*4 + 0x41695c], eax
cmp ecx, edx
jb 0x4086de
mov dword [0x416820], 0x412b30
call fcn.0040d880
pop esi
test eax, eax
jne 0x408721
mov dword [0x416820], 0x412a50
ret
Function at 0x40da1f
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40da45
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40da45
xor al, al
jmp 0x40da65
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412810
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x411eae
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x411ec7
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x411eea
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x411eef
inc edi
cmp edi, dword [ebp - 4]
jb 0x411ee1
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x411fe7
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x411f46
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x411f1a
cmp cl, 0xff
jne 0x411f71
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x411f7f
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x411f86
dec ecx
shl edx, cl
and edx, 7
je 0x411f0b
movzx ecx, byte [edx + 0x4149dc]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x4149d4], 0
mov cl, byte [ebx + 4]
je 0x411f6e
test cl, cl
je 0x411f6e
cmp cl, 0xff
jne 0x411f0b
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x411edc
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x411fba
movzx esi, byte [edx + 0x4149dc]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x411fa5
cmp al, 0xff
jne 0x411fb7
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x411f38
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x411edc
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42ec70]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405c11
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x42ec70]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
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 [0x42ec70], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x405153
Capabilities:
Create process on windows

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

Function at 0x405218
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004054c7
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40524c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ec48], eax
jmp 0x4053e0
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40526a
test eax, eax
je 0x40538b
test byte [ebp + 0xc], 2
je 0x40538b
mov esi, 0x42b048
push edi
push esi
call fcn.004058f3
test ebx, ebx
je 0x405287
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40528d
push edi
call fcn.0040542d
cmp byte [edi], 0
jne 0x40529b
cmp byte [0x42b048], 0x5c
jne 0x4052a6
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405381
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405411
cmp byte [eax], 0
je 0x4052ec
cmp byte [ebp - 0x18], 0
je 0x4052ec
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405302
mov al, byte [esi + 1]
test al, al
je 0x405360
cmp al, 0x2e
jne 0x405302
cmp byte [esi + 2], 0
je 0x405360
push esi
push ebx
call fcn.004058f3
test byte [ebp - 0x148], 0x10
je 0x405327
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405360
push dword [ebp + 0xc]
push edi
call fcn.00405218
jmp 0x405360
push edi
call fcn.004055ab
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405358
test byte [ebp + 0xc], 4
je 0x405350
push edi
push 0xfffffffffffffff1
call fcn.00404c91
push 0
push edi
call fcn.00405641
jmp 0x405360
inc dword [0x42ec48]
jmp 0x405360
push edi
push 0xfffffffffffffff2
call fcn.00404c91
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4052ca
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x40538b
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4053e0
cmp dword [ebp - 8], esi
jne 0x4053a0
inc dword [0x42ec48]
jmp 0x4053e0
push edi
call fcn.00405bea
test eax, eax
je 0x4053e0
push edi
call fcn.004053e6
push edi
call fcn.004055ab
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053d8
test byte [ebp + 0xc], 4
je 0x405398
push edi
push 0xfffffffffffffff1
call fcn.00404c91
push esi
push edi
call fcn.00405641
jmp 0x4053e0
push edi
push 0xffffffffffffffe5
call fcn.00404c91
pop edi
pop esi
leave
ret 8