joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408169
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x40820f
cmp dword [ebx + 4], 0xffffffff
jne 0x40820f
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x408196
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x4081cd
cmp ax, 0x2f
je 0x4081cd
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x4081ba
mov edi, esi
mov esi, 0x42b878
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.004089e0
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.004076e3
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x408214
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x412e4d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431c20]
jne 0x412e57
repz ret
jmp fcn.0041771b
Function at 0x42222f
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.004179f0
and dword [ebp - 4], 0
cmp dword [0x435abc], 0
mov ebx, eax
jne 0x4222e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422391
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422391
push eax
call fcn.0041797e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x435abc], eax
call esi
push eax
call fcn.0041797e
mov dword [esp], 0x42a634
push edi
mov dword [0x435ac0], eax
call esi
push eax
call fcn.0041797e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x435ac4], eax
call esi
push eax
call fcn.0041797e
pop ecx
mov dword [0x435acc], eax
test eax, eax
je 0x4222e0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041797e
pop ecx
mov dword [0x435ac8], eax
mov eax, dword [0x435ac8]
cmp eax, ebx
je 0x422338
cmp dword [0x435acc], ebx
je 0x422338
push eax
call fcn.004179f9
push dword [0x435acc]
mov esi, eax
call fcn.004179f9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422338
test edi, edi
je 0x422338
call esi
test eax, eax
je 0x42232f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42232f
test byte [ebp - 0xc], 1
jne 0x422338
or dword [ebp + 0x10], 0x200000
jmp 0x422371
mov eax, dword [0x435ac0]
cmp eax, ebx
je 0x422371
push eax
call fcn.004179f9
pop ecx
test eax, eax
je 0x422371
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422371
mov eax, dword [0x435ac4]
cmp eax, ebx
je 0x422371
push eax
call fcn.004179f9
pop ecx
test eax, eax
je 0x422371
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x435abc]
call fcn.004179f9
pop ecx
test eax, eax
je 0x422391
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422393
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452589
Capabilities:
Check for software breakpoints

Disassembly:
push eax
call 0x45258f
pop ebx
sub ebx, 0x1a2
mov ecx, 0x153ed
sub ebx, ecx
mov esi, ebx
sub ebx, 0x3c000
mov edi, ebx
sub ebx, 0x1000
push edi
push ecx
push esi
call fcn.0045243e
add esp, 0xc
mov ebp, dword [ebx + 0xc0]
lea ebp, [ebx + ebp]
dec ebp
mov cl, byte [ebp]
cmp cl, 0xcc
je 0x4525c1
sub ebp, 9
mov edx, ebx
sub edx, dword [ebx + 0x74]
add dword [ebp], edx
add ebp, 6
add dword [ebp], edx
lea edx, [eax - 4]
sub edx, dword [edx]
mov esi, ebx
add esi, dword [edx + 0x10c]
mov edi, dword [edx + 0x104]
mov ecx, 0x1eb7a
call fcn.0045255f
mov esi, dword [edx + 0x80]
push edx
add esi, ebx
mov eax, dword [esi + 0xc]
or eax, eax
je 0x45264b
add eax, ebx
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebp, eax
mov ecx, dword [esi]
add ecx, ebx
mov edi, dword [esi + 0x10]
add edi, ebx
mov eax, dword [ecx]
or eax, eax
je 0x452646
pushal
test eax, 0x80000000
je 0x452630
and eax, 0x7fffffff
jmp 0x452634
lea eax, [ebx + eax + 2]
push eax
push ebp
call sub.kernel32.dll_GetProcAddress
mov dword [edi], eax
popal
add edi, 4
add ecx, 4
jmp 0x45261b
add esi, 0x14
jmp 0x452601
pop edx
mov ebp, ebx
sub ebp, dword [edx + 0x34]
mov esi, dword [edx + 0xa0]
add esi, ebx
cmp esi, ebx
je 0x452695
push edx
mov eax, dword [esi + 4]
or eax, eax
je 0x452694
mov ecx, dword [esi]
add ecx, ebx
add esi, 8
sub eax, 8
shr eax, 1
mov edx, esi
lea edi, [eax + esi]
lea esi, [eax + edi]
xor eax, eax
add al, byte [edx]
adc ah, byte [edi]
test ah, 0x30
je 0x45268c
push eax
and ah, 0xf
add dword [ecx + eax], ebp
pop eax
inc edx
inc edi
cmp edi, esi
jb 0x45267b
jmp 0x45265e
pop edx
pop eax
cmp eax, 0xd0dec0de
je 0x4526a2
add ebx, dword [edx + 0x28]
jmp ebx
ret 0xc
Function at 0x40688e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40689c
call 0x8566803
mov al, byte [0x8b640041]
cmp eax, 0x30
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44ee30], eax
sub eax, eax
je 0x4068c1
jmp 0xa8cf50e4
call 0x401154
call 0x406651
pop edi
xor eax, eax
pop esi
ret

Function at 0x407515
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x407554
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407554
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407554
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407554
cmp dword [ecx + 0x74], 0xe
jbe 0x407554
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5eb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2c8
push 0x41c2c0
push str.FlsAlloc
push 0x1e
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d61f
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
jmp 0x40d625
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d669
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c2d8
push 0x41c2d0
push str.FlsGetValue
push 0x20
call fcn.0040d4ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d6a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x401533
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x423cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4015c8
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x401585
cmp dword [ebp + 0x10], ebx
jne 0x4015bc
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401533
test eax, eax
jne 0x401597
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x40156c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405bfd
cmp eax, ebx
je 0x4015cf
push ebx
push dword [0x423cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4015c8
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 [0x423cb0], ebx
jne 0x4015c5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4015c5
jmp 0x4015c8
Function at 0x402e34
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41ad7c]
sub esi, dword [0x41ed88]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x423c20], eax
jle 0x402f92
push dword [0x41ed84]
call fcn.00402e1d
push ebx
push ebx
push dword [0x41ed88]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41ad78], esi
mov dword [0x40acec], ebx
mov ebp, 0x412d78
mov eax, dword [0x41ed80]
sub eax, dword [0x41ed84]
mov edi, 0x4000
cmp eax, edi
jg 0x402ea9
mov edi, eax
push edi
mov esi, 0x41ad80
push esi
call fcn.00402deb
test eax, eax
je 0x402fa4
add dword [0x41ed84], edi
mov dword [0x412d08], esi
mov dword [0x412d0c], edi
cmp dword [0x423bcc], ebx
je 0x402f00
cmp dword [0x423ca0], ebx
jne 0x402f00
mov eax, dword [0x41ad78]
sub eax, dword [0x41ad7c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x41ed88]
mov dword [0x40acec], eax
call fcn.00402d4c
pop ecx
mov ecx, 0x412cf0
mov dword [0x412d10], ebp
mov dword [0x412d14], 0x8000
call fcn.004063e3
test eax, eax
jl 0x402fa9
mov esi, dword [0x412d10]
sub esi, ebp
je 0x402f5e
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fae
cmp esi, dword [esp + 0x10]
jne 0x402fae
add dword [0x41ed88], esi
cmp dword [0x412d0c], ebx
jne 0x402ecf
jmp 0x402f6a
cmp dword [0x412d0c], ebx
jne 0x402fa9
cmp edi, ebx
je 0x402fa9
mov eax, dword [0x41ad7c]
mov ecx, eax
sub ecx, dword [0x41ed88]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402e93
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402d4c
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x402f9c
push 0xfffffffffffffffd
pop eax
jmp 0x402f9c
push 0xfffffffffffffffe
jmp 0x402fab
Function at 0x402fb2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402fde
mov ecx, dword [0x423c18]
push edi
add eax, ecx
push edi
push eax
push dword [0x409014]
mov dword [0x41ad7c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402e34
cmp eax, edi
jl 0x4030d7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x4030d3
cmp dword [ebp - 4], esi
jne 0x4030d3
push dword [ebp + 8]
add dword [0x41ad7c], esi
call fcn.00402e34
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4030d6
cmp dword [ebp + 0x10], edi
jne 0x4030a2
cmp dword [ebp + 8], edi
jle 0x4030ce
mov esi, 0x41ad80
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403052
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x4030d3
cmp edi, dword [ebp - 4]
jne 0x4030d3
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40309e
cmp dword [ebp + 0x14], edi
jne 0x40309e
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41ad7c], eax
cmp dword [ebp + 8], 0
jg 0x403045
jmp 0x4030ce
push 0xfffffffffffffffe
jmp 0x4030d5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4030ad
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x4030d3
mov eax, dword [ebp - 4]
add dword [0x41ad7c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4030d6
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x404aa4
Capabilities:
Accept command line arguments
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
push esi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x404adb
push str.CommandLine_Failed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x404b81
cmp dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
jle 0x404b78
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push edi
mov ebx, 0xfde9
mov edi, 0x3e8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
lea eax, [eax + ecx*4]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push 0xffffffffffffffff
push dword [eax]
mov dword [ebp - 0x14], eax
push ecx
push ebx
call esi
cmp eax, edi
jge 0x404b58
xor eax, eax
push eax
push eax
push edi
lea ecx, [ebp - 0x3fc]
push ecx
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push dword [ecx]
push eax
push ebx
call esi
cmp dword [ebp - 8], 0
jne 0x404b52
push dword [ebp + 0xc]
lea eax, [ebp - 0x3fc]
push eax
call fcn.00404a5d
pop ecx
pop ecx
test eax, eax
je 0x404b58
mov dword [ebp - 8], 1
jmp 0x404b58
cmp dword [ebp - 8], 1
je 0x404b65
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x404af9
jmp 0x404b76
lea eax, [ebp - 0x3fc]
push eax
call fcn.00405a91
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
pop edi
pop ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
leave
ret
Function at 0x4057e8
Capabilities:
Create process on windows

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

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

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

Function at 0x40598a
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 0x4059b9
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 0x4059fd
test edi, edi
jne 0x4059c4
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4059f7

Function at 0x405a01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405a72
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x400
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405a61
cmp dword [ebp + 0x14], 1
je 0x405a63
cmp dword [ebp + 0x14], 2
je 0x405a63
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405cbb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421218
push esi
call fcn.00405b1a
push esi
call fcn.004058f3
mov edi, eax
test edi, edi
jne 0x405cdc
xor eax, eax
jmp 0x405d34
push edi
call fcn.00405b3c
test byte [0x423c28], 0x80
je 0x405cf5
mov al, byte [edi]
test al, al
je 0x405cd8
cmp al, 0x5c
je 0x405cd8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405d15
push esi
call fcn.00405bd6
test eax, eax
je 0x405d0f
test byte [eax], 0x10
je 0x405d39
push esi
call fcn.00405c94
push esi
call ebx
cmp eax, edi
jg 0x405d00
push esi
call fcn.00405c67
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 0x405d33
Function at 0x405fed
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405bfd
mov esi, dword [esp + 0x18]
test eax, eax
je 0x406011
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x40614a
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x421618], 0x4c554e
mov edi, 0x400
mov ebp, 0x421618
test esi, esi
je 0x406055
push 1
push 0
push esi
call fcn.0040598a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406150
cmp eax, edi
jg 0x406150
push edi
mov esi, 0x421f58
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406150
cmp eax, edi
jg 0x406150
push esi
push ebp
push str._s_s_r_n
push 0x421a18
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x423bcc]
push dword [eax + 0x128]
push esi
call fcn.00405d93
push 4
push 0xc0000000
push esi
call fcn.0040598a
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x40614a
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 0x406143
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406143
cmp edi, dword [esp + 0x18]
jne 0x406143
push str._Rename__r_n
push esi
call fcn.00405d3d
test eax, eax
jne 0x406157
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405b1a
add edi, 0xa
mov eax, edi
push ebx
push 0x421a18
add eax, esi
push eax
call fcn.00405946
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
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]
inc dword [0x423c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x4076b8
add eax, 0xa
push eax
call fcn.00405d3d
test eax, eax
je 0x40610e
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x40617e
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x406173
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x406110
Function at 0x406186
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405cbb
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x4061bb
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423c88], eax
jmp 0x40634d
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x4061d6
test eax, eax
je 0x4062f8
test cl, 2
je 0x4062f8
push edi
push ebx
mov esi, 0x422358
push esi
call fcn.00405b1a
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4061f9
push str..
push esi
call edi
jmp 0x4061ff
push ebx
call fcn.00405c94
cmp byte [ebx], 0
jne 0x40620d
cmp byte [0x422358], 0x5c
jne 0x406215
push 0x4072a8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4062ed
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.004058af
cmp byte [eax], 0
je 0x406258
cmp byte [ebp - 0x18], 0
je 0x406258
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40626e
mov al, byte [esi + 1]
test al, al
je 0x4062cc
cmp al, 0x2e
jne 0x40626e
cmp byte [esi + 2], 0
je 0x4062cc
push esi
push edi
call fcn.00405b1a
test byte [ebp - 0x148], 0x10
je 0x406293
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4062cc
push dword [ebp + 0xc]
push ebx
call fcn.00406186
jmp 0x4062cc
push ebx
call fcn.0040596a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4062c4
test byte [ebp + 0xc], 4
je 0x4062bc
push ebx
push 0xfffffffffffffff1
call fcn.004048fb
push 0
push ebx
call fcn.00405fed
jmp 0x4062cc
inc dword [0x423c88]
jmp 0x4062cc
push ebx
push 0xfffffffffffffff2
call fcn.004048fb
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40623a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4062f7
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40634c
cmp dword [ebp - 8], esi
je 0x40633c
push ebx
call fcn.00405bd6
test eax, eax
je 0x40634c
push ebx
call fcn.00405c67
push ebx
call fcn.0040596a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406344
test byte [ebp + 0xc], 4
je 0x40633c
push ebx
push 0xfffffffffffffff1
call fcn.004048fb
push esi
push ebx
call fcn.00405fed
jmp 0x40634c
inc dword [0x423c88]
jmp 0x40634c
push ebx
push 0xffffffffffffffe5
call fcn.004048fb
pop esi
pop ebx
leave
ret 8
Function at 0x406352
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42275c], 0
jne 0x406390
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406366
mov dword [ecx*4 + 0x422758], eax
inc ecx
cmp ecx, 0x100
jl 0x406361
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4063bd
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x422758]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40639e
not eax
pop ebp
ret 0xc