joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10162af6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101ed400], 0
mov byte [0x101ed404], 0
mov dword [0x101ed3fc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x101ed3f4], 0x192c
mov eax, dword [0x101ed3fc]
add eax, 1
mov dword [0x101ed3fc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10162b31
mov eax, 0x21b9
xor ecx, ecx
mov dword [0x101ed3f4], 0x21b9
mov dword [0x101ed3fc], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov edx, 0x100
mov dword [0x101ed408], 0
mov esi, dword [0x101ed400]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + eax]
add ebx, esi
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x2c], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov dword [0x101ed408], ebx
mov eax, ebx
cdq
mov ebx, dword [ebp - 0x2c]
idiv ebx
mov dword [0x101ed400], edx
mov esi, dword [ebp - 0x28]
mov bl, byte [edi + esi]
mov byte [0x101ed404], bl
add ecx, 0xfffff8bb
mov dword [0x101ed3f4], ecx
mov bl, byte [edi + edx]
mov byte [edi + esi], bl
mov bl, byte [0x101ed404]
mov ecx, dword [0x101ed400]
mov byte [edi + ecx], bl
mov ecx, dword [0x101ed3fc]
add ecx, 1
mov dword [0x101ed3fc], ecx
cmp ecx, 0x100
mov dword [ebp - 0x30], ecx
jge 0x10162c2f
mov eax, dword [0x101ed3f4]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10162b82
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101631bd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x101ed3f4]
add esi, 0xd1d
mov dword [0x101ed3f4], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10163280
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.10162cee
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x24], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x28], ecx
mov dword [0x101ed3f4], 0x2706
add ecx, 0x1594
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x10163277
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101641fc]
mov dh, byte [eax + 0x101641cd]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x10163280
lea eax, [ebp - 0x24]
mov dword [0x101ed3f8], 0x1f1f
mov dword [ebp - 0x44], eax
call fcn.10162f0b
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.10163024
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x101631ec
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x101632ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x101ed3f4], 0xe6a
mov dword [0x101ed3f8], 0x1c1d
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x101633e7
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, section..data
imul esi, ecx, 0xac
mov edi, edx
add edi, esi
add edi, 0x20
imul esi, ecx, 0xac
mov ebx, edx
add ebx, esi
add ebx, 0xa8
imul esi, ecx, 0xac
add edx, esi
add edx, 0x7c
add ecx, 1
mov esi, dword [ebp - 0x144]
add esi, eax
mov ebx, dword [ebx]
mov edi, dword [edi]
movzx edx, word [edx]
xor edx, ebx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
call fcn.10162211
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
add eax, ecx
mov edx, dword [ebp - 0x150]
cmp edx, 0x2e8
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], eax
je 0x101634f8
jmp 0x1016333d
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
xor edx, edx
lea esi, section..data
imul edi, eax, 0xac
mov ebx, esi
add ebx, edi
add ebx, 0xa8
mov edi, dword [ebx]
imul ebx, eax, 0xac
add esi, ebx
add esi, 0x7c
movzx esi, word [esi]
xor esi, edi
add esi, ecx
add eax, 1
cmp eax, 0x2e8
mov ecx, esi
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x158], edx
jne 0x101633e7
mov eax, dword [ebp - 0x158]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x101641fc]
mov dh, byte [eax + 0x101641cd]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x158], ecx
jne 0x10163448
lea eax, [ebp - 0x12c]
mov dword [0x101ed3f8], 0x1490
mov dword [0x101ed3f4], 0x2176
mov dword [ebp - 0x15c], eax
call fcn.10162f0b
mov dword [esp], eax
mov eax, dword [ebp - 0x15c]
mov dword [esp + 4], eax
call fcn.10163024
mov ecx, eax
mov dword [0x101ed410], eax
mov eax, esp
mov edx, dword [ebp - 0x154]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x1016333d
lea eax, [0x101641db]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x101ed3f4], 0x1cea
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.10162af6
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x154]
mov dword [esp + 0xc], edx
call fcn.10162271
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0xdbc4d
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x132c00
mov ecx, dword [ebp - 0x144]
add ecx, 0xd20cd
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2020
mov dword [0x101ed3f4], 0x25ad
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101635a1
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
lea eax, [esp + 0x20]
lea ecx, [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.101632ff
lea ecx, [0x101621ca]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x70], edx
mov dword [esp + 0x50], 0x132c00
mov edx, dword [0x101ed3e0]
mov dword [esp + 0x68], edx
mov edx, dword [0x101ed3e4]
mov dword [esp + 0x60], edx
mov edx, dword [0x101ed3e8]
mov dword [esp + 0x84], edx
mov edx, dword [0x101ed3ec]
mov dword [esp + 0x38], edx
mov edx, dword [0x101ed3f0]
mov dword [esp + 0x40], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
jne 0x10163637
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1016364b
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x10163614
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x78], edx
mov dword [0x101ed3f4], 0x17cf
call fcn.101625a2
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x101636af
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101631bd
mov ecx, esp
lea edx, [esp + 0x30]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [0x101ed3f4], 0x7ca
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x409ca0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x408015
lea edi, [esi - 0x7015]
push edi
or ebp, 0xffffffff
jmp 0x409cc2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409cc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409cb8
mov eax, 1
add ebx, ebx
jne 0x409cdb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409cd0
jne 0x409cec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409cd0
xor ecx, ecx
sub eax, 3
jb 0x409d00
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409d72
mov ebp, eax
add ebx, ebx
jne 0x409d0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x409d18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x409d3c
inc ecx
add ebx, ebx
jne 0x409d28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x409d1d
jne 0x409d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409d1d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x409d5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x409d4d
jmp 0x409cbe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x409d5c
add edi, ecx
jmp 0x409cbe
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x409d7a
cmp byte [edi], 2
jne 0x409d7a
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 0x409d7f
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x409dee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa18c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa1f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x409dac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa1f8]
or eax, eax
je 0x409de8
mov dword [ebx], eax
add ebx, 4
jmp 0x409dc9
call dword [esi + 0xa1f4]
mov ebp, dword [esi + 0xa1fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x409e22
sub esp, 0xffffff80
jmp 0x402438
Function at 0x40141e
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
push ebp
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x22c]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or eax, 9
push eax
push dword [esp + 0x230]
push dword [esp + 0x230]
call fcn.00406323
test eax, eax
jne 0x401527
xor ebp, ebp
test byte [esp + 0x22c], 2
je 0x401493
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebp
push eax
lea eax, [esp + 0x28]
push eax
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x401503
push 0x105
lea eax, [esp + 0x18]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x4014ce
test edi, edi
jne 0x401503
push dword [esp + 0x22c]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call fcn.0040141e
test eax, eax
jne 0x4014d8
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
je 0x4014a6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406931
test eax, eax
jne 0x401514
push dword [esp + 0x228]
push dword [esp + 0x228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x401527
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x401527
push 0
push esi
push dword [esp + 0x230]
push dword [esp + 0x230]
call eax
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x403148
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x9c
mov ecx, dword [esp + 0xa0]
mov eax, 0x423538
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb8]
mov ebx, 0x8000
test edi, edi
cmovne ebx, dword [esp + 0xbc]
xor esi, esi
test edi, edi
cmovne eax, edi
mov dword [esp + 0x1c], eax
test ecx, ecx
js 0x403190
mov eax, dword [0x435258]
add eax, ecx
push eax
call fcn.00403131
push 4
lea eax, [esp + 0x14]
push eax
push dword [0x40b010]
call fcn.00406993
test eax, eax
je 0x403379
mov eax, dword [esp + 0x10]
test eax, eax
jns 0x40331b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [0x40dea4], esi
and dword [0x40dea0], esi
mov dword [esp + 0x14], eax
mov eax, 0x40f528
mov dword [0x417530], eax
mov dword [0x41752c], eax
mov eax, dword [esp + 0x10]
and eax, 0x7fffffff
mov dword [0x40d988], 8
mov ecx, eax
mov dword [0x417528], 0x417528
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ecx
jbe 0x403313
mov ebp, 0x4000
cmp ecx, ebp
cmovl ebp, ecx
push ebp
push 0x41f538
call fcn.0040311b
test eax, eax
je 0x403379
sub dword [esp + 0x10], ebp
mov dword [0x40d97c], ebp
mov ebp, dword [esp + 0x1c]
mov dword [0x40d978], 0x41f538
push 0x40d978
mov dword [0x40d980], ebp
mov dword [0x40d984], ebx
call fcn.004072d9
mov dword [esp + 0x28], eax
test eax, eax
js 0x403317
mov eax, dword [0x40d980]
sub eax, ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4352f4], 1
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x24], eax
je 0x4032cc
sub eax, dword [esp + 0x14]
cmp eax, 0xc8
ja 0x403290
test ecx, ecx
jne 0x4032cc
mov eax, dword [esp + 0x20]
push eax
push 0x64
sub eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [esp + 0x30]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
push 0
call fcn.00405d94
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40330b
test edi, edi
jne 0x4032f0
push eax
push ebp
push dword [esp + 0xbc]
call fcn.00406a56
test eax, eax
je 0x40335e
mov eax, dword [esp + 0x18]
jmp 0x4032fc
mov ebp, dword [0x40d980]
sub ebx, eax
mov dword [esp + 0x1c], ebp
add esi, eax
cmp dword [esp + 0x28], 1
jne 0x40323d
jmp 0x403313
test ecx, ecx
jg 0x403208
mov eax, esi
jmp 0x40337c
push 0xfffffffffffffffc
jmp 0x40337b
test edi, edi
jne 0x403362
test eax, eax
jle 0x403313
mov ebp, 0x41f538
cmp eax, ebx
mov edi, ebx
cmovl edi, eax
push edi
push ebp
call fcn.0040311b
test eax, eax
je 0x403379
push edi
push ebp
push dword [esp + 0xbc]
call fcn.00406a56
test eax, eax
je 0x40335e
mov eax, dword [esp + 0x10]
add esi, edi
sub eax, edi
mov dword [esp + 0x10], eax
test eax, eax
jg 0x403328
jmp 0x403313
push 0xfffffffffffffffe
jmp 0x40337b
mov esi, dword [esp + 0xbc]
cmp eax, esi
cmovl esi, eax
push esi
push edi
call fcn.0040311b
test eax, eax
jne 0x403313
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret 0x10
Function at 0x403389
Capabilities:
Hide graphical window

Disassembly:
cmp dword [esp + 4], 0
je 0x4033a8
mov eax, dword [0x40d970]
test eax, eax
je 0x4033a0
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40d970], 0
ret
cmp dword [0x40d970], 0
je 0x4033b9
push 0
call fcn.0040625a
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x435200]
jbe 0x4033ec
push 0
push 0x40364f
push 0
push 0x6f
push dword [0x4341f4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
push 5
push eax
mov dword [0x40d970], eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x405e78
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4
Function at 0x4061e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
lea eax, [ebp - 0x23c]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
ja 0x406223
test eax, eax
je 0x406223
add eax, eax
cmp word [ebp + eax - 0x23e], 0x5c
je 0x406225
mov ecx, 0x4092a8
jmp 0x40622a
xor eax, eax
mov ecx, 0x4092aa
push dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x23c]
add eax, ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406288
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4062ab
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406351
pop ecx
pop ecx
inc dword [0x4352d0]
ret 8

Function at 0x406351
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x4311c0], 0x55004e
mov ebp, 0x4311c0
mov dword [0x4311c4], 0x4c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
je 0x4063a7
push 1
push 0
push esi
call fcn.00406966
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406487
cmp eax, ebx
jg 0x406487
push ebx
mov esi, 0x4309c0
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406487
cmp eax, ebx
jg 0x406487
push esi
push ebp
push str._ls_ls_r_n
push 0x4305c0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x435210]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405ef3
push 4
push 0xc0000000
push esi
call fcn.00406966
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406487
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406480
push esi
push edi
push ebx
call fcn.00406993
test eax, eax
je 0x406480
push str._Rename__r_n
push edi
call fcn.00406b81
test eax, eax
jne 0x40648c
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x4305c0
lea eax, [ecx + edi]
push eax
call fcn.004066ff
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + ebp]
push eax
push edi
push ebx
call fcn.00406a56
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x409974
add eax, 0xa
push eax
call fcn.00406b81
mov ecx, eax
test ecx, ecx
je 0x406451
lea edx, [edi + esi]
jmp 0x4064ab
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x4064a5
sub ecx, edi
inc ecx
jmp 0x406453
Function at 0x4065d0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.00406be8
mov edi, eax
cmp edi, 0xffffffff
je 0x406613
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x4065f4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4065fa
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x406603
xor eax, eax
inc eax
jmp 0x406615
test byte [ebp + 0xc], 4
jne 0x406613
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov ebx, 0x42fdc0
push ebx
call fcn.00406b65
push ebx
call fcn.00406c10
mov esi, eax
test esi, esi
je 0x4066f8
push esi
call fcn.00406d88
test byte [0x43520c], 0x80
je 0x4066bc
movzx eax, word [esi]
test ax, ax
je 0x4066f8
cmp eax, 0x5c
je 0x4066f8
sub esi, ebx
sar esi, 1
jmp 0x4066d6
call fcn.0040661a
test eax, eax
je 0x4066d0
test byte [eax], 0x10
je 0x4066f8
push ebx
call fcn.00406d5b
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
cmp eax, esi
jg 0x4066c2
call fcn.004065a1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4066f8
xor eax, eax
inc eax
jmp 0x4066fa
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406721
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x42f578], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x42f578
xor eax, eax
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 0x406760
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x406764
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406683
mov dword [esp + 0x14], eax
test bl, 8
je 0x4067a6
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4352c8], eax
jmp 0x406925
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x4067c3
test eax, eax
je 0x406914
test bl, 2
je 0x4068dd
push esi
push 0x42f5c0
call fcn.00406b65
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067e6
push str..
push 0x42f5c0
call ebp
jmp 0x4067ec
push esi
call fcn.00406d5b
xor eax, eax
cmp word [esi], ax
jne 0x4067fd
cmp word [0x42f5c0], 0x5c
jne 0x406805
push 0x4092a8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x42f5c0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4068c6
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x40684f
cmp word [esp + 0x4a], 0
je 0x4068a8
cmp word [esp + 0x4a], ax
jne 0x40684f
cmp word [esp + 0x4c], 0
je 0x4068a8
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b65
test byte [esp + 0x1c], 0x10
je 0x406876
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4068a8
push ebx
push esi
call fcn.00406764
jmp 0x4068a8
push edi
push esi
call fcn.004065d0
test eax, eax
jne 0x4068a0
test edi, edi
je 0x406898
push esi
push 0xfffffffffffffff1
call fcn.00405d94
xor eax, eax
push eax
push esi
call fcn.00406288
jmp 0x4068a8
inc dword [0x4352c8]
jmp 0x4068a8
push esi
push 0xfffffffffffffff2
call fcn.00405d94
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406831
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406924
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406914
push esi
call fcn.0040661a
test eax, eax
je 0x406924
push esi
call fcn.004065a1
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004065d0
test eax, eax
jne 0x40691c
test edi, edi
je 0x406914
push esi
push 0xfffffffffffffff1
call fcn.00405d94
xor eax, eax
push eax
push esi
call fcn.00406288
jmp 0x406924
inc dword [0x4352c8]
jmp 0x406924
push esi
push 0xffffffffffffffe5
call fcn.00405d94
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc