joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54ed50
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [0x566bbc], 0xe24
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x54edc0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x54ee79
jmp 0x54eeb6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0xe]
mov word [ebp - 0x16], dx
mov ax, word [ebp - 0x16]
cmp ax, 0x6c
je 0x54eea2
jmp 0x54eeb6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x54edfe
mov dword [0x566bc0], 0xd66
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, 0x104
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ecx
jl 0x54edc0
mov eax, dword [ebp - 0x20]
mov dword [0x566bbc], 0xf30
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x54eeb6
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2], 0x6f
jne 0x54eeb6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x16]
mov word [ebp - 0x2a], dx
mov ax, word [ebp - 0x2a]
cmp ax, 0x61
jne 0x54eeb6
mov dword [0x566bbc], 0x15e2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x2c], dx
mov ax, word [ebp - 0x2c]
cmp ax, 0x64
je 0x54ed86
jmp 0x54eeb6
mov dword [0x566bbc], 0x1882
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2], 0x6c
je 0x54ed9e
jmp 0x54eeb6
mov dword [0x566bc0], 0xfeb
mov eax, 1
mov dword [ebp - 0x34], eax
jmp 0x54eec5
xor eax, eax
mov dword [0x566bbc], 0x177
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add esp, 0x34
pop ebp
ret
Function at 0x54f700
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa8
call fcn.004010a0
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x34], ecx
je 0x54f733
jmp 0x54f729
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
lea eax, [esp + 0x48]
mov dword [0x566bbc], 0x2038
mov dword [0x566bc0], 0x2318
mov dword [esp + 0x2c], eax
call fcn.0054ed50
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x30], ecx
jne 0x54f721
lea eax, [esp + 0x38]
mov dword [esp], eax
call fcn.0054ef90
lea ecx, [0x54dd90]
mov edx, dword [0x566bc0]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x58], esi
mov dword [esp + 0x80], 0x119600
mov esi, dword [0x566ba8]
mov dword [esp + 0x88], esi
mov esi, dword [0x566bac]
mov dword [esp + 0x8c], esi
mov esi, dword [0x566bb0]
mov dword [esp + 0x94], esi
mov esi, dword [0x566bb4]
mov dword [esp + 0x54], esi
mov esi, dword [0x566bb8]
mov dword [esp + 0x6c], esi
add edx, 0xfffff8dd
mov dword [0x566bbc], edx
mov dword [0x566bc0], 0x22a3
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jne 0x54f818
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
je 0x54f84f
mov eax, dword [esp + 0x1c]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [esp + 0x18]
add ecx, 0xffffdab2
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 8]
mov dword [0x566bbc], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
jmp 0x54f7e9
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x48]
mov dword [esp + 0x78], eax
mov dword [0x566bc0], 0x1c92
mov dword [0x566bbc], 0x14d5
mov eax, dword [eax + ecx + 0x50]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x40]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0054e930
mov ecx, dword [0x566bc0]
add ecx, 0x1f82
mov dword [0x566bbc], ecx
mov ecx, esp
lea edx, [esp + 0x48]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x30], eax
jmp 0x54f721
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x479004]
jne 0x401010
repz ret
jmp fcn.0040176d

Function at 0x40655b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004032f4
and dword [ebp - 4], 0
cmp dword [0x47b0dc], 0
mov ebx, eax
jne 0x40660c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4066bd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4066bd
push eax
call fcn.00403282
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x47b0dc], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x47b0e0], eax
call esi
push eax
call fcn.00403282
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47b0e4], eax
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x47b0ec], eax
test eax, eax
je 0x40660c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403282
pop ecx
mov dword [0x47b0e8], eax
mov eax, dword [0x47b0e8]
cmp eax, ebx
je 0x406664
cmp dword [0x47b0ec], ebx
je 0x406664
push eax
call fcn.004032fd
push dword [0x47b0ec]
mov esi, eax
call fcn.004032fd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406664
test edi, edi
je 0x406664
call esi
test eax, eax
je 0x40665b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40665b
test byte [ebp - 0xc], 1
jne 0x406664
or dword [ebp + 0x10], 0x200000
jmp 0x40669d
mov eax, dword [0x47b0e0]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40669d
mov eax, dword [0x47b0e4]
cmp eax, ebx
je 0x40669d
push eax
call fcn.004032fd
pop ecx
test eax, eax
je 0x40669d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47b0dc]
call fcn.004032fd
pop ecx
test eax, eax
je 0x4066bd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4066bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x47368d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push dword [0x489044]
push dword [0x488d60]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
leave
ret

Function at 0x47371c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp ebx, 0x19f
jne 0x473730
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push edi
xor edi, edi
test ebx, ebx
jle 0x473754
push esi
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00473711
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edi
xor byte [eax], cl
inc edi
cmp edi, ebx
jl 0x473738
pop esi
pop edi
cmp ebx, 0x2d
jne 0x47376b
or dword [0x489054], 0xffffffff
mov dword [0x489050], 0xa62e7790
leave
ret
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 0x40f87e
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
push ss
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x18883270
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2e1e08e3
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x404420
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x4045a5
push esi
call fcn.00411568
add esp, 4
test eax, eax
je 0x4045a5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4045a5
test bl, 1
je 0x40446d
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x404594
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x46c]
push eax
call fcn.004115af
lea ecx, [esp + 0x470]
push 0x4848c4
push ecx
call fcn.00411585
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404582
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x3c]
push 0x484910
push ecx
call ebp
test eax, eax
je 0x404567
lea edx, [esp + 0x3c]
push 0x48490c
push edx
call ebp
test eax, eax
je 0x404567
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x262]
mov word [esp + 0x260], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x260]
push esi
push eax
call fcn.004115af
lea ecx, [esp + 0x268]
push 0x4847d4
push ecx
call fcn.00411585
lea edx, [esp + 0x4c]
lea eax, [esp + 0x270]
push edx
push eax
call fcn.00411585
lea ecx, [esp + 0x278]
push ecx
call fcn.00404420
add esp, 0x1c
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4044e9
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
Function at 0x4045c0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x664
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
cmp esi, ebx
je 0x404766
push esi
call fcn.00411568
add esp, 4
test eax, eax
je 0x404766
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
push esi
mov dword [esp + 0x24], ebx
call fcn.00401ca0
add esp, 0x1c
test eax, eax
je 0x404766
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x404766
test al, 1
je 0x40462c
and al, 0xfe
push eax
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 8]
test al, 0x10
je 0x404756
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], bx
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x46c]
push ecx
stosw word es:[edi], ax
call fcn.004115af
lea edx, [esp + 0x470]
push 0x4848c4
push edx
call fcn.00411585
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
mov dword [esp + 0x228], ebx
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x218]
lea ecx, [esp + 0x468]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404745
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea edx, [esp + 0x248]
push 0x484910
push edx
call ebp
test eax, eax
je 0x404726
lea eax, [esp + 0x248]
push 0x48490c
push eax
call ebp
test eax, eax
je 0x404726
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push esi
push ecx
stosw word es:[edi], ax
call fcn.004115af
lea edx, [esp + 0x1c]
push 0x4847d4
push edx
call fcn.00411585
lea eax, [esp + 0x258]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00411585
lea edx, [esp + 0x2c]
push edx
call fcn.004045c0
add esp, 0x1c
lea eax, [esp + 0x21c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4046b1
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebx
add esp, 0x664
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
add esp, 0x664
ret
pop esi
xor eax, eax
pop ebx
add esp, 0x664
ret
Function at 0x4047d0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Get file attributes
Move file
Set file attributes

Disassembly:
sub esp, 0x404
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
push ebp
call ebx
cmp eax, 0xffffffff
jne 0x404811
mov eax, dword [esp + 0x420]
mov ecx, dword [esp + 0x418]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
test al, 1
je 0x404827
and al, 0xfe
push eax
push ebp
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x4048a5
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
push eax
push ebp
lea edx, [esp + 0x1c]
push str._s.bak_08X
push edx
call fcn.00411c79
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x404899
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
push eax
push ebp
lea ecx, [esp + 0x1c]
push str._s.bak_08X
push ecx
call fcn.00411c79
add esp, 0x10
lea edx, [esp + 0x14]
push edx
call ebx
inc esi
cmp esi, 0xa
jge 0x4048c7
cmp eax, 0xffffffff
jne 0x404869
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x418]
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x404
ret
Function at 0x404af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x470082
push eax
mov dword fs:[0], esp
sub esp, 0x268
push esi
mov esi, dword [esp + 0x27c]
push edi
xor edi, edi
cmp esi, edi
je 0x404d18
push esi
call fcn.00411568
add esp, 4
test eax, eax
je 0x404d18
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404d18
test al, 0x10
je 0x404d18
push ebx
push esi
lea ecx, [esp + 0x10]
call fcn.00457b12
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x280], edi
call fcn.004552c6
mov dword [esp + 0x24], edi
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push 0x4848c4
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00457d43
mov eax, dword [eax]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00457a9e
cmp edi, 0xffffffff
mov ebx, 1
je 0x404cea
mov esi, dword [esp + 0x288]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x54]
push 0x484910
push eax
call ebp
test eax, eax
je 0x404cce
lea ecx, [esp + 0x54]
push 0x48490c
push ecx
call ebp
test eax, eax
je 0x404cce
lea edx, [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
call fcn.00457b12
mov al, byte [esp + 0x28]
mov byte [esp + 0x280], bl
test al, 0x10
push 0x4847d4
je 0x404c61
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.00457d43
lea edx, [esp + 0x14]
mov byte [esp + 0x280], 2
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00457cdd
mov eax, dword [eax]
push esi
push eax
mov byte [esp + 0x288], 3
call fcn.00404af0
add esp, 8
lea ecx, [esp + 0x24]
mov byte [esp + 0x280], 2
call fcn.00457a9e
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x18]
jmp 0x404cb8
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.00457d43
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push eax
push edx
mov byte [esp + 0x28c], 4
call fcn.00457cdd
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x288], 5
call fcn.00456bda
lea ecx, [esp + 0x1c]
mov byte [esp + 0x280], 4
call fcn.00457a9e
mov byte [esp + 0x280], bl
lea ecx, [esp + 0x20]
call fcn.00457a9e
lea ecx, [esp + 0x14]
mov byte [esp + 0x280], 0
call fcn.00457a9e
lea eax, [esp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404bbe
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x27c], 0xffffffff
call fcn.00457a9e
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
add esp, 0x274
ret
mov ecx, dword [esp + 0x270]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x274
ret
Function at 0x404d40
Capabilities:
Get graphical window text

Disassembly:
call fcn.004237f0
test eax, eax
je 0x404d5f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor ebp, ebp
test edi, edi
je 0x404de0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x404de0
lea ecx, [esi + esi]
xor eax, eax
mov edx, ecx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.004577d1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404de0
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebp, eax
test ebp, ebp
je 0x404de0
push esi
mov esi, dword [esp + 0x1c]
push esi
push 0xffffffffffffffff
push ebx
xor ebp, ebp
call fcn.00401150
add esp, 0x10
test eax, eax
je 0x404de0
push esi
call fcn.00411568
add esp, 4
mov ebp, eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x4230b0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x48d588]
sub esp, 0x114
test eax, eax
jne 0x4231fd
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x48d320
mov dword [0x48d588], 1
mov dword [0x48d320], 0x114
call esi
mov edx, dword [0x48d330]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x489618], eax
je 0x4231d8
push ebx
push 0x48d438
mov dword [0x48d438], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x484630
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x48d57c], eax
call edi
mov dword [0x48d580], eax
mov eax, dword [0x48d57c]
test eax, eax
push 0x48d558
je 0x423154
call eax
jmp 0x42315a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x48d43c]
cmp eax, 6
jae 0x423172
cmp eax, 5
jne 0x423186
cmp dword [0x48d440], 2
jb 0x423186
cmp word [0x48d558], 9
jne 0x423186
mov dword [0x48d314], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x4231a4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x48d584], edx
jmp 0x4231aa
mov edx, dword [0x48d584]
test edx, edx
je 0x4231d8
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x4231d8
mov ecx, dword [esp + 0x14]
mov dword [0x48d32c], ecx
push 0x48d328
push 0x48d324
call fcn.004235a0
add esp, 8
call fcn.00423210
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret