joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015490
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
cmp dword [ebp + 0xc], 0
je 0x100154a8
mov dword [ebp - 4], 0
jmp 0x100154af
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100154d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp + 0x10]
and eax, 1
je 0x1001550e
lea eax, [ebp - 0x104]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x10]
and eax, 2
je 0x10015522
lea eax, [ebp - 0x104]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 0x10]
and eax, 4
je 0x10015536
lea eax, [ebp - 0x104]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x120], 0
jmp 0x1001555b
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x104]
jae 0x1001557f
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + eax*4 - 0x100]
cmp ecx, dword [ebp + 8]
jne 0x1001557d
jmp 0x1001557f
jmp 0x1001554c
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp - 0x104]
jne 0x100155b5
cmp dword [ebp - 0x104], 0x40
jae 0x100155b5
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x100], ecx
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x104], eax
xor eax, eax
jne 0x10015540
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 0
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x11c]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jle 0x10015608
xor eax, eax
jmp 0x10015626
cmp dword [ebp - 0x108], 0
jne 0x10015623
push 0x274c
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, 1
jmp 0x10015626
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001b510
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xffffffff
cmp dword [ebp + 8], 0
jne 0x1001b540
jmp 0x1001b5ed
push 0x10067294
mov eax, dword [ebp + 8]
push eax
call fcn.1004a4f8
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001b55f
jmp 0x1001b5ed
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.1004ae23
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call fcn.1004e7b1
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001b586
jmp 0x1001b5ed
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.1004ae23
add esp, 0xc
test eax, eax
je 0x1001b59c
jmp 0x1001b5ed
mov eax, dword [0x10085084]
add eax, 0x1a
push eax
push str.e:jenkins_workspaceworkspacelibcore_v2.6_for_windows_srcmoduleverifymodule_verify.c
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.inicrypto_v5.4.1.dll_ISC_Malloc]
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001b5c2
jmp 0x1001b5ed
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call fcn.1004eadc
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x1001b5df
jmp 0x1001b5ed
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], 0
je 0x1001b61b
cmp dword [ebp - 0x10], 0
jge 0x1001b61b
mov eax, dword [0x10085084]
add eax, 0x28
push eax
push str.e:jenkins_workspaceworkspacelibcore_v2.6_for_windows_srcmoduleverifymodule_verify.c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.inicrypto_v5.4.1.dll_ISC_Free]
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0
je 0x1001b62d
mov eax, dword [ebp - 8]
push eax
call fcn.1004a02c
add esp, 4
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1001b640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 0x14], 0
je 0x1001b66a
cmp dword [ebp + 8], 0
jne 0x1001b66c
jmp 0x1001b6bc
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 0xc]
test eax, eax
jle 0x1001b67c
cmp dword [ebp + 0x10], 0
jg 0x1001b67e
jmp 0x1001b6bc
push 0x1006e444
mov eax, dword [ebp + 0x14]
push eax
call fcn.1004a4f8
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1001b69a
jmp 0x1001b6bc
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp + 8]
add edx, dword [ebp + 0xc]
push edx
call fcn.10050c17
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x1001b6ce
mov eax, dword [ebp - 4]
push eax
call fcn.1004a02c
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10049fa6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10085580]
jne 0x10049fb0
repz ret
jmp fcn.1005679d

Function at 0x10061005
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.10054134
and dword [ebp - 4], 0
cmp dword [0x10086fa8], 0
mov ebx, eax
jne 0x100610b6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10061167
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10061167
push eax
call fcn.100540c2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10086fa8], eax
call esi
push eax
call fcn.100540c2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10086fac], eax
call esi
push eax
call fcn.100540c2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10086fb0], eax
call esi
push eax
call fcn.100540c2
pop ecx
mov dword [0x10086fb8], eax
test eax, eax
je 0x100610b6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100540c2
pop ecx
mov dword [0x10086fb4], eax
mov eax, dword [0x10086fb4]
cmp eax, ebx
je 0x1006110e
cmp dword [0x10086fb8], ebx
je 0x1006110e
push eax
call fcn.1005413d
push dword [0x10086fb8]
mov esi, eax
call fcn.1005413d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1006110e
test edi, edi
je 0x1006110e
call esi
test eax, eax
je 0x10061105
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10061105
test byte [ebp - 0xc], 1
jne 0x1006110e
or dword [ebp + 0x10], 0x200000
jmp 0x10061147
mov eax, dword [0x10086fac]
cmp eax, ebx
je 0x10061147
push eax
call fcn.1005413d
pop ecx
test eax, eax
je 0x10061147
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10061147
mov eax, dword [0x10086fb0]
cmp eax, ebx
je 0x10061147
push eax
call fcn.1005413d
pop ecx
test eax, eax
je 0x10061147
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10086fa8]
call fcn.1005413d
pop ecx
test eax, eax
je 0x10061167
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10061169
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100657b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x100657e5
call fcn.10051f47
mov dword [eax], esi
call fcn.10051f34
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10051caa
add esp, 0x14
push 0x16
pop eax
jmp 0x1006583a
test dword [ebp + 0xc], 0xfffffff9
jne 0x100657c1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10065812
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10051f5a
pop ecx
call fcn.10051f34
mov eax, dword [eax]
jmp 0x1006583a
test al, 0x10
jne 0x10065838
test al, 1
je 0x10065838
test byte [ebp + 0xc], 2
je 0x10065838
call fcn.10051f47
mov dword [eax], 5
call fcn.10051f34
mov dword [eax], 0xd
jmp 0x10065809
xor eax, eax
pop esi
pop ebp
ret
Function at 0x402a47
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f70]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402adb
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a98
cmp dword [ebp + 0x10], ebx
jne 0x402acf
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a47
test eax, eax
jne 0x402aaa
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a7f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e8f
cmp eax, ebx
je 0x402ae2
push ebx
push dword [0x423f70]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402adb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f70], ebx
jne 0x402ad8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ad8
jmp 0x402adb
Function at 0x402e6c
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 0x402e89
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e98
mov ebx, 0x40f070
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ead
mov ecx, dword [0x423f18]
add ecx, eax
push ecx
call fcn.00403091
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040305f
test eax, eax
je 0x40300a
test byte [ebp + 0x17], 0x80
je 0x402ff3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40afe0
mov dword [ebp - 0xc], eax
call fcn.00405f6f
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403055
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402efd
mov esi, dword [ebp + 0x14]
mov edi, 0x40b070
push esi
push edi
call fcn.0040305f
test eax, eax
je 0x40300a
sub dword [ebp + 0x14], esi
mov dword [0x40aff8], edi
mov dword [0x40affc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40afe0
mov dword [0x40b000], ebx
mov dword [0x40b004], eax
call fcn.00405f8f
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402feb
mov esi, dword [0x40b000]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423f74], 1
mov edi, eax
je 0x402f9f
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f6c
cmp dword [ebp + 0x14], 0
jne 0x402f9f
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.00404e71
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fe0
cmp dword [ebp + 0x10], eax
jne 0x402fc8
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 0x402fef
cmp dword [ebp - 0x10], esi
jne 0x402fef
add dword [ebp - 4], esi
jmp 0x402fd4
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40b000]
cmp dword [ebp - 0x14], 1
jne 0x402f20
jmp 0x403055
cmp dword [ebp + 0x14], eax
jg 0x402ef0
jmp 0x403055
push 0xfffffffffffffffc
jmp 0x40300c
push 0xfffffffffffffffe
jmp 0x40300c
test edi, edi
je 0x40304a
cmp dword [ebp + 0x14], esi
jge 0x402fff
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040305f
test eax, eax
jne 0x403052
push 0xfffffffffffffffd
pop eax
jmp 0x403058
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40301a
mov esi, dword [ebp + 0x14]
mov edi, 0x40b070
push esi
push edi
call fcn.0040305f
test eax, eax
je 0x40300a
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 0x402fef
cmp esi, dword [ebp + 0x10]
jne 0x402fef
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40300f
jmp 0x403055
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405334
Capabilities:
Create process on windows

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004057ed
mov edi, eax
cmp edi, 0xffffffff
je 0x40543a
test byte [esp + 0x10], 1
push esi
je 0x40541c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405422
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40542b
xor eax, eax
inc eax
jmp 0x40543c
test byte [esp + 0x10], 4
jne 0x40543a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405441
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.004056ff
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405480
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f48], eax
jmp 0x40560a
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40549a
test eax, eax
je 0x4055b8
test bl, 2
je 0x4055b8
mov esi, 0x4214c8
push edi
push esi
call fcn.00405b64
cmp dword [ebp + 8], 0
je 0x4054b9
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054bf
push edi
call fcn.00405658
cmp byte [edi], 0
jne 0x4054cd
cmp byte [0x4214c8], 0x5c
jne 0x4054d8
push 0x409014
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 0x4055ae
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040563c
cmp byte [eax], 0
je 0x40551e
cmp byte [ebp - 0x1c], 0
je 0x40551e
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405534
mov al, byte [esi + 1]
test al, al
je 0x40558d
cmp al, 0x2e
jne 0x405534
cmp byte [esi + 2], 0
je 0x40558d
push esi
push ebx
call fcn.00405b64
test byte [ebp - 0x14c], 0x10
je 0x405559
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40558d
push dword [ebp + 0xc]
push edi
call fcn.00405441
jmp 0x40558d
push dword [ebp - 4]
push edi
call fcn.004053f9
test eax, eax
jne 0x405585
cmp dword [ebp - 4], eax
je 0x40557d
push edi
push 0xfffffffffffffff1
call fcn.00404e71
push 0
push edi
call fcn.00405a18
jmp 0x40558d
inc dword [0x423f48]
jmp 0x40558d
push edi
push 0xfffffffffffffff2
call fcn.00404e71
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054fc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055b8
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40560a
cmp dword [ebp - 0xc], esi
jne 0x4055cc
inc dword [0x423f48]
jmp 0x40560a
push edi
call fcn.00405e68
test eax, eax
je 0x40560a
push edi
call fcn.00405611
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004053f9
test eax, eax
jne 0x405602
cmp dword [ebp - 4], esi
je 0x4055c4
push edi
push 0xfffffffffffffff1
call fcn.00404e71
push esi
push edi
call fcn.00405a18
jmp 0x40560a
push edi
push 0xffffffffffffffe5
call fcn.00404e71
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4056ff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4218c8
push esi
call fcn.00405b64
push esi
call fcn.004056aa
mov edi, eax
test edi, edi
jne 0x405720
xor eax, eax
jmp 0x405772
push edi
call fcn.00405dcf
test byte [0x423ed8], 0x80
je 0x405739
mov al, byte [edi]
test al, al
je 0x40571c
cmp al, 0x5c
je 0x40571c
sub edi, esi
jmp 0x405751
call fcn.00405e68
test eax, eax
je 0x40574b
test byte [eax], 0x10
je 0x40571c
push esi
call fcn.00405658
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40573d
call fcn.00405611
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 0x4057ed
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 0x40580c
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 0x405812
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 0x405841
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 [0x409368]
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 0x405886
test edi, edi
jne 0x40584c
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405880
Function at 0x40588a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x422250
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4058d9
push 1
push 0
push esi
call fcn.00405812
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a12
cmp eax, ebx
jg 0x405a12
mov esi, 0x422650
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a12
cmp eax, ebx
jg 0x405a12
push esi
push edi
push str._s_s_r_n
push 0x421e50
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423ed0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b86
push 4
push 0xc0000000
push esi
call fcn.00405812
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a12
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 0x405a0b
lea eax, [esp + 0x10]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a0b
cmp edi, dword [esp + 0x10]
jne 0x405a0b
push str._Rename__r_n
push esi
call fcn.00405777
test eax, eax
jne 0x4059a1
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059d6
add eax, 0xa
push 0x40936c
push eax
call fcn.00405777
mov ebp, eax
test ebp, ebp
je 0x4059d2
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059c3
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059bd
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059d8
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421e50
push eax
call fcn.004057cd
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
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
pop ecx
ret
Function at 0x405a4b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405abc
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405aab
cmp dword [ebp + 0x14], 1
je 0x405aad
cmp dword [ebp + 0x14], 2
je 0x405aad
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f01
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a54], 0
push esi
jne 0x405f38
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 0x405f12
mov dword [ecx*4 + 0x422a50], eax
inc ecx
cmp ecx, 0x100
jl 0x405f0d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f69
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 + 0x422a50]
xor eax, esi
inc ecx
dec edx
jne 0x405f4b
pop edi
not eax
pop esi
ret 0xc