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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov ebx, dword [ebp + 8]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x442af0
mov esi, eax
sar esi, 1
cmp esi, 0xfffffffb
jge 0x442b0b
mov eax, 0xffffffff
jmp 0x442b0e
add eax, 0xa
push eax
call fcn.0040c770
add esp, 4
mov dword [eax], 0x3f005c
mov dword [eax + 4], 0x5c003f
lea ecx, [esi + 4]
mov word [eax + 8], 0
mov edx, eax
add edx, 8
movzx edi, word [ebx]
test di, di
je 0x442b51
add ebx, 2
nop
nop
nop
mov word [edx], di
add edx, 2
movzx edi, word [ebx]
add ebx, 2
test di, di
jne 0x442b40
mov word [edx], 0
mov edx, ecx
or edx, 2
and esi, 2
imul edx, esi
xor esi, 2
and ecx, 0xfffd
imul ecx, esi
lea esi, [edx + ecx]
mov word [esp + 4], si
add ecx, edx
add ecx, 2
mov word [esp + 6], cx
mov dword [esp + 8], eax
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0x40
lea ecx, [esp + 4]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x80b0a0d
mov word [esp + 0x2c], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 5
ja 0x442c22
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
mov esi, edx
not esi
or esi, 0x4d12d43
add esi, edx
xor edx, 0x84d12d43
lea edx, [edx + esi*2]
add edx, 2
xor edx, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0xc]
add cl, 0xb1
mov edx, dword [esp]
mov byte [esp + edx + 0x28], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 6
jb 0x442be0
mov esi, dword [esp + 0x28]
mov ecx, dword [0x44e4ac]
test ecx, ecx
je 0x442c79
xor edx, edx
mov edi, dword [0x44e4b0]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + edx*8], 0x8896be63
je 0x442c50
inc edx
cmp ecx, edx
jne 0x442c40
jmp 0x442c79
mov ecx, dword [edi + edx*8 + 4]
cmp ecx, esi
je 0x442c79
lea edx, [esp + 0x28]
lea esi, [esp + 0x10]
push edx
push esi
push 2
push dword [0x44e4b4]
push ecx
mov edi, eax
call fcn.0043f3f0
add esp, 0x14
mov esi, eax
mov eax, edi
push eax
call fcn.0040c780
add esp, 4
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x442c8f
mov eax, dword [esp + 0x48]
mov dword [ecx], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x442ca0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 0x10], 0x80b0a0d
mov word [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x442d16
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx eax, byte [esp + eax + 0x10]
mov edx, ecx
not edx
or edx, 0x4d12d43
add edx, ecx
xor ecx, 0x84d12d43
lea ecx, [ecx + edx*2]
add ecx, 2
xor ecx, eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 8]
add al, 0xb1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x442cd0
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [0x44e4ac]
test edx, edx
je 0x442d78
mov ecx, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x44e4b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edi*8], 0x77a9e0c4
je 0x442d50
inc edi
cmp edx, edi
jne 0x442d40
jmp 0x442d78
mov edx, dword [ebx + edi*8 + 4]
cmp edx, eax
je 0x442d78
lea eax, [esp + 0x10]
lea edi, [esp + 8]
push 5
push 0x18
push eax
push edi
push ecx
push 5
push dword [0x44e4b4]
push edx
call fcn.0043f3f0
add esp, 0x20
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x442d85
mov edx, dword [esp + 0x18]
mov dword [esi], edx
test ecx, ecx
je 0x442d91
cmp byte [esp + 0x25], 0
setne byte [ecx]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x442da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 8], 0x80b0a0d
mov word [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x442e10
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
not edx
or edx, 0x4d12d43
add edx, eax
xor eax, 0x84d12d43
lea eax, [eax + edx*2]
add eax, 2
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xb1
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x442dd0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 8]
mov ecx, dword [0x44e4ac]
test ecx, ecx
je 0x442e7c
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
xor ebx, ebx
mov ebp, dword [0x44e4b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x72e9dc72
je 0x442e51
inc ebx
cmp ecx, ebx
jne 0x442e40
jmp 0x442e7c
mov ecx, dword [ebp + ebx*8 + 4]
cmp ecx, eax
je 0x442e7c
lea eax, [esp + 0x10]
push 0
push 0
push edi
push edx
push eax
push 0
push 0
push 0
push esi
push 9
push dword [0x44e4b4]
push ecx
call fcn.0043f3f0
add esp, 0x30
mov edi, dword [esp + 0x38]
cmp eax, 0x103
jne 0x442f46
mov dword [esp + 8], 0x80b0a0d
mov word [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x442ef3
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
not edx
or edx, 0x4d12d43
add edx, eax
xor eax, 0x84d12d43
lea eax, [eax + edx*2]
add eax, 2
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xb1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x442eb0
mov eax, dword [esp + 8]
mov ecx, dword [0x44e4ac]
test ecx, ecx
je 0x442f3e
xor edx, edx
mov ebx, dword [0x44e4b0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x7e28bda7
je 0x442f20
inc edx
cmp ecx, edx
jne 0x442f10
jmp 0x442f3e
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, eax
je 0x442f3e
push 0
push 0
push esi
push 3
push dword [0x44e4b4]
push ecx
call fcn.0043f3f0
add esp, 0x18
test eax, eax
js 0x442f46
mov eax, dword [esp + 0x10]
test edi, edi
je 0x442f59
xor ecx, ecx
cmp eax, 0xc0000011
je 0x442f57
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x442f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [esp + 8], 0x80b0a0d
mov word [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x442fe0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
not edx
or edx, 0x4d12d43
add edx, eax
xor eax, 0x84d12d43
lea eax, [eax + edx*2]
add eax, 2
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xb1
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x442fa0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 8]
mov ecx, dword [0x44e4ac]
test ecx, ecx
je 0x44304c
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
xor ebx, ebx
mov ebp, dword [0x44e4b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0xe6919031
je 0x443021
inc ebx
cmp ecx, ebx
jne 0x443010
jmp 0x44304c
mov ecx, dword [ebp + ebx*8 + 4]
cmp ecx, eax
je 0x44304c
lea eax, [esp + 0x10]
push 0
push 0
push edi
push edx
push eax
push 0
push 0
push 0
push esi
push 9
push dword [0x44e4b4]
push ecx
call fcn.0043f3f0
add esp, 0x30
mov edi, dword [esp + 0x38]
cmp eax, 0x103
jne 0x443116
mov dword [esp + 8], 0x80b0a0d
mov word [esp + 0xc], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4430c3
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 8]
mov edx, eax
not edx
or edx, 0x4d12d43
add edx, eax
xor eax, 0x84d12d43
lea eax, [eax + edx*2]
add eax, 2
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0xb1
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 8], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 6
jb 0x443080
mov eax, dword [esp + 8]
mov ecx, dword [0x44e4ac]
test ecx, ecx
je 0x44310e
xor edx, edx
mov ebx, dword [0x44e4b0]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebx + edx*8], 0x7e28bda7
je 0x4430f0
inc edx
cmp ecx, edx
jne 0x4430e0
jmp 0x44310e
mov ecx, dword [ebx + edx*8 + 4]
cmp ecx, eax
je 0x44310e
push 0
push 0
push esi
push 3
push dword [0x44e4b4]
push ecx
call fcn.0043f3f0
add esp, 0x18
test eax, eax
js 0x443116
mov eax, dword [esp + 0x10]
test edi, edi
je 0x443120
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x443130
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x44]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x443150
sar ebx, 1
mov ecx, ebx
and ecx, 2
mov ebp, ebx
or ebx, 2
imul ebx, ecx
xor ecx, 2
and ebp, 0xfffd
imul ebp, ecx
lea ecx, [ebx + ebp]
mov word [esp + 0xc], cx
lea ecx, [ebx + ebp]
add ecx, 2
mov word [esp + 0xe], cx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], 0x18
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], 0x40
lea eax, [esp + 0xc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 4], 0x80b0a0d
mov word [esp + 8], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x443220
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
mov edi, eax
not edi
or edi, 0x4d12d43
add edi, eax
xor eax, 0x84d12d43
lea eax, [eax + edi*2]
add eax, 2
xor eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add al, 0xb1
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x4431e0
mov eax, dword [esp + 4]
mov edi, dword [0x44e4ac]
test edi, edi
je 0x443275
xor ebx, ebx
mov ebp, dword [0x44e4b0]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x81105f7a
je 0x443251
inc ebx
cmp edi, ebx
jne 0x443240
jmp 0x443275
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x443275
lea eax, [esp + 0x18]
push esi
push eax
push edx
push dword [esp + 0x54]
push 4
push dword [0x44e4b4]
push edi
call fcn.0043f3f0
add esp, 0x1c
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402b10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x429250]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402ba4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402b61
cmp dword [ebp + 0x10], ebx
jne 0x402b98
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402b10
test eax, eax
jne 0x402b73
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b48
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406084
cmp eax, ebx
je 0x402bab
push ebx
push dword [0x429250]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ba4
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 [0x429250], ebx
jne 0x402ba1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402ba1
jmp 0x402ba4
Function at 0x402f38
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x402f58
mov dword [ebp - 8], GetSystemMetrics
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f67
mov ebx, 0x40fe48
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f7c
mov ecx, dword [0x4291f8]
add ecx, eax
push ecx
call fcn.00403166
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403134
test eax, eax
je 0x4030df
test byte [ebp + 0x17], 0x80
je 0x4030c8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40bdb8
mov dword [ebp - 0xc], eax
call fcn.004061a0
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40312a
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402fcc
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.00403134
test eax, eax
je 0x4030df
sub dword [ebp + 0x14], esi
mov dword [0x40bdd0], edi
mov dword [0x40bdd4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40bdb8
mov dword [0x40bdd8], ebx
mov dword [0x40bddc], eax
call fcn.004061c0
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4030c0
mov esi, dword [0x40bdd8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429254], 1
mov edi, eax
je 0x403074
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40303b
cmp dword [ebp + 0x14], 0
jne 0x403074
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 - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00404fce
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x4030b5
cmp dword [ebp + 0x10], eax
jne 0x40309d
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030c4
cmp dword [ebp - 0x14], esi
jne 0x4030c4
add dword [ebp - 4], esi
jmp 0x4030a9
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40bdd8]
cmp dword [ebp - 0x10], 1
jne 0x402fef
jmp 0x40312a
cmp dword [ebp + 0x14], eax
jg 0x402fbf
jmp 0x40312a
push 0xfffffffffffffffc
jmp 0x4030e1
push 0xfffffffffffffffe
jmp 0x4030e1
test edi, edi
je 0x40311f
cmp dword [ebp + 0x14], esi
jge 0x4030d4
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403134
test eax, eax
jne 0x403127
push 0xfffffffffffffffd
pop eax
jmp 0x40312d
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4030ef
mov esi, dword [ebp + 0x14]
mov edi, 0x40be48
push esi
push edi
call fcn.00403134
test eax, eax
je 0x4030df
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030c4
cmp esi, dword [ebp + 0x10]
jne 0x4030c4
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030e4
jmp 0x40312a
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40549c
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040597e
mov edi, eax
cmp edi, 0xffffffff
je 0x4055a2
test byte [esp + 0x10], 1
push esi
je 0x405584
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x40558a
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405593
xor eax, eax
inc eax
jmp 0x4055a4
test byte [esp + 0x10], 4
jne 0x4055a2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x4055a9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
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.0040588a
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055e8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429228], eax
jmp 0x40577b
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405602
test eax, eax
je 0x405729
test bl, 2
je 0x405729
mov esi, 0x4246a0
push edi
push esi
call fcn.00405d1a
cmp dword [ebp + 8], 0
je 0x405621
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405627
push edi
call fcn.004057ce
cmp word [edi], 0
jne 0x405637
cmp word [0x4246a0], 0x5c
jne 0x405642
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40571e
lea eax, [ebp - 0x230]
push 0x3f
push eax
lea esi, [ebp - 0x230]
call fcn.004057af
xor ecx, ecx
cmp word [eax], cx
je 0x405689
cmp word [ebp - 0x28], cx
je 0x405689
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4056a4
mov ax, word [esi + 2]
cmp ax, cx
je 0x4056fd
cmp ax, 0x2e
jne 0x4056a4
cmp word [esi + 4], cx
je 0x4056fd
push esi
push ebx
call fcn.00405d1a
test byte [ebp - 0x25c], 0x10
je 0x4056c9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056fd
push dword [ebp + 0xc]
push edi
call fcn.004055a9
jmp 0x4056fd
push dword [ebp - 4]
push edi
call fcn.00405561
test eax, eax
jne 0x4056f5
cmp dword [ebp - 4], eax
je 0x4056ed
push edi
push 0xfffffffffffffff1
call fcn.00404fce
push 0
push edi
call fcn.00405bb4
jmp 0x4056fd
inc dword [0x429228]
jmp 0x4056fd
push edi
push 0xfffffffffffffff2
call fcn.00404fce
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405665
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405729
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40577b
cmp dword [ebp - 0xc], esi
jne 0x40573d
inc dword [0x429228]
jmp 0x40577b
push edi
call fcn.0040605d
test eax, eax
je 0x40577b
push edi
call fcn.00405782
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405561
test eax, eax
jne 0x405773
cmp dword [ebp - 4], esi
je 0x405735
push edi
push 0xfffffffffffffff1
call fcn.00404fce
push esi
push edi
call fcn.00405bb4
jmp 0x40577b
push edi
push 0xffffffffffffffe5
call fcn.00404fce
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40588a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424ea0
push esi
call fcn.00405d1a
push esi
call fcn.0040582d
mov edi, eax
test edi, edi
jne 0x4058ab
xor eax, eax
jmp 0x405903
push edi
call fcn.00405fae
test byte [0x4291b8], 0x80
je 0x4058c8
mov ax, word [edi]
test ax, ax
je 0x4058a7
cmp ax, 0x5c
je 0x4058a7
sub edi, esi
sar edi, 1
jmp 0x4058e2
call fcn.0040605d
test eax, eax
je 0x4058dc
test byte [eax], 0x10
je 0x4058a7
push esi
call fcn.004057ce
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4058ce
call fcn.00405782
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40599d
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4059a3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x4059d2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40950c]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x409510]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a22
test edi, edi
jne 0x4059df
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a1c
Function at 0x405a26
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, 0x425d38
push 0x409530
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test esi, esi
mov edi, 0x400
je 0x405a75
push 1
push 0
push esi
call fcn.004059a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x405bae
cmp eax, edi
jg 0x405bae
mov esi, 0x426538
push edi
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405bae
cmp eax, edi
jg 0x405bae
push esi
push ebx
push str._ls_ls_r_n
push 0x425938
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4291b0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d3c
push 4
push 0xc0000000
push esi
call fcn.004059a3
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405bae
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 0x405ba7
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405ba7
cmp edi, dword [esp + 0x10]
jne 0x405ba7
push str._Rename__r_n
push esi
call fcn.00405908
test eax, eax
jne 0x405b3d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b72
add eax, 0xa
push 0x409514
push eax
call fcn.00405908
mov ebp, eax
test ebp, ebp
je 0x405b6e
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b5f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b59
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x405b74
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x425938
push eax
call fcn.0040595e
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
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]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x405be7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x18]
push edi
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov word [esi], di
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405c5b
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x800
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405c48
cmp dword [ebp + 0x14], 1
je 0x405c4b
cmp dword [ebp + 0x14], 2
je 0x405c4b
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x7fe], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14