joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f736
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x44f764
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x44f76b
cmp ebx, dword [eax + 4]
jae 0x44f76b
xor eax, eax
jmp 0x44f95b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x44f77c
xor eax, eax
inc eax
jmp 0x44f95a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x44f792
cmp ecx, edx
jae 0x44f8d7
cmp dword [eax + 4], 0
je 0x44f79b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x44f783
cmp dword [ebp + 8], 0
je 0x44f7bd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x44f8d7
cmp eax, esi
jae 0x44f8d7
mov eax, dword [0x4638b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x44f7e2
cmp dword [esi*4 + 0x4638c0], edi
je 0x44f8db
inc esi
cmp esi, eax
jl 0x44f7d0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x44f957
cmp dword [ebp - 8], 0x1000000
jne 0x44f957
test byte [ebp - 0xc], 0xcc
je 0x44f860
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x44f957
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44f957
cmp word [eax + 0x18], 0x10b
jne 0x44f957
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x44f957
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x44f860
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x44f860
test byte [ecx + 0x27], 0x80
jne 0x44f8d7
push 1
push 0x463900
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x44f774
mov ecx, dword [0x4638b8]
test ecx, ecx
mov edx, ecx
jle 0x44f894
lea eax, [ecx*4 + 0x4638bc]
cmp dword [eax], edi
je 0x44f894
dec edx
sub eax, 4
test edx, edx
jg 0x44f888
test edx, edx
jne 0x44f8c5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x44f8a1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x44f8b9
lea eax, [edx*4 + 0x4638c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x44f8a7
cmp ecx, 0x10
jge 0x44f8c5
inc ecx
mov dword [0x4638b8], ecx
push 0
push 0x463900
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x44f774
xor eax, eax
jmp 0x44f95a
test esi, esi
jle 0x44f774
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x463900
call ebx
test eax, eax
jne 0x44f774
cmp dword [esi*4 + 0x4638c0], edi
je 0x44f931
mov eax, dword [0x4638b8]
lea esi, [eax - 1]
test esi, esi
jl 0x44f91f
cmp dword [esi*4 + 0x4638c0], edi
je 0x44f91b
dec esi
jns 0x44f90f
test esi, esi
jge 0x44f92f
cmp eax, 0x10
jge 0x44f92a
inc eax
mov dword [0x4638b8], eax
lea esi, [eax - 1]
jmp 0x44f931
je 0x44f949
xor ecx, ecx
test esi, esi
jl 0x44f949
lea eax, [ecx*4 + 0x4638c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x44f937
push 0
push 0x463900
call ebx
jmp 0x44f774
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x451730
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x463988], ebx
push esi
push edi
jne 0x4517b0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4517eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x459144
push edi
call esi
test eax, eax
mov dword [0x463988], eax
je 0x4517eb
push 0x459134
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46398c], eax
call esi
cmp dword [0x4634ec], 2
mov dword [0x463990], eax
jne 0x4517b0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x463998], eax
je 0x4517b0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x463994], eax
mov eax, dword [0x463994]
test eax, eax
je 0x4517f5
call eax
test eax, eax
je 0x4517dc
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x463998]
test eax, eax
je 0x4517dc
test byte [ebp - 8], 1
jne 0x4517f5
cmp dword [0x4634f8], 4
jb 0x4517ef
or byte [ebp + 0x12], 0x20
jmp 0x451814
xor eax, eax
jmp 0x451824
or byte [ebp + 0x12], 4
jmp 0x451814
mov eax, dword [0x46398c]
test eax, eax
je 0x451814
call eax
mov ebx, eax
test ebx, ebx
je 0x451814
mov eax, dword [0x463990]
test eax, eax
je 0x451814
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x463988]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x452957
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0044f570
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4529f2
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4634ec]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4529f2
cmp eax, 1
je 0x452a13
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4529f2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4529bf
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4529ee
xor eax, eax
inc eax
jmp 0x452a32
cmp edi, eax
jae 0x4529f6
xor eax, eax
jmp 0x452a32
cmp eax, esi
jae 0x4529fd
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4634ec]
jmp 0x452a16
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x452ab9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044f570
mov eax, dword [0x461a50]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0044c634
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x452bee
push 2
push esi
push dword [ebp + 8]
call fcn.0044c634
add esp, 0xc
cmp eax, ebx
je 0x452bee
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x452b8e
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00446660
push 0x8000
push dword [ebp + 8]
call fcn.00447dc4
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x452b44
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044cd0a
add esp, 0xc
cmp eax, 0xffffffff
je 0x452b64
sub edi, eax
test edi, edi
jg 0x452b3c
jmp 0x452b7c
call fcn.0044b66b
cmp dword [eax], 5
jne 0x452b79
call fcn.0044b662
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00447dc4
pop ecx
pop ecx
jmp 0x452bd6
jge 0x452bd6
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044c634
push dword [ebp + 8]
call fcn.0044ca8b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x452bd6
call fcn.0044b662
mov dword [eax], 0xd
call fcn.0044b66b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0044c634
add esp, 0xc
mov eax, esi
pop edi
jmp 0x452bf0
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044c784
leave
ret
Function at 0x453515
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x45352e
or eax, 0xffffffff
jmp 0x45358f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x45358b
push 0x3d
push esi
call fcn.00453716
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45358b
cmp esi, eax
je 0x45358b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x46350c]
sete cl
cmp eax, dword [0x463510]
mov dword [ebp - 4], ecx
jne 0x453571
mov edi, eax
call fcn.004534b4
mov dword [0x46350c], eax
cmp eax, ebx
jne 0x4535ca
cmp dword [ebp + 0xc], ebx
je 0x453593
cmp dword [0x463514], ebx
je 0x453593
call fcn.00452c4c
test eax, eax
je 0x4535ca
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x45359c
xor eax, eax
jmp 0x45358e
push 4
call fcn.00446bcf
cmp eax, ebx
pop ecx
mov dword [0x46350c], eax
je 0x45358b
mov dword [eax], ebx
cmp dword [0x463514], ebx
jne 0x4535ca
push 4
call fcn.00446bcf
cmp eax, ebx
pop ecx
mov dword [0x463514], eax
je 0x45358b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x46350c]
sub edi, esi
push esi
call fcn.00453467
mov edi, eax
test edi, edi
pop ecx
jl 0x453631
cmp dword [ebx], 0
je 0x453631
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00446be1
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x453611
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x453672
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x453608
mov eax, edi
shl eax, 2
push eax
push dword [0x46350c]
call fcn.00449501
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x453672
jmp 0x45366d
cmp dword [ebp - 4], 0
jne 0x4536d9
test edi, edi
jge 0x453641
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x46350c]
call fcn.00449501
test eax, eax
pop ecx
pop ecx
je 0x45358b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x46350c], eax
cmp dword [ebp + 0xc], 0
je 0x4536c4
push esi
call fcn.004466d0
inc eax
inc eax
push eax
call fcn.00446bcf
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4536c4
push esi
push edi
call fcn.00446250
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4536bd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00446be1
pop ecx
cmp dword [ebp - 4], 0
je 0x4536d1
push esi
call fcn.00446be1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x45358e
push esi
call fcn.00446be1
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x453598
Function at 0x405d4f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c2c4], 0
push esi
jne 0x405d86
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d60
mov dword [ecx*4 + 0x42c2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x405d5b
mov esi, dword [esp + 0x10]
test esi, esi
mov eax, dword [esp + 8]
not eax
jbe 0x405db2
mov ecx, dword [esp + 0xc]
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42c2c0]
inc ecx
dec esi
jne 0x405d98
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x4c7290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x60000]
push edi
or ebp, 0xffffffff
jmp 0x4c72b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c72b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c72a8
mov eax, 1
add ebx, ebx
jne 0x4c72cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c72dc
jne 0x4c72fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c72fb
dec eax
add ebx, ebx
jne 0x4c72e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c72c0
add ebx, ebx
jne 0x4c72f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c734d
xor ecx, ecx
sub eax, 3
jb 0x4c7313
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c7382
sar eax, 1
mov ebp, eax
jmp 0x4c731e
add ebx, ebx
jne 0x4c731e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c72ec
inc ecx
add ebx, ebx
jne 0x4c732c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c72ec
add ebx, ebx
jne 0x4c7339
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c732e
jne 0x4c734a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c732e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c736c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c735e
jmp 0x4c72ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c736c
add edi, ecx
jmp 0x4c72ae
pop esi
mov edi, esi
mov ecx, 0x34e7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c738a
cmp byte [edi], 0x21
jne 0x4c738a
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 0x4c738f
lea edi, [esi + 0xc4000]
mov eax, dword [edi]
or eax, eax
je 0x4c7407
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe100c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe1138]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c73bc
mov ecx, edi
jns 0x4c73eb
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 + 0xe113c]
or eax, eax
je 0x4c7401
mov dword [ebx], eax
add ebx, 4
jmp 0x4c73d9
call dword [esi + 0xe114c]
mov ebp, dword [esi + 0xe1140]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4c743b
sub esp, 0xffffff80
jmp 0x4412a7
Function at 0x401c74
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x20c], bx
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
pop ecx
push dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x108], bx
lea edi, [ebp - 0x106]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCR71.dll_strcpy
mov edi, dword [sym.imp.MSVCR71.dll_strtok]
mov esi, 0x4057b0
lea eax, [ebp - 0x20c]
push esi
push eax
call edi
add esp, 0x10
cmp eax, ebx
je 0x401d43
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCR71.dll_strcpy
push esi
push ebx
call edi
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x401d43
lea eax, [ebp - 0x108]
push esi
push eax
call sub.MSVCR71.dll_strcat
push dword [ebp - 4]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x10
push ebx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401d32
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401d43
push esi
push ebx
call edi
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x401cf4
mov al, 1
jmp 0x401d45
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d4a
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push dword [ebp + 8]
lea eax, [ebp - 0x454]
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x454]
push str..
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x401d96
xor al, al
leave
ret
and dword [ebp - 8], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push edi
and word [ebp - 0x10c], 0
and word [ebp - 0x210], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x10a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x324]
push 0x4057b8
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x401e05
lea eax, [ebp - 0x324]
push 0x4057b4
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
jne 0x401e2d
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x401dd7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
call ebx
sub eax, 0x12
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCR71.dll_strcpy
mov edi, 0x4057b0
lea eax, [ebp - 0x10c]
push edi
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCR71.dll_strcat
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x210]
push edi
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x30
test byte [ebp - 0x350], 0x10
lea eax, [ebp - 0x10c]
je 0x401ec6
push eax
call fcn.00401c74
test al, al
pop ecx
je 0x401f18
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401d4a
pop ecx
pop ecx
test al, al
jmp 0x401ed8
push 0
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x401f18
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x401efc
call ebx
cmp eax, 0x12
mov dword [ebp - 8], eax
jne 0x401f18
cmp dword [ebp - 8], 0x12
jne 0x401da9
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
jmp 0x401e28
xor bl, bl
jmp 0x401f08
Function at 0x401f1c
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x108]
push str..
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x401f68
xor al, al
leave
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x21c]
push 0x4057b8
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x402047
lea eax, [ebp - 0x21c]
push 0x4057b4
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x402047
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x108]
push 0x4057b0
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40200d
and eax, 0x20
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [ebp - 0x248], 0x10
lea eax, [ebp - 0x108]
push eax
je 0x402025
call fcn.00401f1c
pop ecx
jmp 0x402047
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402047
call esi
cmp eax, 0x20
jne 0x40209d
push 4
push 0
lea eax, [ebp - 0x108]
push eax
call edi
test eax, eax
je 0x40209d
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401f76
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
call esi
cmp eax, 0x12
jne 0x4020a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4020a8
call esi
cmp eax, 0x20
je 0x40208c
call esi
cmp eax, 0x91
jne 0x402099
push 4
push 0
push dword [ebp + 8]
call edi
test eax, eax
jne 0x4020a8
xor al, al
jmp 0x4020aa
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x402099
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x4020ae
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push 0x408060
lea eax, [ebp + 0x20]
push eax
call esi
push str.DATARAS_
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + 0x22], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x20]
push eax
call esi
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [0x407188]
test edi, edi
jle 0x402167
lea ecx, [ebp + eax + 0x20]
lea eax, [ebp + eax - 0x20]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov dword [ebp + 0x74], ecx
mov dword [ebp + 0x70], eax
cmp edi, 1
jle 0x40212f
lea eax, [edi - 2]
push eax
lea eax, [ebp + 0x60]
push str.MEMDPTR_d.RAS
push eax
call ebx
add esp, 0xc
lea eax, [ebp + 0x60]
push eax
jmp 0x402134
push str.PROCTRCE.RAS
push dword [ebp + 0x74]
call esi
dec edi
push edi
lea eax, [ebp + 0x60]
push str.MEMDPTR_d.RAS
push eax
call ebx
add esp, 0xc
lea eax, [ebp + 0x60]
push eax
push dword [ebp + 0x70]
call esi
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test edi, edi
jg 0x402112
pop ebx
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x40216e
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push 0x408060
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x100]
push 0x4075b0
push eax
call sub.MSVCR71.dll_strcat
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.MSVCR71.dll_system]
add esp, 0x14
leave
ret

Function at 0x4021ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push esi
mov esi, 0x4080a0
lea eax, [ebp - 0x100]
push esi
push eax
call sub.MSVCR71.dll_strcpy
lea eax, [ebp - 0x100]
push str._regchang.exe
push eax
call sub.MSVCR71.dll_strcat
add esp, 0x10
xor eax, eax
push eax
push esi
push eax
lea ecx, [ebp - 0x100]
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
leave
ret