joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6111b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00611140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00611140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00611140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00611140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x611bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x611c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x62387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x611c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x611c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6e66241f
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..rsrc
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x316e38fb
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x620000
Capabilities:
Read .ini file

Disassembly:
pushal
xor ebx, ebx
or ebx, str.msdfmap.ini
push 0x10
pop esi
dec esi
push 0
call sub.KERNEL32.dll_AddAtomA
test esi, esi
jne 0x62000c
push ebx
add ebx, 0x18
push 0x10
mov esi, ebx
push ebx
add ebx, 0x20
push ebx
push ebx
add ebx, 8
push ebx
mov eax, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call eax
lodsb al, byte [esi]
lodsb al, byte [esi]
lodsb al, byte [esi]
cmp al, 0x45
je 0x6204a8
jmp 0x62000d
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x3c
mov edi, 0x6220b4
sub dword [ebp - 8], 0xffffff86
mov ebx, 0
push ebx
call sub.KERNEL32.dll_SetEvent
push edi
push dword [edi + 0x1fc]
push esi
push ecx
push dword [edi + 0x108]
call fcn.00620114
pop edi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push dword [edi + 0x44]
pop esi
call esi
add esp, 0x3c
pop ebp
ret

Function at 0x620058
Capabilities:
Resume thread

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x3c
mov edi, 0x622180
and ecx, dword [edi - 0x74]
push edi
push eax
push edx
call fcn.0062059c
pop edi
mov ebx, 0
push ebx
call sub.ADVAPI32.dll_IsValidSid
mov ebx, 0
push ebx
call sub.KERNEL32.dll_ResumeThread
add esp, 0x3c
pop ebp
pop ecx
add esp, 0x10
jmp ecx

Function at 0x62014c
Capabilities:
Get disk information

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x48
lea edi, [0x622038]
mov dword [edi + 0x7c], ecx
push edi
push edx
push dword [edi + 0x194]
push edx
call fcn.00620354
pop edi
mov ecx, 0
push ecx
call sub.KERNEL32.dll_ReleaseMutex
push 0
call sub.KERNEL32.dll_GetDriveTypeA
add esp, 0x48
pop ebp
pop ecx
add esp, 0x10
jmp ecx

Function at 0x62018c
Capabilities:
Get disk information

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x20
lea esi, [edi + 0x11c]
and edi, dword [esi + 0xb4]
push 0
call sub.ADVAPI32.dll_FreeSid
push esi
push dword [esi + 0x14]
push edx
push dword [esi + 0x138]
call fcn.00620760
pop esi
push 0
call sub.KERNEL32.dll_GetDriveTypeA
add esp, 0x20
pop ebp
pop edx
add esp, 0x10
jmp edx

Function at 0x6201e4
Capabilities:
Encode data using xor
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
sbb ebx, dword [edx + 0x13c]
lea esi, [edx + 0xa0]
push esi
mov ebx, esp
push ebx
mov edi, 0x40
push edi
mov ebx, 0xa1c
push ebx
mov ecx, 0x622408
push ecx
mov edx, 0xa240b929
push dword [edx + 0x5e2156e3]
sub dword [esp], 2
mov edx, sym.imp.KERNEL32.dll_GetPrivateProfileStringW
pop dword [edx]
call sub.KERNEL32.dll_GetPrivateProfileStringW
add esp, 4
lea ebx, [0x622408]
mov dword [esi + 0xc], ebx
lea edi, [ebx]
xor ecx, ecx
xor ecx, 0x621521
mov eax, 0x61c
mov edx, dword [ecx]
add ecx, 4
push edx
pop dword [edi]
or ebx, dword [esi + 0xdc]
xor dword [edi], 0xed849607
add dword [edi], 0x5a3f2793
xor dword [edi], 0x93456e74
add edi, 4
sub eax, 4
test eax, eax
jne 0x620242
mov edi, 0x4e8
push edi
call sub.KERNEL32.dll_IsValidCodePage
add esp, 0x34
pop ebp
ret 0xc
Function at 0x6203a4
Capabilities:
Resume thread

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x3c
lea eax, [0x62205c]
xor dword [eax - 0x2c], 0xffffe438
push eax
call sub.KERNEL32.dll_GetTickCount
pop eax
push eax
push dword [eax + 0x90]
push dword [eax + 0x194]
call fcn.006202c8
pop eax
push eax
mov ebx, 0
push ebx
call sub.KERNEL32.dll_ResumeThread
pop eax
add esp, 0x3c
pop ebp
pop ebx
add esp, 8
jmp ebx

Function at 0x620718
Capabilities:
Resume thread

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x28
lea esi, [0x622188]
sub eax, 0x3f0d
push esi
push ecx
push dword [esi + 0x190]
call fcn.00620ba4
pop esi
mov ebx, 0
push ebx
call sub.KERNEL32.dll_ResumeThread
call sub.KERNEL32.dll_GetTickCount
add esp, 0x28
pop ebp
pop edx
add esp, 8
jmp edx

Function at 0x6209ac
Capabilities:
Resume thread

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x20
lea ecx, [eax - 0xf0]
mov dword [ebp - 0x14], ebx
push ecx
mov edx, 0
push edx
call sub.KERNEL32.dll_ResumeThread
pop ecx
push ecx
push dword [ecx + 0x1cc]
push esi
push eax
push dword [ecx + 0x3c]
call fcn.00620c2c
pop ecx
push ecx
mov esi, 0
push esi
call sub.KERNEL32.dll_HeapDestroy
pop ecx
add esp, 0x20
pop ebp
pop edx
add esp, 0xc
jmp edx

Function at 0x620c2c
Capabilities:
Resume thread

Disassembly:
push esp
xchg dword [esp], ebp
sub ebp, 4
sub esp, 0x24
mov eax, 0x6220c0
and dword [ebp - 0x18], 0xffffffee
push eax
push dword [eax + 0x1d8]
push dword [eax + 0x8c]
push dword [eax + 0x1e8]
push dword [eax + 0x20]
call fcn.0062096c
pop eax
push eax
push 0
call sub.KERNEL32.dll_ResumeThread
pop eax
push eax
push 0
call sub.KERNEL32.dll_ReleaseMutex
pop eax
add esp, 0x24
pop ebp
pop edx
add esp, 0x10
jmp edx
Function at 0x673443b5
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x38
mov edi, dword [0x67392153]
mov eax, dword fs:[0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
mov edx, dword [ebx]
cmp edx, ebx
je 0x67344427
xor ebp, ebp

Function at 0x673459ec
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [ebp + 8]
mov esi, dword [ebx]
cmp byte [ebx + 0x12d], 0
je 0x67345a10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea edi, [ebp - 0xa0]
lea edx, [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [ebp - 0x12c], edx
call sub.WS2_32.dll_getpeername
sub esp, 0xc
test eax, eax
mov edx, dword [ebp - 0x12c]
jne 0x67345b0c
mov dword [ebp - 0x1c], pe_nt_image_headers32
mov dword [esp + 8], edx
lea eax, [ebp - 0x120]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
test eax, eax
jne 0x67345adc
lea ecx, [esi + 0x8664]
lea edx, [esi + 0x8634]
mov eax, edi
call fcn.67345790
test al, al
je 0x67345b40
lea ecx, [esi + 0x8698]
lea edx, [esi + 0x8668]
lea eax, [ebp - 0x120]
call fcn.67345790
test al, al
jne 0x67345a06
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.673534dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.ssloc_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
call fcn.67346d80
jmp 0x67345a06
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.673534dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.getsockname___failed_with_errno__d:__s
mov dword [esp], esi
call fcn.67346d80
jmp 0x67345a06
call sub.WS2_32.dll_WSAGetLastError
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.673534dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.getpeername___failed_with_errno__d:__s
mov dword [esp], esi
call fcn.67346d80
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.673534dc
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str.ssrem_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
call fcn.67346d80
jmp 0x67345a06
Function at 0x403143
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 0x403160
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403172
mov dword [ebp - 0xc], 0x421448
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403187
mov ecx, dword [0x42f478]
add ecx, eax
push ecx
call fcn.0040336b
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403355
test eax, eax
je 0x403343
test byte [ebp + 0x17], 0x80
je 0x4032ee
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40bdac], 0
and dword [0x40bda8], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40d430
mov dword [0x40b890], 8
mov dword [0x415438], eax
mov dword [0x415434], eax
mov eax, dword [ebp + 0x14]
mov dword [0x415430], 0x415430
mov dword [ebp + 8], eax
jle 0x40334b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403200
mov esi, dword [ebp + 0x14]
mov edi, 0x41d448
push esi
push edi
call fcn.00403355
test eax, eax
je 0x403343
sub dword [ebp + 0x14], esi
mov dword [0x40b880], edi
mov dword [0x40b884], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40b880
mov dword [0x40b888], edi
mov dword [0x40b88c], eax
call fcn.00406788
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4032e6
mov esi, dword [0x40b888]
sub esi, edi
call ebx
test byte [0x42f4d4], 1
mov edi, eax
je 0x4032a1
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x40326e
cmp dword [ebp + 0x14], 0
jne 0x4032a1
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.00405378
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4032da
cmp dword [ebp + 0x10], 0
jne 0x4032c0
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405e91
test eax, eax
je 0x4032ea
add dword [ebp - 4], esi
jmp 0x4032ce
mov eax, dword [0x40b888]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403223
jmp 0x40334b
cmp dword [ebp + 0x14], 0
jg 0x4031f3
jmp 0x40334b
push 0xfffffffffffffffc
jmp 0x403345
push 0xfffffffffffffffe
jmp 0x403345
test edi, edi
jne 0x403330
cmp dword [ebp + 0x14], edi
jle 0x40334b
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403304
mov esi, ebx
mov edi, 0x41d448
push esi
push edi
call fcn.00403355
test eax, eax
je 0x403343
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405e91
test eax, eax
je 0x4032ea
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4032fa
jmp 0x40334b
cmp dword [ebp + 0x14], esi
jge 0x403338
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403355
test eax, eax
jne 0x403348
push 0xfffffffffffffffd
pop eax
jmp 0x40334e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40583e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408384
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], 0x408374
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40588f
xor eax, eax
jmp 0x4058b6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058b6
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40588b
call esi
pop esi
leave
ret 4

Function at 0x4058f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42c098], 0x44
push eax
xor eax, eax
push 0x42c098
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 0x40592f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405933
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 0x4059d1
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dc5
mov edi, eax
cmp edi, 0xffffffff
je 0x405a12
test byte [esp + 0x10], 1
push esi
je 0x4059f4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4059fa
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405a03
xor eax, eax
inc eax
jmp 0x405a14
test byte [esp + 0x10], 4
jne 0x405a12
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405a19
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.00405cd7
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405a58
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4a8], eax
jmp 0x405be2
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a72
test eax, eax
je 0x405b90
test bl, 2
je 0x405b90
mov esi, 0x42b898
push edi
push esi
call fcn.00406257
cmp dword [ebp + 8], 0
je 0x405a91
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405a97
push edi
call fcn.00405c30
cmp byte [edi], 0
jne 0x405aa5
cmp byte [0x42b898], 0x5c
jne 0x405ab0
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 0x405b86
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405c14
cmp byte [eax], 0
je 0x405af6
cmp byte [ebp - 0x1c], 0
je 0x405af6
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405b0c
mov al, byte [esi + 1]
test al, al
je 0x405b65
cmp al, 0x2e
jne 0x405b0c
cmp byte [esi + 2], 0
je 0x405b65
push esi
push ebx
call fcn.00406257
test byte [ebp - 0x14c], 0x10
je 0x405b31
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b65
push dword [ebp + 0xc]
push edi
call fcn.00405a19
jmp 0x405b65
push dword [ebp - 4]
push edi
call fcn.004059d1
test eax, eax
jne 0x405b5d
cmp dword [ebp - 4], eax
je 0x405b55
push edi
push 0xfffffffffffffff1
call fcn.00405378
push 0
push edi
call fcn.00406030
jmp 0x405b65
inc dword [0x42f4a8]
jmp 0x405b65
push edi
push 0xfffffffffffffff2
call fcn.00405378
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ad4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b90
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405be2
cmp dword [ebp - 0xc], esi
jne 0x405ba4
inc dword [0x42f4a8]
jmp 0x405be2
push edi
call fcn.004065ce
test eax, eax
je 0x405be2
push edi
call fcn.00405be9
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059d1
test eax, eax
jne 0x405bda
cmp dword [ebp - 4], esi
je 0x405b9c
push edi
push 0xfffffffffffffff1
call fcn.00405378
push esi
push edi
call fcn.00406030
jmp 0x405be2
push edi
push 0xffffffffffffffe5
call fcn.00405378
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cd7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bc98
push esi
call fcn.00406257
push esi
call fcn.00405c82
mov edi, eax
test edi, edi
jne 0x405cf8
xor eax, eax
jmp 0x405d4a
push edi
call fcn.00406535
test byte [0x42f438], 0x80
je 0x405d11
mov al, byte [edi]
test al, al
je 0x405cf4
cmp al, 0x5c
je 0x405cf4
sub edi, esi
jmp 0x405d29
call fcn.004065ce
test eax, eax
je 0x405d23
test byte [eax], 0x10
je 0x405cf4
push esi
call fcn.00405c30
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405d15
call fcn.00405be9
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 0x405dc5
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 0x405de4
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 0x405dea
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 0x405e19
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 [0x40a3d4]
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 0x405e5e
test edi, edi
jne 0x405e24
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e58
Function at 0x405ec0
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 [0x42c620], 0x4c554e
mov edi, 0x400
mov ebp, 0x42c620
je 0x405f0c
push 1
push 0
push esi
call fcn.00405dea
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40602b
cmp eax, edi
jg 0x40602b
mov esi, 0x42ca20
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40602b
cmp eax, edi
jg 0x40602b
push esi
push ebp
push str._s_s_r_n
push 0x42c220
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42f430]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062ea
push 4
push 0xc0000000
push esi
call fcn.00405dea
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40602b
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 0x406024
push edi
push esi
push ebp
call fcn.00405e62
test eax, eax
je 0x406024
push str._Rename__r_n
push esi
call fcn.00405d4f
test eax, eax
jne 0x405fc2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405ff7
add eax, 0xa
push 0x40a3d8
push eax
call fcn.00405d4f
mov ebp, eax
test ebp, ebp
je 0x405ff3
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fe4
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fde
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405ff9
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42c220
push eax
call fcn.00405da5
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.00405e91
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 0x406030
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 0x406053
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ec0
pop ecx
pop ecx
inc dword [0x42f4b0]
ret 8

Function at 0x40613e
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.004060dd
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061ad
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 0x4061ad
cmp dword [ebp + 0xc], 1
je 0x4061b0
cmp dword [ebp + 0xc], 2
je 0x4061b0
and byte [esi], 0
pop esi
leave
ret 0x14