joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e854
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40e882
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40e8a0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040e7be
jmp 0x40e8a0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40e8a0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040e7be
test edi, edi
mov eax, edi
jne 0x40e88a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x437700]
test ecx, ecx
je 0x40e963
jmp 0x40e853
ret 8

Function at 0x41141f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433dc0]
jne 0x411429
repz ret
jmp fcn.00416771
Function at 0x415582
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x433de0]
je 0x41559d
inc edi
cmp edi, 0x17
jb 0x41558e
cmp edi, 0x17
jae 0x41571d
push ebp
push 3
call fcn.0041efc3
cmp eax, 1
pop ecx
je 0x4156e9
push 3
call fcn.0041efc3
test eax, eax
pop ecx
jne 0x4155d1
cmp dword [0x433c24], 1
je 0x4156e9
cmp ebx, 0xfc
je 0x41571c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4377c0
push ebp
call fcn.0041b61f
add esp, 0xc
test eax, eax
je 0x415607
push esi
push esi
push esi
push esi
push esi
call fcn.00412762
add esp, 0x14
push 0x104
mov esi, 0x4377d9
push esi
push 0
mov byte [0x4378dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41564b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041b61f
add esp, 0xc
test eax, eax
je 0x41564b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00412762
add esp, 0x14
push esi
call fcn.0041b690
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x415690
push esi
call fcn.0041b690
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x437ad4
push 0x42c314
sub ecx, eax
push ecx
push eax
call fcn.0041ef10
add esp, 0x14
test eax, eax
je 0x415690
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00412762
add esp, 0x14
jmp 0x415692
xor esi, esi
push 0x42c310
push ebx
push ebp
call fcn.0041ee9f
add esp, 0xc
test eax, eax
je 0x4156b2
push esi
push esi
push esi
push esi
push esi
call fcn.00412762
add esp, 0x14
push dword [edi*8 + 0x433de4]
push ebx
push ebp
call fcn.0041ee9f
add esp, 0xc
test eax, eax
je 0x4156d4
push esi
push esi
push esi
push esi
push esi
call fcn.00412762
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041ece2
add esp, 0xc
jmp 0x41571c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41571c
cmp ebp, 0xffffffff
je 0x41571c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x433de4]
push dword [esi]
call fcn.0041b690
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41ece2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00416146
xor ebx, ebx
cmp dword [0x4382c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41edb8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41ee98
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41ee98
push eax
call fcn.004160d8
mov dword [esp], 0x42c5dc
push edi
mov dword [0x4382c0], eax
call esi
push eax
call fcn.004160d8
mov dword [esp], 0x42c5c8
push edi
mov dword [0x4382c4], eax
call esi
push eax
call fcn.004160d8
mov dword [0x4382c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00414717
test eax, eax
pop ecx
pop ecx
je 0x41ed86
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00412762
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41edb8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004160d8
cmp eax, ebx
pop ecx
mov dword [0x4382d0], eax
je 0x41edb8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004160d8
pop ecx
mov dword [0x4382cc], eax
mov eax, dword [0x4382cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41ee3d
cmp dword [0x4382d0], ecx
je 0x41ee3d
push eax
call fcn.0041614f
push dword [0x4382d0]
mov esi, eax
call fcn.0041614f
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41ee3d
cmp edi, ebx
je 0x41ee3d
call esi
cmp eax, ebx
je 0x41ee0a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ee0a
test byte [ebp - 0x18], 1
jne 0x41ee3d
lea eax, [ebp - 0x10]
push eax
call fcn.0041474e
test eax, eax
pop ecx
je 0x41ee25
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00412762
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41ee34
or dword [ebp + 0x10], 0x200000
jmp 0x41ee78
or dword [ebp + 0x10], 0x40000
jmp 0x41ee78
mov eax, dword [0x4382c4]
cmp eax, dword [ebp - 8]
je 0x41ee78
push eax
call fcn.0041614f
cmp eax, ebx
pop ecx
je 0x41ee78
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41ee78
mov eax, dword [0x4382c8]
cmp eax, dword [ebp - 8]
je 0x41ee78
push eax
call fcn.0041614f
cmp eax, ebx
pop ecx
je 0x41ee78
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4382c0]
call fcn.0041614f
cmp eax, ebx
pop ecx
je 0x41ee98
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ee9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4220bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4220e9
call fcn.00411c9c
mov dword [eax], esi
call fcn.00411c89
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041285e
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4220c5
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x422118
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411caf
pop ecx
call fcn.00411c89
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42213f
test al, 1
je 0x42213f
test byte [esp + 0xc], 2
je 0x42213f
call fcn.00411c9c
mov dword [eax], 5
call fcn.00411c89
mov dword [eax], 0xd
jmp 0x42210f
xor eax, eax
pop esi
ret
Function at 0x42827c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x433dc0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00428211
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004141b0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4282cb
cmp dword [ebp - 0x1c], 5
jb 0x4282e3
jmp 0x4282df
cmp dword [ebp - 0x10], 1
jne 0x4282e3
cmp dword [ebp - 0x1c], 4
ja 0x4282df
jne 0x4282e3
cmp dword [ebp - 0x18], 0
jbe 0x4282e3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42d7f4
call fcn.00428102
test eax, eax
jge 0x428304
mov byte [0x438484], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041141f
add ebp, 0x78
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x402fba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push edi
xor edi, edi
test ecx, ecx
js 0x402fe3
mov eax, dword [0x7a2c78]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x40b50c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00402e30
test eax, eax
js 0x4030b9
push ebx
push esi
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00406634
test eax, eax
je 0x4030b4
push dword [ebp + 8]
add dword [0x40b50c], 4
call fcn.00402e30
mov esi, eax
test esi, esi
js 0x4030b0
cmp dword [ebp + 0x10], edi
jne 0x403084
mov ecx, dword [ebp + 8]
test ecx, ecx
jle 0x4030b0
mov ebx, 0x4000
mov edi, 0x791df0
cmp ecx, ebx
mov eax, ebx
cmovl eax, ecx
push eax
push edi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00406634
test eax, eax
je 0x4030b4
push dword [ebp - 4]
push edi
push dword [ebp + 0xc]
call fcn.004066f3
test eax, eax
je 0x403080
mov eax, dword [ebp - 4]
add esi, eax
mov ecx, dword [ebp + 8]
add dword [0x40b50c], eax
sub ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
jg 0x40303c
jmp 0x4030b0
push 0xfffffffffffffffe
jmp 0x4030b6
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 8], eax
cmovl eax, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4030b4
mov esi, dword [ebp - 4]
add dword [0x40b50c], esi
mov eax, esi
jmp 0x4030b7
push 0xfffffffffffffffd
pop eax
pop esi
pop ebx
pop edi
leave
ret 0x10

Function at 0x4030be
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
je 0x4030e3
mov eax, dword [0x40b520]
test eax, eax
je 0x4030da
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [0x40b520], 0
leave
ret
cmp dword [0x40b520], 0
je 0x4030f5
push 0
call fcn.00405f44
leave
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x7a2c24]
jbe 0x403177
cmp dword [0x7a2418], 0
je 0x403152
test byte [0x7a2d14], 1
je 0x403177
mov ecx, dword [0x40b518]
cmp dword [0x40b51c], ecx
push ecx
cmovl ecx, dword [0x40b51c]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x40]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
push 0
call fcn.00405a50
leave
ret
push 0
push 0x40344e
push 0
push 0x6f
push dword [0x7a2414]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x40b520], eax
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x405b35
Capabilities:
Create directory

Disassembly:
push esi
xor esi, esi
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405b4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop esi
ret 4

Function at 0x405b55
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408580
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov word [ebp - 0x20], 1
mov dword [ebp - 0x10], 0x408570
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405bc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405bcd
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
je 0x405bc7
xor eax, eax
jmp 0x405bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret 4
Function at 0x405ed4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
lea eax, [ebp - 0x120]
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor ecx, ecx
cmp eax, esi
pop esi
cmova eax, ecx
test eax, eax
je 0x405f11
lea eax, [ebp + eax - 0x120]
cmp byte [eax - 1], 0x5c
je 0x405f17
mov ecx, 0x4082a0
jmp 0x405f1c
lea eax, [ebp - 0x120]
mov ecx, 0x4082a1
push dword [ebp + 8]
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 0x405f72
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 0x405f95
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406005
pop ecx
pop ecx
inc dword [0x7a2cf0]
ret 8

Function at 0x406005
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebx, 0x400
mov dword [0x7a1278], 0x4c554e
mov ebp, 0x7a1278
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
je 0x406051
push 1
push 0
push esi
call fcn.00406607
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebp
push esi
call edi
test eax, eax
je 0x406147
cmp eax, ebx
jg 0x406147
push ebx
mov esi, 0x7a0e78
push esi
push dword [esp + 0x1c]
call edi
test eax, eax
je 0x406147
cmp eax, ebx
jg 0x406147
push esi
push ebp
push str._s_s_r_n
push 0x7a0a78
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x7a2c34]
add esp, 0x10
mov ebp, eax
push dword [ecx + 0x128]
push esi
call fcn.00405bd1
push 4
push 0xc0000000
push esi
call fcn.00406607
mov ebx, eax
cmp ebx, 0xffffffff
je 0x406147
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [ebp + 0xa]
add ecx, esi
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x406140
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406140
cmp esi, dword [esp + 0x18]
jne 0x406140
push str._Rename__r_n
push edi
call fcn.00406813
test eax, eax
jne 0x40614c
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov ecx, esi
push ebp
push 0x7a0a78
lea eax, [ecx + edi]
push eax
call fcn.00406354
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esi + ebp]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x40872c
add eax, 0xa
push eax
call fcn.00406813
mov ecx, eax
test ecx, ecx
je 0x406109
lea edx, [edi + esi]
jmp 0x40616b
mov al, byte [edx]
mov byte [edx + ebp], al
dec edx
cmp edx, ecx
ja 0x406165
sub ecx, edi
inc ecx
jmp 0x40610b
Function at 0x406216
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.0040687a
mov edi, eax
cmp edi, 0xffffffff
je 0x406259
test byte [ebp + 0xc], 1
push dword [ebp + 8]
je 0x40623a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x406240
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x406249
xor eax, eax
inc eax
jmp 0x40625b
test byte [ebp + 0xc], 4
jne 0x406259
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 8

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

Disassembly:
push ebx
push esi
push 0x400
push dword [esp + 0x10]
mov ebx, 0x7a0678
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebx
call fcn.004068a2
mov esi, eax
test esi, esi
je 0x40634d
push esi
call fcn.004069cc
test byte [0x7a2c30], 0x80
je 0x406300
mov al, byte [esi]
test al, al
je 0x40634d
cmp al, 0x5c
je 0x40634d
sub esi, ebx
jmp 0x40632b
push 0x7a1678
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x406325
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x7a1678], 0x10
je 0x40634d
push ebx
call fcn.004069a1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, esi
jg 0x406304
push ebx
call fcn.004061e9
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40634d
xor eax, eax
inc eax
jmp 0x40634f
xor eax, eax
pop esi
pop ebx
ret 4

Function at 0x406376
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x7a0230], 0x44
lea eax, [ebp - 0x10]
push eax
push 0x7a0230
xor eax, eax
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 0x4063b5
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x4063b9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x150
push ebx
mov ebx, dword [esp + 0x15c]
push esi
mov esi, dword [esp + 0x15c]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.004062c4
mov dword [esp + 0x18], eax
test bl, 8
je 0x4063fb
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2ce8], eax
jmp 0x4065c6
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x18], ebp
je 0x406418
test eax, eax
je 0x4065b5
test bl, 2
je 0x40656d
push 0x400
push esi
push 0x7a0278
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406441
push str..
push 0x7a0278
call ebp
jmp 0x406447
push esi
call fcn.004069a1
cmp byte [esi], 0
jne 0x406455
cmp byte [0x7a0278], 0x5c
jne 0x40645d
push 0x4082a0
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [esi + eax]
lea eax, [esp + 0x20]
mov dword [esp + 0x10], ebp
push eax
push 0x7a0278
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40655e
mov al, byte [esp + 0x4c]
lea ebp, [esp + 0x4c]
mov edx, ebp
test al, al
je 0x4064c5
mov cl, al
cmp al, 0x3f
je 0x4064ad
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov edx, eax
mov al, byte [edx]
mov cl, al
test al, al
jne 0x406496
test cl, cl
je 0x4064c5
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x150]
cmove eax, ebp
mov ebp, eax
cmp byte [ebp], 0x2e
jne 0x4064dc
mov al, byte [ebp + 1]
test al, al
je 0x406539
cmp al, 0x2e
jne 0x4064dc
cmp byte [ebp + 2], 0
je 0x406539
push 0x400
push ebp
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
test byte [esp + 0x20], 0x10
je 0x406506
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x40653d
push ebx
push esi
call fcn.004063b9
jmp 0x40653d
push edi
push esi
call fcn.00406216
test eax, eax
jne 0x40652f
test edi, edi
je 0x406527
push esi
push 0xfffffffffffffff1
call fcn.00405a50
push 0
push esi
call fcn.00405f72
jmp 0x40653d
inc dword [0x7a2ce8]
jmp 0x40653d
push esi
push 0xfffffffffffffff2
call fcn.00405a50
jmp 0x40653d
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x406488
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x4065c5
mov eax, dword [esp + 0x1c]
mov byte [ebp - 1], 0
test eax, eax
je 0x4065b5
push 0x7a1678
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4065c5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call fcn.004061e9
mov eax, edi
or eax, 1
push eax
push esi
call fcn.00406216
test eax, eax
jne 0x4065bd
test edi, edi
je 0x4065b5
push esi
push 0xfffffffffffffff1
call fcn.00405a50
push 0
push esi
call fcn.00405f72
jmp 0x4065c5
inc dword [0x7a2ce8]
jmp 0x4065c5
push esi
push 0xffffffffffffffe5
call fcn.00405a50
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x150
ret 8
Function at 0x406607
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x406663
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x400
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405fd7
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x4066d3
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov byte [edi + 0x3ff], 0
pop esi
jne 0x4066d3
cmp dword [ebp + 0x18], 1
je 0x4066d6
cmp dword [ebp + 0x18], 2
je 0x4066d6
mov byte [edi], 0
pop edi
leave
ret 0x14

Function at 0x4066db
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 0x40673e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add byte [ebp + 0xa], dl
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40677d
test edi, edi
jne 0x406749
mov byte [esi], al
jmp 0x40677f
mov eax, esi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40687a
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 0x40689c
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x406aaa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a17bc], 0
push esi
jne 0x406ae4
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406abb
mov dword [ecx*4 + 0x7a17b8], edx
inc ecx
cmp ecx, 0x100
jl 0x406ab6
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406b0e
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7a17b8]
inc esi
sub edx, 1
jne 0x406af6
not ecx
mov eax, ecx
pop esi
ret 0xc