joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x40891a
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
dec esi
dec eax
call fcn.00408943
sub eax, 0x4444274
xor dword [ebx], edx
inc ebx
cmp ebx, ecx
jne fcn.0040891a
add esi, 0xfb6d8a60
add esi, 1
ret
Function at 0x408933
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
call fcn.00408959
sub ecx, 0x3fc5d537
sub esp, 4
mov dword [esp], ecx
pop ecx
xor dword [esi], eax
mov ecx, edx
inc esi
cmp esi, ebx
jne fcn.00408933
ret
Function at 0xda0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00da01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xda007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xda006a
add dl, dl
jne 0xda0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xda00dc
xor eax, eax
add dl, dl
jne 0xda0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xda017d
add dl, dl
jne 0xda00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xda00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xda00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xda00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xda00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xda0075
mov eax, 1
add dl, dl
jne 0xda00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xda00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xda00e1
sub eax, ebx
mov ebx, 1
jne 0xda0128
mov ecx, 1
add dl, dl
jne 0xda010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xda0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xda0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xda0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xda013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xda014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xda0136
cmp eax, 0x7d00
jae 0xda016d
cmp eax, 0x500
jb 0xda0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xda0075
cmp eax, 0x7f
ja 0xda0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xda0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xda019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xda0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x66cc8d9b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x674bb008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x674bb008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x66cc8e65
jmp 0x66cc8f0f
jmp 0x66cc8fb9
jmp 0x66cc9063
jmp 0x66cc910d
jmp 0x66cc91b7
jmp 0x66cc9261
jmp 0x66cc930b
jmp 0x66cc93b5
jmp 0x66cc945f
jmp 0x66cc9509
jmp 0x66cc95b3
mov dword [ebp - 0x14], 0
jmp 0x66cc9664
jmp 0x66cc970e
jmp 0x66cc97b8
jmp 0x66cc9862
jmp 0x66cc990c
jmp 0x66cc99b6
jmp 0x66cc9a60
jmp 0x66cc9b0a
jmp 0x66cc9bb4
jmp 0x66cc9c5e
jmp 0x66cc9d08
jmp 0x66cc9db2
mov dword [ebp - 0x18], 0
jmp 0x66cc9e63
jmp 0x66cc9f0d
jmp 0x66cc9fb7
jmp 0x66cca061
jmp 0x66cca10b
jmp 0x66cca1b5
jmp 0x66cca25f
jmp 0x66cca309
jmp 0x66cca3b3
jmp 0x66cca45d
jmp 0x66cca507
jmp 0x66cca5b1
mov dword [ebp - 0x10], 0
jmp 0x66cca662
jmp 0x66cca70c
jmp 0x66cca7b6
jmp 0x66cca860
jmp 0x66cca90a
jmp 0x66cca9b4
jmp 0x66ccaa5e
jmp 0x66ccab08
jmp 0x66ccabb2
jmp 0x66ccac5c
jmp 0x66ccad06
jmp 0x66ccadb0
mov dword [ebp - 0x10], 0
jmp 0x66ccd5da
jmp 0x66ccae66
jmp 0x66ccaf10
jmp 0x66ccafba
jmp 0x66ccb064
jmp 0x66ccb10e
jmp 0x66ccb1b8
jmp 0x66ccb262
jmp 0x66ccb30c
jmp 0x66ccb3b6
jmp 0x66ccb460
jmp 0x66ccb50a
jmp 0x66ccb5b4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x674bb004]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x66ccb66f
jmp 0x66ccb719
jmp 0x66ccb7c3
jmp 0x66ccb86d
jmp 0x66ccb917
jmp 0x66ccb9c1
jmp 0x66ccba6b
jmp 0x66ccbb15
jmp 0x66ccbbbf
jmp 0x66ccbc69
jmp 0x66ccbd13
jmp 0x66ccbdbd
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x674bb00c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x66ccbe78
jmp 0x66ccbf22
jmp 0x66ccbfcc
jmp 0x66ccc076
jmp 0x66ccc120
jmp 0x66ccc1ca
jmp 0x66ccc274
jmp 0x66ccc31e
jmp 0x66ccc3c8
jmp 0x66ccc472
jmp 0x66ccc51c
jmp 0x66ccc5c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
jmp 0x66ccc68c
jmp 0x66ccc736
jmp 0x66ccc7e0
jmp 0x66ccc88a
jmp 0x66ccc934
jmp 0x66ccc9de
jmp 0x66ccca88
jmp 0x66cccb32
jmp 0x66cccbdc
jmp 0x66cccc86
jmp 0x66cccd30
jmp 0x66cccdda
add dword [ebp - 0xc], 0x28
jmp 0x66ccce88
jmp 0x66cccf32
jmp 0x66cccfdc
jmp 0x66ccd086
jmp 0x66ccd130
jmp 0x66ccd1da
jmp 0x66ccd284
jmp 0x66ccd32e
jmp 0x66ccd3d8
jmp 0x66ccd482
jmp 0x66ccd52c
jmp 0x66ccd5d6
add dword [ebp - 0x10], 1
mov eax, dword [0x674bb008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x66ccadbc
nop
leave
ret

Function at 0x66ce4380
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x674ba040
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.66ce43e0
Function at 0x66ce43e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x674bb378]
test esi, esi
jle 0x66ce44cd
mov edi, dword [0x674bb37c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x66ce4414
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x66ce44c6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x66ce4400
mov dword [esp], eax
mov esi, eax
call fcn.66ce4b80
test eax, eax
mov edi, eax
je 0x66ce450a
mov esi, dword [0x674bb37c]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.66ce4c90
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x674bb37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x66ce44ea
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x66ce44bf
sub eax, 0x40
and eax, 0xffffffbf
je 0x66ce44bf
mov eax, dword [esp + 0x20]
add ebx, dword [0x674bb37c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x66ce44d4
add dword [0x674bb378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x66ce441e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.66ce4380
mov eax, dword [0x674bb37c]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.66ce4380
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.66ce4380
lea esi, [esi]

Function at 0x66ce47f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x674bb388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x674bb380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x66ce4845
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x66ce483e
test esi, esi
je 0x66ce483e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x66ce4820
mov dword [esp], 0x674bb388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403202
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x40322d
mov ecx, dword [0x445798]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4284fc], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.0040330a
cmp eax, esi
jl 0x403304
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405fa9
test eax, eax
je 0x4032f4
push dword [ebp + 8]
add dword [0x4284fc], 4
call fcn.0040330a
mov ebx, eax
cmp ebx, esi
jl 0x403302
cmp dword [ebp + 0x10], esi
jne 0x4032d0
cmp dword [ebp + 8], esi
jle 0x403302
mov esi, 0x41c4f8
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403292
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405fa9
test eax, eax
je 0x4032f4
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405fd8
test eax, eax
je 0x4032cc
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4284fc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403281
jmp 0x403302
push 0xfffffffffffffffe
jmp 0x4032f6
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4032db
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4032f9
push 0xfffffffffffffffd
pop eax
jmp 0x403304
mov ebx, dword [ebp - 4]
add dword [0x4284fc], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405a37
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f0c
mov edi, eax
cmp edi, 0xffffffff
je 0x405b59
test byte [esp + 0x10], 1
push esi
je 0x405b3b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405b41
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405b4a
xor eax, eax
inc eax
jmp 0x405b5b
test byte [esp + 0x10], 4
jne 0x405b59
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b60
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.00405e1e
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405b9f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4457c8], eax
jmp 0x405d29
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bb9
test eax, eax
je 0x405cd7
test bl, 2
je 0x405cd7
mov esi, 0x438558
push edi
push esi
call fcn.0040639e
cmp dword [ebp + 8], 0
je 0x405bd8
push 0x40a3e4
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405bde
push edi
call fcn.00405d77
cmp byte [edi], 0
jne 0x405bec
cmp byte [0x438558], 0x5c
jne 0x405bf7
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 0x405ccd
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405d5b
cmp byte [eax], 0
je 0x405c3d
cmp byte [ebp - 0x1c], 0
je 0x405c3d
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405c53
mov al, byte [esi + 1]
test al, al
je 0x405cac
cmp al, 0x2e
jne 0x405c53
cmp byte [esi + 2], 0
je 0x405cac
push esi
push ebx
call fcn.0040639e
test byte [ebp - 0x14c], 0x10
je 0x405c78
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cac
push dword [ebp + 0xc]
push edi
call fcn.00405b60
jmp 0x405cac
push dword [ebp - 4]
push edi
call fcn.00405b18
test eax, eax
jne 0x405ca4
cmp dword [ebp - 4], eax
je 0x405c9c
push edi
push 0xfffffffffffffff1
call fcn.004054e2
push 0
push edi
call fcn.00406177
jmp 0x405cac
inc dword [0x4457c8]
jmp 0x405cac
push edi
push 0xfffffffffffffff2
call fcn.004054e2
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405c1b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cd7
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d29
cmp dword [ebp - 0xc], esi
jne 0x405ceb
inc dword [0x4457c8]
jmp 0x405d29
push edi
call fcn.00406731
test eax, eax
je 0x405d29
push edi
call fcn.00405d30
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b18
test eax, eax
jne 0x405d21
cmp dword [ebp - 4], esi
je 0x405ce3
push edi
push 0xfffffffffffffff1
call fcn.004054e2
push esi
push edi
call fcn.00406177
jmp 0x405d29
push edi
push 0xffffffffffffffe5
call fcn.004054e2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405e1e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43a558
push esi
call fcn.0040639e
push esi
call fcn.00405dc9
mov edi, eax
test edi, edi
jne 0x405e3f
xor eax, eax
jmp 0x405e91
push edi
call fcn.00406698
test byte [0x445758], 0x80
je 0x405e58
mov al, byte [edi]
test al, al
je 0x405e3b
cmp al, 0x5c
je 0x405e3b
sub edi, esi
jmp 0x405e70
call fcn.00406731
test eax, eax
je 0x405e6a
test byte [eax], 0x10
je 0x405e3b
push esi
call fcn.00405d77
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405e5c
call fcn.00405d30
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 0x405f0c
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 0x405f2b
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 0x405f31
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 0x405f60
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 [0x40a3ec]
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 0x405fa5
test edi, edi
jne 0x405f6b
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405f9f
Function at 0x406007
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 [0x43cae0], 0x4c554e
mov edi, 0x400
mov ebp, 0x43cae0
je 0x406053
push 1
push 0
push esi
call fcn.00405f31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406172
cmp eax, edi
jg 0x406172
mov esi, 0x43cee0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406172
cmp eax, edi
jg 0x406172
push esi
push ebp
push str._s_s_r_n
push 0x43c6e0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x445750]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406431
push 4
push 0xc0000000
push esi
call fcn.00405f31
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406172
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 0x40616b
push edi
push esi
push ebp
call fcn.00405fa9
test eax, eax
je 0x40616b
push str._Rename__r_n
push esi
call fcn.00405e96
test eax, eax
jne 0x406109
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40613e
add eax, 0xa
push 0x40a3f0
push eax
call fcn.00405e96
mov ebp, eax
test ebp, ebp
je 0x40613a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40612b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406125
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406140
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x43c6e0
push eax
call fcn.00405eec
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.00405fd8
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 0x406177
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 0x40619a
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406007
pop ecx
pop ecx
inc dword [0x4457d0]
ret 8

Function at 0x406285
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], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406224
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4062f4
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 + 0x1fff], 0
test edi, edi
pop edi
jne 0x4062f4
cmp dword [ebp + 0xc], 1
je 0x4062f7
cmp dword [ebp + 0xc], 2
je 0x4062f7
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406758
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 0x40677c
xor eax, eax
test eax, eax
je 0x40678e
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40678e
xor ecx, ecx
jmp 0x406791
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 0x40687d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43d2e4], 0
push esi
jne 0x4068b4
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 0x40688e
mov dword [ecx*4 + 0x43d2e0], eax
inc ecx
cmp ecx, 0x100
jl 0x406889
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4068e5
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 + 0x43d2e0]
xor eax, esi
inc ecx
dec edx
jne 0x4068c7
pop edi
not eax
pop esi
ret 0xc