joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c865
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44c97d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44c97d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00479c2e
mov esi, eax
test esi, esi
je 0x44c97d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44c97d
mov ecx, esi
call fcn.0044c7d0
cmp edi, eax
jge 0x44c97d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44c903
mov dword [esp + 0x34], 1
jmp 0x44c95e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44c97d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044bdd0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x44fe90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48697f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x7e6630]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x18]
mov edi, 1
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
je 0x44fee8
mov esi, dword [esp + 0x38]
push 0x803264
mov ecx, esi
call fcn.0047829b
mov dword [esp + 0x10], edi
jmp 0x44ff4e
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringA]
test eax, eax
je 0x44ff0e
mov esi, dword [esp + 0x38]
push 0x803264
mov ecx, esi
call fcn.0047829b
jmp 0x44ff4a
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.0047836a
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.RPCRT4.dll_RpcStringFreeA]
push 0x803264
push 0x7e0bbc
lea ecx, [esp + 0x14]
call fcn.00475a57
mov esi, dword [esp + 0x38]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00477fa2
mov dword [esp + 0x10], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], bl
call fcn.0047822d
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x453240
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8093b4]
xor edx, edx
cmp eax, edx
jne 0x453266
xor eax, eax
mov byte [eax + 0x8092b4], al
inc eax
cmp eax, 0x100
jl 0x45324e
mov dword [0x8093b4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8092b4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4532f7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4532ca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x453298
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x453300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x453353
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45333a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x486bee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0045a5f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x7c8a7c
call fcn.00477f6e
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x459d63
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00477f6e
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x459d5c
push 0
mov ecx, eax
call fcn.00450e70
mov dword [esi + 0xc], eax
jmp 0x459d65
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x459d65
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x47a5d1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47a609
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00478688
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00478660
jmp 0x47a615
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47bcc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47bd09
call fcn.004817a2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47bd09
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47bd00
xor eax, eax
jmp 0x47bd11
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047bd17
pop edi
pop esi
pop ebx
ret 4

Function at 0x481cd2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x481d00
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x481d1e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00481c38
jmp 0x481d1e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x481d1e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00481c38
test edi, edi
mov eax, edi
jne 0x481d08
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402f81
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 0x402f9e
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402fb0
mov dword [ebp - 0xc], 0x78e0f8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402fc5
mov ecx, dword [0x7a2fb8]
add ecx, eax
push ecx
call fcn.00403186
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403170
test eax, eax
je 0x40315e
test byte [ebp + 0x17], 0x80
je 0x403109
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40b858], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov byte [0x40b840], 0xb
mov dword [ebp + 8], eax
jle 0x403166
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40301b
mov esi, dword [ebp + 0x14]
mov edi, 0x78a0f8
push esi
push edi
call fcn.00403170
test eax, eax
je 0x40315e
sub dword [ebp + 0x14], esi
mov dword [0x40b830], edi
mov dword [0x40b834], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b830
mov dword [0x40b838], edi
mov dword [0x40b83c], eax
call fcn.004063ff
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403101
mov esi, dword [0x40b838]
sub esi, edi
call ebx
test byte [0x7a3014], 1
mov edi, eax
je 0x4030bc
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403089
cmp dword [ebp + 0x14], 0
jne 0x4030bc
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 - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00405069
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4030f5
cmp dword [ebp + 0x10], 0
jne 0x4030db
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405b82
test eax, eax
je 0x403105
add dword [ebp - 4], esi
jmp 0x4030e9
mov eax, dword [0x40b838]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 4
jne 0x40303e
jmp 0x403166
cmp dword [ebp + 0x14], 0
jg 0x40300e
jmp 0x403166
push 0xfffffffffffffffc
jmp 0x403160
push 0xfffffffffffffffe
jmp 0x403160
test edi, edi
jne 0x40314b
cmp dword [ebp + 0x14], edi
jle 0x403166
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x40311f
mov esi, ebx
mov edi, 0x78a0f8
push esi
push edi
call fcn.00403170
test eax, eax
je 0x40315e
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405b82
test eax, eax
je 0x403105
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403115
jmp 0x403166
cmp dword [ebp + 0x14], esi
jge 0x403153
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403170
test eax, eax
jne 0x403163
push 0xfffffffffffffffd
pop eax
jmp 0x403169
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40552f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405580
xor eax, eax
jmp 0x4055a7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4055a7
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40557c
call esi
pop esi
leave
ret 4

Function at 0x4055e1
Capabilities:
Create process on windows

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

Function at 0x405624
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405ab6
mov edi, eax
cmp edi, 0xffffffff
je 0x405703
test byte [esp + 0x10], 1
push esi
je 0x4056e5
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4056eb
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4056f4
xor eax, eax
inc eax
jmp 0x405705
test byte [esp + 0x10], 4
jne 0x405703
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40570a
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
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.004059c8
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405749
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2fe8], eax
jmp 0x4058d3
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405763
test eax, eax
je 0x405881
test bl, 2
je 0x405881
mov esi, 0x7a0548
push edi
push esi
call fcn.00405f42
cmp dword [ebp + 8], 0
je 0x405782
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405788
push edi
call fcn.00405921
cmp byte [edi], 0
jne 0x405796
cmp byte [0x7a0548], 0x5c
jne 0x4057a1
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405877
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405905
cmp byte [eax], 0
je 0x4057e7
cmp byte [ebp - 0x1c], 0
je 0x4057e7
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4057fd
mov al, byte [esi + 1]
test al, al
je 0x405856
cmp al, 0x2e
jne 0x4057fd
cmp byte [esi + 2], 0
je 0x405856
push esi
push ebx
call fcn.00405f42
test byte [ebp - 0x14c], 0x10
je 0x405822
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405856
push dword [ebp + 0xc]
push edi
call fcn.0040570a
jmp 0x405856
push dword [ebp - 4]
push edi
call fcn.004056c2
test eax, eax
jne 0x40584e
cmp dword [ebp - 4], eax
je 0x405846
push edi
push 0xfffffffffffffff1
call fcn.00405069
push 0
push edi
call fcn.00405d21
jmp 0x405856
inc dword [0x7a2fe8]
jmp 0x405856
push edi
push 0xfffffffffffffff2
call fcn.00405069
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057c5
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405881
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4058d3
cmp dword [ebp - 0xc], esi
jne 0x405895
inc dword [0x7a2fe8]
jmp 0x4058d3
push edi
call fcn.00406245
test eax, eax
je 0x4058d3
push edi
call fcn.004058da
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056c2
test eax, eax
jne 0x4058cb
cmp dword [ebp - 4], esi
je 0x40588d
push edi
push 0xfffffffffffffff1
call fcn.00405069
push esi
push edi
call fcn.00405d21
jmp 0x4058d3
push edi
push 0xffffffffffffffe5
call fcn.00405069
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4059c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a0948
push esi
call fcn.00405f42
push esi
call fcn.00405973
mov edi, eax
test edi, edi
jne 0x4059e9
xor eax, eax
jmp 0x405a3b
push edi
call fcn.004061ac
test byte [0x7a2f5c], 0x80
je 0x405a02
mov al, byte [edi]
test al, al
je 0x4059e5
cmp al, 0x5c
je 0x4059e5
sub edi, esi
jmp 0x405a1a
call fcn.00406245
test eax, eax
je 0x405a14
test byte [eax], 0x10
je 0x4059e5
push esi
call fcn.00405921
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405a06
call fcn.004058da
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x405adb
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x405b0a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3b4]
dec edi
mov dword [ebp + 8], 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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405b4f
test edi, edi
jne 0x405b15
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405b49
Function at 0x405bb1
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a12d0], 0x4c554e
mov edi, 0x400
mov ebp, 0x7a12d0
je 0x405bfd
push 1
push 0
push esi
call fcn.00405adb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d1c
cmp eax, edi
jg 0x405d1c
mov esi, 0x7a16d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d1c
cmp eax, edi
jg 0x405d1c
push esi
push ebp
push str._s_s_r_n
push 0x7a0ed0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a2f54]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f64
push 4
push 0xc0000000
push esi
call fcn.00405adb
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405d1c
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 0x405d15
push edi
push esi
push ebp
call fcn.00405b53
test eax, eax
je 0x405d15
push str._Rename__r_n
push esi
call fcn.00405a40
test eax, eax
jne 0x405cb3
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405ce8
add eax, 0xa
push 0x40a3b8
push eax
call fcn.00405a40
mov ebp, eax
test ebp, ebp
je 0x405ce4
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405cd5
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ccf
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405cea
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a0ed0
push eax
call fcn.00405a96
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405b82
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
ret

Function at 0x405d21
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405d44
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405bb1
pop ecx
pop ecx
inc dword [0x7a2ff0]
ret 8

Function at 0x405e29
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405dc8
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x405e98
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x405e98
cmp dword [ebp + 0xc], 1
je 0x405e9b
cmp dword [ebp + 0xc], 2
je 0x405e9b
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x40626c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406290
xor eax, eax
test eax, eax
je 0x4062a2
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4062a2
xor ecx, ecx
jmp 0x4062a5
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406391
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1ad4], 0
push esi
jne 0x4063c8
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 0x4063a2
mov dword [ecx*4 + 0x7a1ad0], eax
inc ecx
cmp ecx, 0x100
jl 0x40639d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4063f9
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1ad0]
xor eax, esi
inc ecx
dec edx
jne 0x4063db
pop edi
not eax
pop esi
ret 0xc
Function at 0x40b539
Capabilities:
Encode data using xor

Disassembly:
call fcn.0040b454
mov ecx, 0x1ae
call 0x40b539
rcr dword [esi + 0x30], 0x4c
dec esp