joyce8/EMBER2024-capa huggingface dataset:
Function at 0x669c46
Capabilities:
Check if file exists
Create pipe
Create thread

Disassembly:
mov eax, 0x66d950
call fcn.0062921c
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebx + 4]
mov dword [ebp - 0x10], ebx
mov ecx, esi
mov dword [ebx], 0x70df90
call fcn.00423207
xor edx, edx
lea edi, [ebx + 0x1c]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], edx
jb 0x669c8a
mov eax, dword [edi]
jmp 0x669c8c
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov al, byte [ebp + 0xc]
mov byte [ebx + 0x34], al
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebx + 0x3c], eax
lea eax, [ebp - 0x28]
push 0x70df94
push eax
mov byte [ebp - 4], 1
mov byte [ebx + 0x74], dl
call fcn.0042415c
push eax
mov ecx, edi
call fcn.004232e6
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 1
call fcn.0042386b
push esi
push esi
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
call esi
mov dword [ebx + 0x48], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
mov dword [ebx + 0x5c], eax
xor eax, eax
push eax
push eax
push eax
push eax
call esi
cmp byte [ebx + 0x34], 0
mov dword [ebx + 0x70], eax
je 0x669d27
cmp dword [edi + 0x14], 8
jb 0x669d02
mov edi, dword [edi]
push dword [ebp + 0x18]
xor esi, esi
mov eax, 0x800
push esi
push eax
push eax
push 0xff
push 6
push 0x40080003
push edi
call dword [sym.imp.KERNEL32.DLL_CreateNamedPipeW]
mov dword [ebx + 0x44], eax
jmp 0x669d6b
xor esi, esi
mov eax, esi
cmp eax, 2
jne 0x669d3b
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [edi + 0x14], 8
jb 0x669d45
mov eax, dword [edi]
jmp 0x669d47
mov eax, edi
push esi
push 0x40000080
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebx + 0x44], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x669d30
cmp dword [ebx + 0x44], 0xffffffff
je 0x669d84
push esi
push esi
push ebx
push 0x669eaf
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x669e43
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
and dword [esi + 0x68], 0
and dword [esi + 0x6c], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x669e60
mov ecx, dword [ecx]
lea edi, [esi + 0x60]
inc eax
push edi
lea edx, [ebp + 8]
push edx
push eax
push ecx
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x3e5
jne 0x669ea0
push 0xffffffffffffffff
push dword [esi + 0x70]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x669ea0
push 1
lea eax, [ebp + 8]
push eax
push edi
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_GetOverlappedResult]
push dword [esi + 0x44]
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
pop edi
pop esi
pop ebp
ret 4
Function at 0x669ebd
Capabilities:
Connect pipe
Read file on windows

Disassembly:
mov eax, 0x67c809
call fcn.0062921c
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov byte [edi + 0x74], 1
cmp byte [edi + 0x34], bl
je 0x669f1e
lea eax, [edi + 0x4c]
mov dword [edi + 0x54], ebx
push eax
push dword [edi + 0x44]
mov dword [edi + 0x58], ebx
call dword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test esi, esi
jne 0x669f1e
cmp eax, 0x217
je 0x669f1e
cmp eax, 0x3e5
jne 0x669fd2
push 0xffffffffffffffff
push dword [edi + 0x5c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x669fd2
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov dword [ebp - 0x10], ebx
mov dword [edi + 0x54], ebx
mov dword [edi + 0x58], ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push 0x401
mov dword [ebp - 4], ebx
call fcn.006298d5
pop ecx
mov esi, eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0x400
push esi
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
sub eax, 6
neg eax
sbb eax, eax
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
je 0x669f9d
cmp byte [esi + eax - 1], 0
push esi
sete bl
mov byte [esi + 0x400], 0
call fcn.0040a79e
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040a702
push 0
test bl, bl
pop ebx
je 0x669f4d
push esi
call fcn.00629331
cmp dword [ebp - 0x10], 0
pop ecx
je 0x669fc4
push dword [edi + 0x3c]
lea eax, [ebp - 0x28]
push eax
call dword [edi + 0x38]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040abbf
jmp 0x669f27
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040abbf
mov byte [edi + 0x74], bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x66a9ca
Capabilities:
Get disk information

Disassembly:
mov eax, 0x688f95
call fcn.0062921c
sub esp, 0x228
push ebx
push esi
push edi
push 0x41
pop eax
push 0x3a
mov word [ebp - 0x14], ax
xor edi, edi
pop eax
mov word [ebp - 0x12], ax
push 0x5c
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
mov dword [ebp - 4], edi
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebx, eax
mov esi, edi
test ebx, ebx
je 0x66aa74
test bl, 1
je 0x66aa6a
lea eax, [esi + 0x41]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x66aa6a
push 0x104
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x66aa6a
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00424ff1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00434271
push edi
push 1
test eax, eax
je 0x66aa94
lea ecx, [ebp - 0x2c]
call fcn.0042386b
shr ebx, 1
inc esi
cmp esi, 0x1a
jl 0x66aa0b
mov esi, edi
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0042386b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 0x20]
mov ax, word [ebp - 0x14]
mov word [ecx], ax
lea ecx, [ebp - 0x2c]
call fcn.0042386b
xor esi, esi
inc esi
jmp 0x66aa74
Function at 0x66adf3
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, ecx
cmp dword [esi + 0x110], 2
jne 0x66ae77
lea eax, [esi + 0xf0]
cmp dword [eax + 0x14], 8
jb 0x66ae13
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x30]
push str._s:_
push eax
call fcn.004607f4
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp - 0x1c], 8
jae 0x66ae31
lea eax, [ebp - 0x30]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceExW]
xor ecx, ecx
test eax, eax
je 0x66ae5e
mov eax, dword [ebp - 8]
mov dword [esi + 0x108], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x10c], eax
jmp 0x66ae6a
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], ecx
push ecx
push 1
lea ecx, [ebp - 0x30]
call fcn.0042386b
jmp 0x66ae85
xor ecx, ecx
mov dword [esi + 0x108], ecx
mov dword [esi + 0x10c], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x66afc2
Capabilities:
Get disk information

Disassembly:
mov eax, 0x6897f4
call fcn.0062921c
sub esp, 0x448
push edi
mov edi, ecx
cmp dword [edi + 0x110], 2
jne 0x66afe6
xor eax, eax
inc eax
jmp 0x66b0ed
push esi
movzx esi, word [ebp + 8]
lea eax, [ebp - 0x44]
push esi
push 0x70e060
push eax
call fcn.004607f4
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push str._c:_
push eax
call fcn.004607f4
add esp, 0x18
mov eax, dword [ebp - 0x2c]
push 8
pop esi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x66b022
lea eax, [ebp - 0x2c]
mov edx, 0x104
lea ecx, [ebp - 0x454]
push edx
push ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edx
lea ecx, [ebp - 0x24c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x66b0ca
lea eax, [ebp - 0x24c]
push eax
call fcn.00423ad9
pop ecx
push eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [edi + 0xa8]
call fcn.004340c0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
jb 0x66b078
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.0066ad6c
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], esi
jb 0x66b08a
mov eax, dword [eax]
push eax
mov ecx, edi
call fcn.0066add2
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x30], esi
jae 0x66b09d
lea eax, [ebp - 0x44]
push eax
mov ecx, edi
call fcn.0066ad9a
mov ecx, edi
mov dword [edi + 0x110], 2
call fcn.0066adf3
push 7
push edi
call fcn.005bcbbb
mov ecx, eax
call fcn.005bcef0
xor esi, esi
inc esi
jmp 0x66b0d2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor esi, esi
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0042386b
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0042386b
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x5c9490
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7e000]
push edi
jmp 0x5c94aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5c94b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c94a0
mov eax, 1
add ebx, ebx
jne 0x5c94c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5c94d4
jne 0x5c94f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c94f3
dec eax
add ebx, ebx
jne 0x5c94e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5c94b8
add ebx, ebx
jne 0x5c94ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5c9545
xor ecx, ecx
sub eax, 3
jb 0x5c950b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5c957a
sar eax, 1
mov ebp, eax
jmp 0x5c9516
add ebx, ebx
jne 0x5c9516
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c94e4
inc ecx
add ebx, ebx
jne 0x5c9524
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5c94e4
add ebx, ebx
jne 0x5c9531
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5c9526
jne 0x5c9542
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5c9526
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5c9564
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5c9556
jmp 0x5c94a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5c9564
add edi, ecx
jmp 0x5c94a6
pop esi
mov edi, esi
mov ecx, 0x355c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5c9582
cmp byte [edi], 0x24
jne 0x5c9582
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 0x5c9587
lea edi, [esi + 0x1c6000]
mov eax, dword [edi]
or eax, eax
je 0x5c95ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1caa28]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1cab40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5c95b4
mov ecx, edi
jns 0x5c95e3
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 + 0x1cab44]
or eax, eax
je 0x5c95f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5c95d1
call dword [esi + 0x1cab54]
mov ebp, dword [esi + 0x1cab48]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x5c9633
sub esp, 0xffffff80
jmp 0x46fe60
Function at 0x4092fb
Capabilities:
Check os version

Disassembly:
push 0x98
mov eax, 0x42a1ca
call fcn.00415576
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov esi, edi
call fcn.004020bb
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
push 2
pop eax
inc ecx
cmp dword [ebp - 0x94], eax
jne 0x40934c
cmp dword [ebp - 0xa0], 6
jb 0x40934c
mov dword [edi + 0x1c], eax
jmp 0x40934f
mov dword [edi + 0x1c], ecx
push 0
push ecx
lea esi, [ebp + 8]
call fcn.004023e7
mov eax, edi
call fcn.004155f9
ret 0x1c
Function at 0x4032b4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
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 0x4032d4
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032e3
mov ebx, 0x42a6c0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032f8
mov ecx, dword [0x470278]
add ecx, eax
push ecx
call fcn.004034af
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403499
test eax, eax
je 0x403450
test byte [ebp + 0x17], 0x80
je 0x403439
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x41e630
mov dword [ebp - 0xc], eax
call fcn.00406a2f
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40348f
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403348
mov esi, dword [ebp + 0x14]
mov edi, 0x4266c0
push esi
push edi
call fcn.00403499
test eax, eax
je 0x403450
sub dword [ebp + 0x14], esi
mov dword [0x41e648], edi
mov dword [0x41e64c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x41e630
mov dword [0x41e650], ebx
mov dword [0x41e654], eax
call fcn.00406a4f
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403431
mov esi, dword [0x41e650]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4702d4], 1
mov edi, eax
je 0x4033f0
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033b7
cmp dword [ebp + 0x14], 0
jne 0x4033f0
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 - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.00405569
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403425
cmp dword [ebp + 0x10], 0
jne 0x40340d
push esi
push ebx
push dword [ebp + 0xc]
call fcn.004060a9
test eax, eax
je 0x403435
add dword [ebp - 4], esi
jmp 0x403419
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x41e650]
cmp dword [ebp - 0x10], 1
jne 0x40336b
jmp 0x40348f
cmp dword [ebp + 0x14], 0
jg 0x40333b
jmp 0x40348f
push 0xfffffffffffffffc
jmp 0x403452
push 0xfffffffffffffffe
jmp 0x403452
test edi, edi
je 0x403484
cmp dword [ebp + 0x14], esi
jge 0x403445
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403499
test eax, eax
jne 0x40348c
push 0xfffffffffffffffd
pop eax
jmp 0x403492
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403460
mov esi, dword [ebp + 0x14]
mov edi, 0x4266c0
push esi
push edi
call fcn.00403499
test eax, eax
je 0x403450
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060a9
test eax, eax
je 0x403435
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403455
jmp 0x40348f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a38
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405a89
xor eax, eax
jmp 0x405ab0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405ab0
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405a85
call esi
pop esi
leave
ret 4

Function at 0x405aea
Capabilities:
Create process on windows

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

Function at 0x405b2d
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_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fd2
mov edi, eax
cmp edi, 0xffffffff
je 0x405c0c
test byte [esp + 0x10], 1
push esi
je 0x405bee
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405bf4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405bfd
xor eax, eax
inc eax
jmp 0x405c0e
test byte [esp + 0x10], 4
jne 0x405c0c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c13
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
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.00405ede
test bl, 8
mov dword [ebp - 8], eax
je 0x405c52
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4702a8], eax
jmp 0x405dcf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c6c
test eax, eax
je 0x405d7d
test bl, 2
je 0x405d7d
mov esi, 0x456710
push edi
push esi
call fcn.00406507
cmp dword [ebp + 8], 0
je 0x405c8b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405c91
push edi
call fcn.00405e22
cmp word [edi], 0
jne 0x405ca1
cmp word [0x456710], 0x5c
jne 0x405cac
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d72
cmp word [ebp - 0x22c], 0x2e
jne 0x405cf6
cmp word [ebp - 0x22a], 0
je 0x405d55
cmp word [ebp - 0x22a], 0x2e
jne 0x405cf6
cmp word [ebp - 0x228], 0
je 0x405d55
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406507
test byte [ebp - 0x258], 0x10
je 0x405d21
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d55
push dword [ebp + 0xc]
push edi
call fcn.00405c13
jmp 0x405d55
push dword [ebp - 4]
push edi
call fcn.00405bcb
test eax, eax
jne 0x405d4d
cmp dword [ebp - 4], eax
je 0x405d45
push edi
push 0xfffffffffffffff1
call fcn.00405569
push 0
push edi
call fcn.004062c7
jmp 0x405d55
inc dword [0x4702a8]
jmp 0x405d55
push edi
push 0xfffffffffffffff2
call fcn.00405569
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405cce
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d7d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405dcf
cmp dword [ebp - 8], esi
jne 0x405d91
inc dword [0x4702a8]
jmp 0x405dcf
push edi
call fcn.0040683d
test eax, eax
je 0x405dcf
push edi
call fcn.00405dd6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405bcb
test eax, eax
jne 0x405dc7
cmp dword [ebp - 4], esi
je 0x405d89
push edi
push 0xfffffffffffffff1
call fcn.00405569
push esi
push edi
call fcn.004062c7
jmp 0x405dcf
push edi
push 0xffffffffffffffe5
call fcn.00405569
pop edi
pop esi
pop ebx
leave
ret 8