joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4444f3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x444525
push dword [ebp + 8]
call edi
push eax
call fcn.00455d05
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x444550
test byte [ebp - 4], 1
je 0x444550
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x444550
push dword [ebp + 8]
call edi
push eax
call fcn.00455d05
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x44460a
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00444455
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x444586
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.00444455
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x44459c
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00444455
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4445c9
push dword [ebp + 8]
call edi
push eax
call fcn.00455d05
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4445f5
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00455d05
push ebx
call esi
test eax, eax
jne 0x444607
push dword [ebp + 8]
call edi
push eax
call fcn.00455d05
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x444632
test byte [ebp - 4], 1
jne 0x444632
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x444632
push dword [ebp + 8]
call edi
push eax
call fcn.00455d05
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44a4ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x44a501
call fcn.0044e91e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44a501
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x44a51d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0044a032
mov esi, eax
test edi, edi
je 0x44a51b
test ebx, ebx
je 0x44a51b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x44bc40
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x48af35
call fcn.0046c021
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44bc65
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x44bcab
lea ecx, [ebp - 0x10]
call fcn.00419b50
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004435f2
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004192e0
mov eax, esi
call fcn.0046c0f9
ret 8

Function at 0x44ddeb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x44de0f
cmp dword [edi + 0x54], 0
jne 0x44de0f
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0044e91e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0044ddac
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x453ab2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x453afa
call fcn.0044e91e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x453afa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x453b3d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x453b26
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x453b26
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x453b3a
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x466d50
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b9b20]
jne 0x466d5a
repz ret
jmp fcn.00471a0c
Function at 0x478209
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.0046d909
and dword [ebp - 4], 0
cmp dword [0x4c2784], 0
mov ebx, eax
jne 0x4782ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47836b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47836b
push eax
call fcn.0046d897
mov dword [esp], 0x49b9d0
push edi
mov dword [0x4c2784], eax
call esi
push eax
call fcn.0046d897
mov dword [esp], 0x49b9bc
push edi
mov dword [0x4c2788], eax
call esi
push eax
call fcn.0046d897
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c278c], eax
call esi
push eax
call fcn.0046d897
pop ecx
mov dword [0x4c2794], eax
test eax, eax
je 0x4782ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046d897
pop ecx
mov dword [0x4c2790], eax
mov eax, dword [0x4c2790]
cmp eax, ebx
je 0x478312
cmp dword [0x4c2794], ebx
je 0x478312
push eax
call fcn.0046d912
push dword [0x4c2794]
mov esi, eax
call fcn.0046d912
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x478312
test edi, edi
je 0x478312
call esi
test eax, eax
je 0x478309
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x478309
test byte [ebp - 0xc], 1
jne 0x478312
or dword [ebp + 0x10], 0x200000
jmp 0x47834b
mov eax, dword [0x4c2788]
cmp eax, ebx
je 0x47834b
push eax
call fcn.0046d912
pop ecx
test eax, eax
je 0x47834b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47834b
mov eax, dword [0x4c278c]
cmp eax, ebx
je 0x47834b
push eax
call fcn.0046d912
pop ecx
test eax, eax
je 0x47834b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c2784]
call fcn.0046d912
pop ecx
test eax, eax
je 0x47836b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47836d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x480c50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x480c5f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4bb00c]
test eax, eax
je 0x480c6d
call fcn.00480bf0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x480d6f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x4c27e8]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c27e8]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c27e8]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c27e8]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c27e8]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x4c27e8]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x4c27e8]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4c27e8]
xor eax, ecx
inc esi
dec edi
jne 0x480c87
pop edi
test edx, edx
je 0x480d91
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4c27e8]
xor eax, ecx
inc esi
dec edx
jne 0x480d73
pop ebx
pop esi
not eax
ret 0xc
Function at 0x40b840
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ecx
push cs
add byte [eax], dl
add ch, ah
lea ecx, [ebp + edi*8 + 0x50]
jb 0x40b860
xor edi, 0xa91000
sub eax, 0xff00
push ebp
add dword [0x1000], edi
jae 0x40b84c
sub ecx, dword [eax - 0x75]
les eax, [ebp - 0x741e74ff]
invalid
invalid
Function at 0x402eb7
Capabilities:
Check for time delay via gettickcount
Write file on windows

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 0x402ed4
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402ee3
mov ebx, 0x40f0f0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ef8
mov ecx, dword [0x424378]
add ecx, eax
push ecx
call fcn.004030e6
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030b4
test eax, eax
je 0x40305f
test byte [ebp + 0x17], 0x80
je 0x403048
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b020
mov dword [ebp - 0xc], eax
call fcn.00405d2d
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030aa
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f48
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0f0
push esi
push edi
call fcn.004030b4
test eax, eax
je 0x40305f
sub dword [ebp + 0x14], esi
mov dword [0x40b038], edi
mov dword [0x40b03c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b020
mov dword [0x40b040], ebx
mov dword [0x40b044], eax
call fcn.00405d4d
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403040
mov esi, dword [0x40b040]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409298], 1
mov edi, eax
je 0x402fea
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402fb7
cmp dword [ebp + 0x14], 0
jne 0x402fea
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.00404d16
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403035
cmp dword [ebp + 0x10], eax
jne 0x403013
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403044
cmp dword [ebp - 0x10], esi
jne 0x403044
add dword [ebp - 4], esi
jmp 0x403029
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b040]
jl 0x4030aa
cmp dword [ebp - 0x14], 1
jne 0x402f6b
jmp 0x4030aa
cmp dword [ebp + 0x14], eax
jg 0x402f3b
jmp 0x4030aa
push 0xfffffffffffffffc
jmp 0x403061
push 0xfffffffffffffffe
jmp 0x403061
test edi, edi
je 0x40309f
cmp dword [ebp + 0x14], esi
jge 0x403054
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030b4
test eax, eax
jne 0x4030a7
push 0xfffffffffffffffd
pop eax
jmp 0x4030ad
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40306f
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0f0
push esi
push edi
call fcn.004030b4
test eax, eax
je 0x40305f
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 0x403044
cmp esi, dword [ebp + 0x10]
jne 0x403044
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403064
jmp 0x4030aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40377b
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42b000], 0
push ebx
push ebp
push esi
push edi
mov edi, 0xffff
mov ebx, 0x42b000
je 0x40379a
push ebx
call fcn.004058bd
jmp 0x4037a0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [0x424364]
test esi, esi
je 0x4037ef
mov ecx, dword [0x424328]
mov ecx, dword [ecx + 0x64]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x424360]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x4037d6
test esi, esi
jne 0x4037c0
jmp 0x4037ef
mov edx, dword [ecx + 2]
mov dword [0x423b00], edx
mov edx, dword [ecx + 6]
mov dword [0x4243c8], edx
lea edx, [ecx + 0xa]
test edx, edx
jne 0x403801
cmp di, 0xffff
jne 0x4037fd
mov edi, 0x3ff
jmp 0x4037a0
xor edi, edi
jmp 0x4037a0
mov dword [0x423afc], edx
movzx eax, word [ecx]
push eax
push ebx
call fcn.004058a4
push 0xfffffffffffffffe
push 0x423b20
call fcn.00405958
push eax
push dword [0x420910]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x42434c]
mov esi, dword [0x424348]
test eax, eax
je 0x403854
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x40384b
push eax
lea eax, [esi + 0x18]
push eax
call fcn.00405958
add esi, 0x418
dec edi
jne 0x40383b
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4051f8
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x422938], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40521c
test al, 0x10
jne 0x40521f
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x422938
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40524a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4052b2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405535
test byte [ebp + 0xc], 8
mov dword [ebp - 4], eax
je 0x4052e6
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4243a8], eax
jmp 0x40544f
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp + 8], ebx
je 0x405304
test eax, eax
je 0x405400
test byte [ebp + 0xc], 2
je 0x405400
mov esi, 0x421938
push edi
push esi
call sub.KERNEL32.dll_lstrcpyA
test ebx, ebx
je 0x405321
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405327
push edi
call fcn.0040549c
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x144]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4053f6
cmp byte [ebp - 0x118], 0x2e
jne 0x405370
cmp byte [ebp - 0x117], 0x2e
je 0x4053d9
cmp byte [ebp - 0x117], 0
je 0x4053d9
lea eax, [ebp - 0x118]
push eax
push ebx
call sub.KERNEL32.dll_lstrcpyA
mov eax, dword [ebp - 0x144]
test al, 0x10
je 0x40539c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4053d9
push dword [ebp + 0xc]
push edi
call fcn.004052b2
jmp 0x4053d9
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4053d1
test byte [ebp + 0xc], 4
je 0x4053c9
push edi
push 0xfffffffffffffff1
call fcn.00404d16
push 0
push edi
call fcn.00405690
jmp 0x4053d9
inc dword [0x4243a8]
jmp 0x4053d9
push edi
push 0xfffffffffffffff2
call fcn.00404d16
lea eax, [ebp - 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405355
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405400
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp + 8], esi
je 0x40544f
cmp dword [ebp - 4], esi
jne 0x405415
inc dword [0x4243a8]
jmp 0x40544f
push edi
call fcn.00405c24
test eax, eax
je 0x40544f
push edi
call fcn.00405455
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405447
test byte [ebp + 0xc], 4
je 0x40540d
push edi
push 0xfffffffffffffff1
call fcn.00404d16
push esi
push edi
call fcn.00405690
jmp 0x40544f
push edi
push 0xffffffffffffffe5
call fcn.00404d16
pop edi
pop esi
leave
ret 8
Function at 0x405535
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421d38
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.004054e8
mov edi, eax
test edi, edi
jne 0x405556
xor eax, eax
jmp 0x4055a8
push edi
call fcn.00405b8b
test byte [0x424330], 0x80
je 0x40556f
mov al, byte [edi]
test al, al
je 0x405552
cmp al, 0x5c
je 0x405552
sub edi, esi
jmp 0x405587
call fcn.00405c24
test eax, eax
je 0x405581
test byte [eax], 0x10
je 0x405552
push esi
call fcn.0040549c
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405573
call fcn.00405455
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 0x405619
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 0x405648
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 0x40568c
test edi, edi
jne 0x405653
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405686
Function at 0x405690
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.00405c62
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4056bc
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405800
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x422ac0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x422ac0
je 0x405700
push 1
push 0
push esi
call fcn.00405619
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405806
cmp eax, edi
jg 0x405806
mov esi, 0x422538
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405806
cmp eax, edi
jg 0x405806
push esi
push ebp
push str._s_s_r_n
push 0x422138
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebp, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor edi, edi
push edi
push 0x8000080
push 4
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405800
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
lea eax, [esi + ebp + 0xa]
push eax
push edi
push 4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4057e8
push edi
push edi
push edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4057dc
push str._Rename__r_n
push edi
call fcn.004055ad
test eax, eax
jne 0x40580d
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push ebp
add eax, edi
push 0x422138
push eax
call fcn.004055f9
push edi
add esi, ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x4243b0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409300
push eax
call fcn.004055ad
test eax, eax
je 0x4057c3
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x405836
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x405829
sub eax, edi
jmp 0x4057c5
Function at 0x40583a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40589e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40588d
cmp dword [ebp + 0x14], 1
je 0x40588f
cmp dword [ebp + 0x14], 2
je 0x40588f
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405cbf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ec4], 0
push esi
jne 0x405cf6
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 0x405cd0
mov dword [ecx*4 + 0x422ec0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ccb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d27
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 + 0x422ec0]
xor eax, esi
inc ecx
dec edx
jne 0x405d09
pop edi
not eax
pop esi
ret 0xc