joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57691b
Capabilities:
Send data
Send data on socket

Disassembly:
test esi, esi
je 0x566ab7
mov dl, bl
call fcn.0042ad6c
mov ecx, dword [ebp - 0x5c]
push 0
push edi
push esi
push ecx
call dword [sym.imp.WS2_32.dll_send]
jmp dword [0x423e88]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
mov eax, dword [0x6b753c]
push ebx
mov bl, byte [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x5c], eax
je 0x423e61
call dword [sym.imp.msvcrt.dll_rand]
mov ecx, 0xbb8
cdq
idiv ecx
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0xc], edi
mov byte [ebp - 0x54], 1
mov byte [ebp - 0x53], bl
mov word [ebp - 0x58], dx
mov edx, ecx
sub edx, dword [ebp - 0x58]
xor ecx, ecx
mov word [ebp - 0x56], dx
jmp 0x5889da
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005717ce
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [section..data]
jmp 0x483cbe
lea ebx, [ebx]
mov eax, ecx
and eax, 0x80000001
jns 0x5889f2
dec eax
or eax, 0xfffffffe
inc eax
je 0x588a03
mov al, bl
not al
imul cl
jmp 0x588a0d
mov al, cl
imul bl
mov dl, al
add dl, dl
add al, dl
xor byte [ebp + ecx - 0x52], al
inc ecx
cmp ecx, 0x4a
jmp dword [0x588a1e]

Function at 0x584fea
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [ebp + 0x10]
mov dword [0x67052d], eax
mov eax, dword [ebp + 0x14]
mov dword [0x670533], edx
mov dword [0x670547], eax
xor eax, eax
mov dword [0x670541], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [0x67053d], 0x7ffeffff
mov dword [0x670551], 0x3000
mov dword [0x670560], 0x40
mov edx, ebx
add edx, 0x400
mov dword [0x6705ab], edx
adc eax, edi
mov dword [0x6705af], eax
lea ecx, [ebx + 0x100]
jmp 0x58829c
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6b72fc]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 0x14], 0xb8d18b4c
mov word [ebp - 0xc], 0x50f
mov byte [ebp - 0xa], 0xc3
cmp eax, 6
jmp 0x57fea4
jne 0x584fea
mov eax, dword [0x6b7300]
cmp eax, 1
jne 0x57fec0
lea esi, [edi + 0x15]
jmp 0x584ff6
cmp eax, 2
jne 0x57fed1
lea esi, [eax + 0x14]
jmp 0x584ff6
cmp eax, 3
jne 0x584ff6
lea esi, [eax + 0x14]
jmp 0x584ff6
cmp eax, 0xa
jne 0x584ff6
lea esi, [eax + 0xe]
mov ebx, dword [0x6b7658]
cmp ebx, edi
jne 0x585024
push 0x40
push 0x3000
push 0x1000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [0x6b7658], ebx
jmp 0x585038
mov eax, dword [0x6b765c]
push eax
call fcn.004aeb75
mov ebx, dword [0x6b7658]
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [0x670529], edx
jmp 0x56f112
mov dword [0x6700cd], ecx
lea eax, [ebp - 8]
cdq
mov dword [0x6705c0], edx
mov edx, dword [ebp - 0x14]
mov dword [0x6705bc], eax
movzx eax, word [ebp - 0xc]
mov dword [ebx + 0x400], edx
movzx edx, byte [ebp - 0xa]
mov dword [ebx + 0x404], esi
mov word [ebx + 0x408], ax
mov byte [ebx + 0x40a], dl
mov eax, dword [0x6700cc]
mov dword [ebx], eax
mov edx, dword [0x6700d0]
mov dword [ebx + 4], edx
jmp dword [0x5882ee]
Function at 0x401af0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [0x405058], 1
mov dword [0x40505c], 1
mov dword [0x405060], 1
mov dword [0x40506c], 1
mov dword [ebp - 8], 0x400000
mov eax, dword [ebp - 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x401b3c
xor eax, eax
jmp 0x401bf0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx], 0x4550
je 0x401b5a
xor eax, eax
jmp 0x401bf0
mov edx, dword [ebp - 0xc]
add edx, 0x18
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x10b
je 0x401b80
cmp dword [ebp - 0x10], 0x20b
je 0x401bb4
jmp 0x401bee
mov edx, dword [ebp - 4]
cmp dword [edx + 0x5c], 0xe
ja 0x401b8d
xor eax, eax
jmp 0x401bf0
mov eax, 8
imul ecx, eax, 0xe
mov edx, dword [ebp - 4]
cmp dword [edx + ecx + 0x60], 0
je 0x401ba8
mov dword [ebp - 0x14], 1
jmp 0x401baf
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
jmp 0x401bf0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x6c], 0xe
ja 0x401bc7
xor eax, eax
jmp 0x401bf0
mov edx, 8
imul eax, edx, 0xe
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + eax + 0x70], 0
je 0x401be2
mov dword [ebp - 0x1c], 1
jmp 0x401be9
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
jmp 0x401bf0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402060
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 4], edx
jmp 0x4020a0
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 0xc], eax
jae 0x4020cf
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 0xc]
jb 0x4020cd
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 0xc], ecx
jae 0x4020cd
mov eax, dword [ebp - 4]
jmp 0x4020d1
jmp 0x40208e
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4020e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x402100
xor eax, eax
jmp 0x40213b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x40211b
xor eax, eax
jmp 0x40213b
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x10b
je 0x402136
xor eax, eax
jmp 0x40213b
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402580
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x405088], 0
jne 0x402593
jmp 0x4025ec
push 0x405070
call sub.kernel32.dll_EnterCriticalSection
mov eax, dword [0x40508c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4025e2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call sub.kernel32.dll_TlsGetValue
mov dword [ebp - 8], eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x4025d7
cmp dword [ebp - 8], 0
je 0x4025d7
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
call edx
add esp, 4
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
jmp 0x4025a5
push 0x405070
call sub.kernel32.dll_LeaveCriticalSection
mov esp, ebp
pop ebp
ret
Function at 0x402060
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00403040
add esp, 0xc
xor eax, eax
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
push eax
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x4020b4
add esp, 0x54
ret 4
mov ecx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret 4

Function at 0x4022d9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410090]
jne 0x4022e3
repz ret
jmp fcn.00402d2a

Function at 0x40a06c
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.00405ab9
and dword [ebp - 4], 0
cmp dword [0x4119d0], 0
mov ebx, eax
jne 0x40a11d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a1ce
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a1ce
push eax
call fcn.00405a47
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4119d0], eax
call esi
push eax
call fcn.00405a47
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4119d4], eax
call esi
push eax
call fcn.00405a47
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4119d8], eax
call esi
push eax
call fcn.00405a47
pop ecx
mov dword [0x4119e0], eax
test eax, eax
je 0x40a11d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405a47
pop ecx
mov dword [0x4119dc], eax
mov eax, dword [0x4119dc]
cmp eax, ebx
je 0x40a175
cmp dword [0x4119e0], ebx
je 0x40a175
push eax
call fcn.00405ac2
push dword [0x4119e0]
mov esi, eax
call fcn.00405ac2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a175
test edi, edi
je 0x40a175
call esi
test eax, eax
je 0x40a16c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a16c
test byte [ebp - 0xc], 1
jne 0x40a175
or dword [ebp + 0x10], 0x200000
jmp 0x40a1ae
mov eax, dword [0x4119d4]
cmp eax, ebx
je 0x40a1ae
push eax
call fcn.00405ac2
pop ecx
test eax, eax
je 0x40a1ae
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a1ae
mov eax, dword [0x4119d8]
cmp eax, ebx
je 0x40a1ae
push eax
call fcn.00405ac2
pop ecx
test eax, eax
je 0x40a1ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4119d0]
call fcn.00405ac2
pop ecx
test eax, eax
je 0x40a1ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a1d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40149d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470670]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405ba5
cmp eax, ebx
je 0x401539
push ebx
push dword [0x470670]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
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 [0x470670], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532
Function at 0x402ef6
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
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 0x402f16
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f25
mov ebx, 0x422130
mov eax, dword [ebp + 8]
test eax, eax
js 0x402f3a
mov ecx, dword [0x4705d8]
add ecx, eax
push ecx
call fcn.00402edf
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402ead
test eax, eax
jne 0x402f51
push 0xfffffffffffffffd
pop eax
jmp 0x4030b0
test dword [ebp + 0x14], 0x80000000
je 0x40308f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x432138
mov dword [ebp - 0xc], eax
call fcn.00406bbe
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030ad
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f91
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x41e130
push edi
call fcn.00402ead
test eax, eax
je 0x402f49
sub dword [ebp + 0x14], esi
mov dword [0x432150], edi
mov dword [0x432154], esi
mov eax, dword [ebp - 8]
mov ecx, 0x432138
mov dword [0x432158], ebx
mov dword [0x43215c], eax
call fcn.00406bde
mov dword [ebp - 0x10], eax
test eax, eax
js 0x403081
mov esi, dword [0x432158]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x470674], 1
mov edi, eax
je 0x403035
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402ffc
cmp dword [ebp + 0x14], 0
jne 0x403035
push dword [ebp + 8]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.00404a5d
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403076
cmp dword [ebp + 0x10], eax
jne 0x40305e
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403088
cmp dword [ebp - 0x14], esi
jne 0x403088
add dword [ebp - 4], esi
jmp 0x40306a
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x432158]
cmp dword [ebp - 0x10], 1
jne 0x402fb0
jmp 0x4030ad
cmp dword [ebp + 0x14], eax
jg 0x402f84
jmp 0x4030ad
push 0xfffffffffffffffc
jmp 0x402f4b
push 0xfffffffffffffffe
jmp 0x402f4b
test edi, edi
je 0x4030f6
cmp dword [ebp + 0x14], esi
jge 0x40309b
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402ead
test eax, eax
je 0x402f49
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4030c2
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x41e130
push edi
call fcn.00402ead
test eax, eax
je 0x402f49
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403088
cmp esi, dword [ebp + 0x10]
jne 0x403088
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030b7
jmp 0x4030ad
Function at 0x4056d6
Capabilities:
Create process on windows

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

Function at 0x4058c7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4058e4
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x4058e7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
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_CreateFileW]
ret 0xc

Function at 0x405916
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088cc]
mov dword [ebp - 8], eax
mov eax, dword [0x4088d0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405966
test edi, edi
jne 0x405923
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405960

Function at 0x40596a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4059e3
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4059cc
cmp dword [ebp + 0x14], 1
je 0x4059d1
cmp dword [ebp + 0x14], 2
je 0x4059d1
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x4060b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4562a0
push esi
call fcn.00405aa0
push esi
call fcn.004057f0
mov edi, eax
test edi, edi
jne 0x4060d9
xor eax, eax
jmp 0x406136
push edi
call fcn.00405acf
test byte [0x4705e8], 0x80
je 0x4060f5
movzx eax, word [edi]
test ax, ax
je 0x4060d5
cmp eax, 0x5c
je 0x4060d5
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406117
push esi
call fcn.00405b7e
test eax, eax
je 0x406111
test byte [eax], 0x10
je 0x40613b
push esi
call fcn.0040608b
push esi
call ebx
cmp eax, edi
jg 0x406102
push esi
call fcn.0040605c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406135
Function at 0x4063d3
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089b4
mov ebx, 0x45a2a8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406421
push 1
push ebp
push edi
call fcn.004058e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40659c
cmp eax, esi
jg 0x40659c
push esi
mov edi, 0x45f900
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x40659c
cmp eax, esi
jg 0x40659c
push ebp
push ebp
push esi
push 0x45aaa8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x40659c
push ebp
push ebp
push esi
mov esi, 0x45b0f8
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x40659c
push esi
push 0x45aaa8
push str._s_s_r_n
push 0x45b4f8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47059c]
push dword [eax + 0x128]
push edi
call fcn.0040613f
push 4
push 0xc0000000
push edi
call fcn.004058e7
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x40659c
push ebp
push eax
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
cmp esi, ebp
je 0x406592
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406592
cmp edi, dword [esp + 0x10]
jne 0x406592
push str._Rename__r_n
push esi
call fcn.0040584d
cmp eax, ebp
jne 0x406525
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40655a
push 0x4089a8
add eax, 0xa
push eax
call fcn.0040584d
mov ebp, eax
test ebp, ebp
je 0x406558
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x40654f
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x406545
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x40655c
xor ebp, ebp
mov eax, edi
push ebx
push 0x45b4f8
add eax, esi
push eax
call fcn.004058a3
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4065d5
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004060b8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x40660a
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x470648], eax
jmp 0x4067af
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x406625
test eax, eax
je 0x40675a
test cl, 2
je 0x40675a
push edi
push ebx
mov esi, 0x45b8f8
push esi
call fcn.00405aa0
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406648
push str..
push esi
call edi
jmp 0x40664e
push ebx
call fcn.0040608b
cmp word [ebx], 0
jne 0x40665e
cmp word [0x45b8f8], 0x5c
jne 0x406666
push 0x4082d0
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406749
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.0040579d
xor edi, edi
cmp word [eax], di
je 0x4066ad
cmp word [ebp - 0x28], di
je 0x4066ad
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4066c7
movzx eax, word [esi + 2]
cmp ax, di
je 0x406726
cmp eax, 0x2e
jne 0x4066c7
cmp word [esi + 4], di
je 0x406726
push esi
push dword [ebp - 4]
call fcn.00405aa0
test byte [ebp - 0x25c], 0x10
je 0x4066ee
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406726
push dword [ebp + 0xc]
push ebx
call fcn.004065d5
jmp 0x406726
push ebx
call fcn.004058c7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40671e
test byte [ebp + 0xc], 4
je 0x406716
push ebx
push 0xfffffffffffffff1
call fcn.00404a5d
push edi
push ebx
call fcn.004065a2
jmp 0x406726
inc dword [0x470648]
jmp 0x406726
push ebx
push 0xfffffffffffffff2
call fcn.00404a5d
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40668d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40674b
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x40675a
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4067ae
cmp dword [ebp - 0xc], esi
je 0x40679e
push ebx
call fcn.00405b7e
test eax, eax
je 0x4067ae
push ebx
call fcn.0040605c
push ebx
call fcn.004058c7
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4067a6
test byte [ebp + 0xc], 4
je 0x40679e
push ebx
push 0xfffffffffffffff1
call fcn.00404a5d
push esi
push ebx
call fcn.004065a2
jmp 0x4067ae
inc dword [0x470648]
jmp 0x4067ae
push ebx
push 0xffffffffffffffe5
call fcn.00404a5d
pop esi
pop ebx
leave
ret 8
Function at 0x406b4d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x460104], 0
jne 0x406b8b
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b61
mov dword [ecx*4 + 0x460100], eax
inc ecx
cmp ecx, 0x100
jl 0x406b5c
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406bb8
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x460100]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406b99
not eax
pop ebp
ret 0xc