joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055b0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call sub.WSOCK32.dll_connect
ret

Function at 0x406ee0
Capabilities:
Allocate thread local storage
Initialize winsock library

Disassembly:
mov al, byte [0x43e455]
test al, al
jne 0x406f7d
mov byte [0x43e455], 1
call fcn.00409cd0
mov eax, dword [0x43e458]
test eax, eax
jne 0x406f78
call fcn.00407090
push str.HOME
call fcn.0041412e
add esp, 4
test eax, eax
mov dword [0x43e458], eax
je 0x406f30
push eax
push 0x43e660
call fcn.0040afb0
add esp, 8
mov dword [0x43e458], eax
push str.UMASK
call fcn.0041412e
add esp, 4
test eax, eax
je 0x406f54
push eax
call fcn.00406f80
add esp, 4
or eax, 0x180
mov dword [0x4257ec], eax
push str.UMASK_DIR
call fcn.0041412e
add esp, 4
test eax, eax
je 0x406f78
push eax
call fcn.00406f80
add esp, 4
or eax, 0x1c0
mov dword [0x4257f0], eax
jmp 0x4071a0
ret
sub esp, 0x190
call fcn.00407200
test al, al
je 0x4071ef
lea eax, [esp]
push eax
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4071cb
call sub.WSOCK32.dll_WSACleanup
lea ecx, [esp]
push ecx
jmp 0x4071dd
cmp word [esp], 2
je 0x4071e8
call sub.WSOCK32.dll_WSACleanup
lea edx, [esp]
push edx
push 2
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4071ef
mov byte [0x43e454], 1
xor al, al
add esp, 0x190
ret

Function at 0x407090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa04
push 0x43e434
push 2
mov dword [esp + 0xc], 0x100
mov dword [esp + 0x10], 0x400
call fcn.00414250
add esp, 8
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMySQL
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407191
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push edx
mov edx, dword [esp + 0x10]
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push edx
mov esi, 1
call edi
cmp eax, 0x103
je 0x407184
nop
lea eax, [esp + 0x114]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x51c]
push edx
call fcn.00407070
lea eax, [esp + 0x520]
push eax
call fcn.0041da6f
lea ecx, [esp + 0x524]
push ecx
call fcn.0041e8de
add esp, 0x14
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x118]
push ecx
push 0
push 0
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
mov eax, esi
push ecx
push eax
push edx
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x400
inc esi
call edi
cmp eax, 0x103
jne 0x407110
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xa04
ret
Function at 0x409200
Capabilities:
Get common file path

Disassembly:
sub esp, 0x200
push esi
mov esi, dword [esp + 0x208]
push edi
push esi
call fcn.0040b990
mov dl, byte [eax]
xor ecx, ecx
test dl, dl
setne cl
push str._nDefault_options_are_read_from_the_following_files_in_the_given_order:
mov edi, ecx
call fcn.0041365b
push esi
call fcn.004095b0
add esp, 0xc
test eax, eax
je 0x40924a
push 0x437600
push esi
call fcn.004133da
add esp, 8
jmp 0x409336
push 0x200
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test edi, edi
mov eax, 0x43e434
jne 0x409268
mov eax, str..ini
push ebp
push eax
push esi
lea eax, [esp + 0x14]
push eax
push str._s_s_s
call fcn.0041361a
mov eax, dword [0x425a94]
add esp, 0x10
test eax, eax
mov ebp, 0x425a94
je 0x409328
mov ecx, dword [0x446938]
mov eax, dword [ebp]
cmp byte [eax], 0
je 0x4092a5
push eax
lea ecx, [esp + 0x10]
push ecx
jmp 0x4092af
test ecx, ecx
je 0x40931a
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004093a0
lea eax, [esp + 0x14]
add esp, 8
push eax
call fcn.00409630
mov al, byte [esp + 0x10]
add esp, 4
cmp al, 0x7e
jne 0x4092e2
or ecx, 0xffffffff
lea edi, [esp + 0xc]
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x425690]
mov word [edi - 1], cx
push 0
push 0x425480
push str..cnf
lea edx, [esp + 0x18]
push esi
push edx
call fcn.004093c0
add esp, 4
push eax
call fcn.00409680
lea eax, [esp + 0x20]
push 0x437600
push eax
call fcn.004133da
mov ecx, dword [0x446938]
add esp, 0x1c
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x409295
push 0x43e434
call fcn.0041365b
add esp, 4
pop ebp
push 0x437600
push str.The_following_groups_are_read:
call fcn.004133da
mov esi, dword [esp + 0x218]
mov eax, dword [esi]
add esp, 8
test eax, eax
je 0x40937b
push 0x437600
push 0x20
call fcn.00413748
mov ecx, dword [esi]
push 0x437600
push ecx
call fcn.004133da
mov eax, dword [esi + 4]
add esi, 4
add esp, 0x10
test eax, eax
jne 0x409355
push str._nThe_following_options_may_be_given_as_the_first_argument:_n__print_defaults_tPrint_the_program_argument_list_and_exit_n__no_defaults_t_tDont_read_default_options_from_any_options_file_n__defaults_file_tOnly_read_default_options_from_the_given_file__n__defaults_extra_file_Read_this_file_after_the_global_files_are_read
call fcn.0041365b
add esp, 4
pop edi
pop esi
add esp, 0x200
ret

Function at 0x409930
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x409962
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40995d
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_recv
ret
Function at 0x409980
Capabilities:
Send data
Send data on socket
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x30], 3
push 0
jne 0x4099b2
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4099ad
or eax, 0xffffffff
ret
mov eax, dword [esp + 0xc]
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.WSOCK32.dll_send
ret

Function at 0x4099f0
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
mov edx, dword [ecx + 0x30]
xor eax, eax
cmp edx, 3
mov dword [esp], eax
je 0x409a27
cmp byte [esp + 0xc], al
je 0x409a11
mov dword [esp], 1
mov ecx, dword [ecx]
push 4
lea eax, [esp + 4]
push eax
push 8
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
pop ecx
ret

Function at 0x409cd0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x446d10], eax
jne 0x409d01
call fcn.00413e38
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x437620
call fcn.00413428
add esp, 0xc
push 1
call fcn.00413491
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x446e00
call esi
push 0x446da0
call esi
push 0x446e20
call esi
push 0x446dc0
call esi
push 0x446d60
call esi
push 0x446d80
call esi
push 0x446d40
call esi
push 0x446d20
call esi
push 0x446de0
call esi
call fcn.0040bb40
pop esi
jmp fcn.00409d70

Function at 0x409d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x446dc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x446d10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x409de1
push 0x3c
push 1
call fcn.004152e6
mov esi, eax
add esp, 8
test esi, esi
jne 0x409dad
push 0x446dc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret
mov ecx, dword [0x446d10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x44693c]
inc eax
lea edx, [esi + 0xc]
mov dword [0x44693c], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
add esi, 4
push esi
call fcn.0040bb50
add esp, 8
push 0x446dc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret

Function at 0x409df0
Capabilities:
Set thread local storage value

Disassembly:
push esi
call fcn.00409e30
mov esi, eax
test esi, esi
je 0x409e1b
lea eax, [esi + 4]
push eax
call fcn.0040bb80
add esp, 4
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.00413f84
add esp, 4
mov edx, dword [0x446d10]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x40a1b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
je 0x40a2a5
cmp byte [eax], 0
je 0x40a2a5
mov esi, dword [ebp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
mov edi, esi
call fcn.0040a140
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.0040a140
mov al, byte [ebp + 0x14]
mov edx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x40a210
xor edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040a2c0
add esp, 8
jmp 0x40a22d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
xor ecx, eax
push ecx
xor edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0040a0b0
add esp, 0xc
cmp byte [ebx], 0
je 0x40a266
lea ecx, [esp + 0x20]
inc ebx
push ecx
mov dword [ebp + 0xc], ebx
call fcn.0040a0f0
fmul qword [0x4201a8]
push ecx
fstp qword [esp]
call fcn.00415473
fadd qword [0x4201a0]
add esp, 8
call fcn.00415544
mov byte [esi], al
mov al, byte [ebx]
inc esi
test al, al
jne 0x40a232
mov al, byte [ebp + 0x14]
test al, al
jne 0x40a2a8
lea edx, [esp + 0x20]
push edx
call fcn.0040a0f0
fmul qword [0x4201a8]
push ecx
fstp qword [esp]
call fcn.00415473
add esp, 8
call fcn.00415544
cmp edi, esi
je 0x40a2a8
xor byte [edi], al
inc edi
cmp edi, esi
jne 0x40a292
mov byte [esi], 0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
pop edi
mov byte [esi], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a810
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
lea esp, [esp]
call fcn.00413e38
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.0041cf91
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x40a8da
call fcn.00413e38
cmp dword [eax], 0
je 0x40a857
call fcn.00413e38
mov ebp, dword [eax]
jmp 0x40a85a
or ebp, 0xffffffff
call fcn.00409e30
test esi, esi
mov dword [eax], ebp
jne 0x40a86f
call fcn.00413e38
cmp dword [eax], 4
je 0x40a820
mov al, byte [esp + 0x20]
test al, 0x1a
je 0x40a8c7
cmp esi, 0xffffffff
jne 0x40a8a1
call fcn.00409e30
mov ecx, dword [eax]
push ecx
push ebx
call fcn.00409e60
add esp, 4
push eax
push 0x24
push 2
call fcn.00406d20
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test al, 6
je 0x40a8c7
call fcn.00409e30
mov edx, dword [eax]
push edx
push ebx
call fcn.00409e60
add esp, 4
push eax
push 0x24
push 9
call fcn.00406d20
mov al, byte [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x40a8d0
test al, 6
je 0x40a8e4
pop edi
pop esi
pop ebp
mov eax, 0xffffffff
pop ebx
ret
mov al, byte [esp + 0x20]
test al, 6
je 0x40a8e4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x403434
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 0x403451
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x403463
mov dword [ebp - 0xc], 0x419d40
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403478
mov ecx, dword [0x430998]
add ecx, eax
push ecx
call fcn.0040365c
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403646
test eax, eax
je 0x403634
test byte [ebp + 0x17], 0x80
je 0x4035df
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40c6a4], 0
and dword [0x40c6a0], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40dd28
mov dword [0x40c188], 8
mov dword [0x415d30], eax
mov dword [0x415d2c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x415d28], 0x415d28
mov dword [ebp + 8], eax
jle 0x40363c
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4034f1
mov esi, dword [ebp + 0x14]
mov edi, 0x415d40
push esi
push edi
call fcn.00403646
test eax, eax
je 0x403634
sub dword [ebp + 0x14], esi
mov dword [0x40c178], edi
mov dword [0x40c17c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40c178
mov dword [0x40c180], edi
mov dword [0x40c184], eax
call fcn.00406c6c
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4035d7
mov esi, dword [0x40c180]
sub esi, edi
call ebx
test byte [0x4309f4], 1
mov edi, eax
je 0x403592
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x40355f
cmp dword [ebp + 0x14], 0
jne 0x403592
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.00405602
mov dword [ebp - 0x10], edi
test esi, esi
je 0x4035cb
cmp dword [ebp + 0x10], 0
jne 0x4035b1
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.004061a5
test eax, eax
je 0x4035db
add dword [ebp - 4], esi
jmp 0x4035bf
mov eax, dword [0x40c180]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x403514
jmp 0x40363c
cmp dword [ebp + 0x14], 0
jg 0x4034e4
jmp 0x40363c
push 0xfffffffffffffffc
jmp 0x403636
push 0xfffffffffffffffe
jmp 0x403636
test edi, edi
jne 0x403621
cmp dword [ebp + 0x14], edi
jle 0x40363c
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4035f5
mov esi, ebx
mov edi, 0x415d40
push esi
push edi
call fcn.00403646
test eax, eax
je 0x403634
push esi
push edi
push dword [ebp + 0xc]
call fcn.004061a5
test eax, eax
je 0x4035db
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4035eb
jmp 0x40363c
cmp dword [ebp + 0x14], esi
jge 0x403629
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403646
test eax, eax
jne 0x403639
push 0xfffffffffffffffd
pop eax
jmp 0x40363f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405afd
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 0x405b4e
xor eax, eax
jmp 0x405b75
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405b75
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405b4a
call esi
pop esi
leave
ret 4

Function at 0x405baf
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004060d9
mov edi, eax
cmp edi, 0xffffffff
je 0x405cd1
test byte [esp + 0x10], 1
push esi
je 0x405cb3
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405cb9
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405cc2
xor eax, eax
inc eax
jmp 0x405cd3
test byte [esp + 0x10], 4
jne 0x405cd1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405feb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42c588
push esi
call fcn.00406565
push esi
call fcn.00405f96
mov edi, eax
test edi, edi
jne 0x40600c
xor eax, eax
jmp 0x40605e
push edi
call fcn.004067cf
test byte [0x43093c], 0x80
je 0x406025
mov al, byte [edi]
test al, al
je 0x406008
cmp al, 0x5c
je 0x406008
sub edi, esi
jmp 0x40603d
call fcn.00406ab2
test eax, eax
je 0x406037
test byte [eax], 0x10
je 0x406008
push esi
call fcn.00405f44
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x406029
call fcn.00405efd
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 0x4060d9
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 0x4060f8
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 0x4060fe
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 0x40612d
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 [0x40abbc]
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 0x406172
test edi, edi
jne 0x406138
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40616c
Function at 0x4061d4
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 [0x42cf10], 0x4c554e
mov edi, 0x400
mov ebp, 0x42cf10
je 0x406220
push 1
push 0
push esi
call fcn.004060fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40633f
cmp eax, edi
jg 0x40633f
mov esi, 0x42d310
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40633f
cmp eax, edi
jg 0x40633f
push esi
push ebp
push str._s_s_r_n
push 0x42cb10
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x430934]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406587
push 4
push 0xc0000000
push esi
call fcn.004060fe
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40633f
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 0x406338
push edi
push esi
push ebp
call fcn.00406176
test eax, eax
je 0x406338
push str._Rename__r_n
push esi
call fcn.00406063
test eax, eax
jne 0x4062d6
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40630b
add eax, 0xa
push 0x40abc0
push eax
call fcn.00406063
mov ebp, eax
test ebp, ebp
je 0x406307
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4062f8
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4062f2
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40630d
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42cb10
push eax
call fcn.004060b9
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.004061a5
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 0x406344
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 0x406367
push dword [esp + 8]
push dword [esp + 8]
call fcn.004061d4
pop ecx
pop ecx
inc dword [0x4309d0]
ret 8

Function at 0x40644c
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.004063eb
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4064bb
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 0x4064bb
cmp dword [ebp + 0xc], 1
je 0x4064be
cmp dword [ebp + 0xc], 2
je 0x4064be
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x406ad9
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 0x406afd
xor eax, eax
test eax, eax
je 0x406b0f
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406b0f
xor ecx, ecx
jmp 0x406b12
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a2b4]
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 0x406bfe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42d714], 0
push esi
jne 0x406c35
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 0x406c0f
mov dword [ecx*4 + 0x42d710], eax
inc ecx
cmp ecx, 0x100
jl 0x406c0a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406c66
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 + 0x42d710]
xor eax, esi
inc ecx
dec edx
jne 0x406c48
pop edi
not eax
pop esi
ret 0xc