joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41466e
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 0x18], ecx
push eax
xor ebx, ebx
mov edx, 0xeaffef5b
push 3
push ebx
push 0xd125241a
mov ecx, 0x80a9f499
mov dword [ebp - 0x10], ebx
call fcn.00401534
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4146b0
xor eax, eax
jmp 0x4147e3
lea eax, [ebp - 4]
mov edx, 0xa58bac98
push eax
push ebx
lea eax, [ebp - 0xc]
mov ecx, 0xcfddb7b8
push eax
push ebx
push 0x9e51679a
call fcn.00401534
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 2
pop ecx
test eax, eax
je 0x4146e7
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4146f4
cmp dword [ebp - 0xc], 7
jne 0x4147d8
mov eax, dword [ebp - 4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
lea ecx, [ebp - 4]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea eax, [ebp - 0xc]
mov edx, 0x40f50d24
push eax
push ebx
push 0x7b2fc626
mov ecx, 0x2aa31620
call fcn.00401534
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
test eax, eax
push 2
pop eax
cmovne ecx, eax
push 0x4e8940
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, dword [ebp - 4]
lea eax, [eax*2 + 8]
push eax
push 8
call edi
push eax
call esi
mov edi, dword [ebp - 0x14]
mov esi, eax
lea eax, [ebp - 0x10]
mov edx, edi
push eax
push ecx
mov ecx, dword [ebp - 0x18]
push esi
call fcn.004145c7
add esp, 0xc
cmp dword [ebp - 0x10], ebx
jbe 0x4147a6
add eax, eax
mov edx, 0xea7797a2
push eax
push esi
push 7
push ebx
push 0xd1ad5ca0
mov ecx, 0x80218cba
call fcn.00401534
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4147c5
push 0x771a6cf8
mov edx, 0x4cc0a7fa
mov ecx, 0x2696bb06
call fcn.00401534
pop ecx
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call fcn.0040746c
push edi
call fcn.0040746c
pop ecx
pop ecx
xor ebx, ebx
pop edi
inc ebx
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4147e8
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, edx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5c
mov edx, 0x44fba67c
mov ecx, 0x2eadbaac
lea esi, [esi + eax*2]
pop eax
push 0x7f216d7a
mov word [esi], ax
call fcn.00401534
lea edx, [esi + 2]
pop ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x41481a
lea edx, [esi + 0x12]
mov ecx, str.xreveal.sys
sub edx, ecx
pop esi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x414834
xor eax, eax
inc eax
ret
Function at 0x4148af
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea edx, [ebp - 0x20c]
mov esi, ecx
call fcn.004147e8
xor edx, edx
movzx eax, word [ebp + edx - 0x20c]
lea edx, [edx + 2]
mov word [ebp + edx - 0x416], ax
test ax, ax
jne 0x4148d2
lea eax, [ebp - 0x414]
push 0x2e
push eax
call fcn.004b3fe0
pop ecx
pop ecx
push 0x74
pop ecx
push 0x6d
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
push 0x70
pop ecx
mov word [eax + 6], cx
xor ecx, ecx
mov word [eax + 8], cx
test esi, esi
je 0x4149aa
push 0x104
lea eax, [ebp - 0x61c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push 0x5c
push eax
call fcn.004b3fe0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4149c2
push str.xreveal.sys
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
test esi, esi
je 0x4149c2
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
test eax, eax
jne 0x4149c2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
jmp 0x4149c2
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x414]
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004b35e5
mov esp, ebp
pop ebp
ret
Function at 0x415807
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp + 0x94], eax
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push esi
mov esi, dword [0x521824]
push 0x10c
push 0
push eax
mov dword [ebp - 0x80], 0x114
call fcn.004b6030
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
jb 0x415863
sub esp, 0xc
mov ecx, esi
call fcn.004158a4
jmp 0x415865
xor eax, eax
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
pop esi
call fcn.004b35e5
lea esp, [ebp + 0x98]
pop ebp
ret 0xc

Function at 0x415adb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 0xffc7
mov ebx, edx
movzx esi, byte [edi + 1]
xor si, ax
mov al, byte [edi]
xor al, 0xc7
shl si, 8
movzx eax, al
or si, ax
movzx esi, si
mov eax, esi
call fcn.004ba2b0
xor ecx, ecx
mov edx, esp
test esi, esi
jle 0x415b2a
mov al, byte [edi + ecx + 2]
xor al, 0xc7
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x415b1c
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push edx
push dword [0x521828]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b35e5
mov esp, ebp
pop ebp
ret

Function at 0x415b52
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 0xffc7
mov ebx, edx
movzx esi, byte [edi + 1]
xor si, ax
mov al, byte [edi]
xor al, 0xc7
shl si, 8
movzx eax, al
or si, ax
movzx esi, si
mov eax, esi
call fcn.004ba2b0
xor ecx, ecx
mov edx, esp
test esi, esi
jle 0x415ba1
mov al, byte [edi + ecx + 2]
xor al, 0xc7
mov byte [ecx + edx], al
inc ecx
cmp ecx, esi
jl 0x415b93
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push edx
push dword [0x521828]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b35e5
mov esp, ebp
pop ebp
ret

Function at 0x415bfb
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
dec eax
cmp edx, eax
push ebp
cmovle eax, edx
push esi
mov esi, dword [esp + 0xc]
push edi
lea ebp, [eax + eax]
mov edi, ecx
test ebp, ebp
jle 0x415c29
push ebx
mov edx, esi
sub edi, esi
mov ebx, ebp
mov cl, byte [edi + edx]
xor cl, 0xc7
mov byte [edx], cl
inc edx
dec ebx
jne 0x415c1c
pop ebx
xor ecx, ecx
pop edi
mov word [esi + ebp], cx
pop esi
pop ebp
ret
Function at 0x415c33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push edi
mov edi, dword [ebp + 0x98]
mov edx, 0xf7a5105e
push 0x4e8940
push 0x5b3f2e03
mov ecx, 0xf3fb446b
call fcn.004015a1
pop ecx
push eax
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x415ced
push esi
lea eax, [ebp - 0x80]
mov dword [ebp - 0x78], 1
push eax
push edi
lea eax, [ebp - 0x78]
mov dword [ebp - 0x80], 0x10
push eax
push 0
push 0xcd98f85e
mov edx, 0x6102c60a
mov ecx, 0x655c9205
call fcn.004015a1
pop ecx
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x415ce8
cmp dword [ebp - 0x78], 1
je 0x415ced
xor eax, eax
mov word [edi], ax
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
pop edi
call fcn.004b35e5
lea esp, [ebp + 0x90]
pop ebp
ret

Function at 0x415d03
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
mov esi, dword [ebp + 0x90]
mov edx, 0x3afd5b44
push 0x4e8940
push 0x96676519
mov ecx, 0x3ea30f5f
call fcn.004015a1
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x415dd5
test esi, esi
je 0x415dad
mov ecx, esi
push edi
xor edi, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x415d70
sub ecx, edx
mov edx, 0x80b62af9
sar ecx, 1
lea eax, [ecx*2 + 2]
mov ecx, 0x84e87e8c
push eax
push esi
push 1
push edi
push 0x2c2c14ad
call fcn.004015a1
pop ecx
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
jmp 0x415dcc
push 0x4734fe67
mov edx, 0xebaec033
mov ecx, 0xeff09472
call fcn.004015a1
pop ecx
push eax
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop esi
call fcn.004b35e5
lea esp, [ebp + 0x88]
pop ebp
ret
Function at 0x41624e
Capabilities:
Enumerate files on windows
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48c
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x488], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x5000
mov dword [esp + 0x1c], eax
xor ebx, ebx
call fcn.00407458
mov esi, eax
pop ecx
test esi, esi
je 0x416457
lea ecx, [esp + 0x288]
call fcn.0040887f
push 0xf58fc87d
mov edx, 0x5915f62a
mov ecx, 0x5d4ba2eb
mov edi, eax
call fcn.004015a1
pop ecx
mov ecx, eax
mov edx, edi
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4162b2
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x41640a
lea eax, [esp + 0x4c]
sub edi, eax
mov dword [esp + 0x270], edi
lea ecx, [esp + 0x4c]
movzx eax, word [ecx]
mov word [edi + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4162f2
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
je 0x4163e8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4163e1
test eax, eax
je 0x4163e1
cmp eax, 0x5000
jbe 0x416361
push 2
push 0
push 0xffffb000
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x18]
push eax
push 0x5000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4163e1
cmp dword [esp + 0x14], 0
jbe 0x4163e1
xor ecx, ecx
mov word [esp + 0x278], 0x6f6c
xor eax, eax
mov byte [esp + 0x280], cl
mov byte [esp + 0x27a], 0x67
lea edi, [esp + 0x281]
mov dword [esp + 0x27c], 0x7478742e
stosd dword es:[edi], eax
push ecx
push ecx
push dword [esp + 0x1c]
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
mov al, byte [esp + 0x5c]
mov byte [esp + 0x28b], al
lea eax, [esp + 0x288]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xa4]
call fcn.0041a544
mov edi, dword [esp + 0x1c]
inc ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [esp + 0x270]
test eax, eax
jne 0x4162ee
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, esi
call fcn.00415e5b
test eax, eax
je 0x416450
xor ecx, ecx
mov dword [esp + 0x270], 0x2e676572
push ecx
push ecx
push eax
push esi
lea eax, [esp + 0x280]
mov dword [esp + 0x284], 0x696e69
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0xa4]
call fcn.0041a544
inc ebx
push esi
call fcn.0040746c
pop ecx
mov ecx, dword [esp + 0x494]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b35e5
mov esp, ebp
pop ebp
ret
Function at 0x416565
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xorps xmm0, xmm0
lea ecx, [ebp - 4]
xor edx, edx
movlpd qword [ebp - 0x14], xmm0
call fcn.00408804
cmp eax, 1
jne 0x4165c6
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0xb
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 8
push eax
lea eax, [ebp - 0xc]
mov edx, 0xf9c6e155
push eax
push 0
push 0x419a57ed
mov ecx, 0x40b2f1de
call fcn.00401337
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4168ea
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x4ac
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x4a8], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4b8]
push edi
push str.CPowerDVD11::ReadRegion
mov edi, ecx
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
xor ebx, ebx
lea eax, [esp + 0x21]
push 0x3f
push ebx
mov dword [edi], ebx
mov dword [edi + 4], ebx
push eax
mov dword [ebp + 4], 8
mov byte [esp + 0x2c], bl
call fcn.004b6030
add esp, 0xc
lea edx, [esp + 0xa0]
push 0x23
pop ecx
call fcn.00416882
lea eax, [esp + 0xa0]
mov edx, 0xc8c85d73
push eax
push 0xcf9c4095
mov ecx, 0x37c9b97f
call fcn.0040160e
pop ecx
push eax
lea eax, [esp + 0x2b0]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x2a8]
push ebx
push 2
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4169c8
push 0
lea eax, [esp + 0x10]
push eax
push 0x40
lea eax, [esp + 0x6c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0x10]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call fcn.004171fe
mov ecx, dword [edi]
sub ecx, 9
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 4]
mov dword [ebp + 0xc], ecx
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
mov ecx, dword [esp + 0x4b4]
mov al, 1
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x4ac
ret 4
Function at 0x416ee3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push 0x20219
push 0
push 0xd5f0e356
mov edx, 0xd2a4feb0
mov ecx, 0x2da51bd4
call fcn.0040160e
pop ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x416f7f
push edi
mov byte [ebp - 0x14], al
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
mov edx, 0x286d2533
mov ecx, 0xd76cc029
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x1c], 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0x2f3938ca
call fcn.0040160e
pop ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416f7e
push esi
mov edi, ebx
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
pop edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004b35e5
mov esp, ebp
pop ebp
ret 4
Function at 0x4174f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
push esi
xor esi, esi
mov dword [esp + 8], eax
mov ecx, esi
sub edx, 0x51ac10
mov al, byte [edx + ecx + 0x51ac10]
xor al, byte [ecx + 0x51ac10]
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x18
jl 0x417515
push ebx
push ebp
push edi
push 3
pop ebx
lea edi, [esp + 0x29]
mov dword [esp + 0x10], 5
lea ebp, [esp + 0x20]
mov dword [esp + 0x18], 8
cmp ebx, 8
jge 0x417560
mov dl, byte [edi + 1]
mov cl, bl
mov al, byte [edi]
shr dl, cl
mov ecx, dword [esp + 0x10]
shl al, cl
jmp 0x41757f
mov eax, ebx
and eax, 0x80000007
jns 0x41756e
dec eax
or eax, 0xfffffff8
inc eax
mov dl, byte [edi - 1]
push 8
pop ecx
sub ecx, eax
mov al, byte [edi]
shl dl, cl
lea ecx, [ebx - 8]
shr al, cl
add dl, al
add edi, 3
dec dword [esp + 0x10]
mov byte [ebx + ebp - 3], dl
inc ebx
dec dword [esp + 0x18]
jne 0x41754a
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0041747f
pop edi
pop ebp
pop ebx
mov al, byte [esi + 0x4e8a14]
xor byte [esp + esi + 0xc], al
inc esi
cmp esi, 8
jl 0x4175a6
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 4], eax
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004b35e5
add esp, 0x34
ret 8

Function at 0x4175d9
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp], eax
push esi
mov eax, dword [ecx]
xor esi, esi
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0xc], eax
mov al, byte [ecx + 0x4e8a14]
xor byte [esp + ecx + 8], al
inc ecx
cmp ecx, 8
jl 0x417604
push ebx
push ebp
push edi
push 1
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041747f
push 3
pop edx
lea ebp, [esp + 0x25]
mov dword [esp + 0x14], 8
lea edi, [esp + 0x1c]
cmp edx, 8
jge 0x417644
mov eax, esi
jmp 0x41765e
mov eax, edx
and eax, 0x80000007
jns 0x417652
dec eax
or eax, 0xfffffff8
inc eax
push 8
pop ecx
sub cl, al
movzx eax, byte [edi + edx - 3]
shr eax, cl
mov byte [ebp - 1], al
mov al, byte [edi + edx - 3]
movzx ebx, al
cmp edx, 8
jge 0x417676
push 8
pop ecx
sub cl, dl
shr ebx, cl
jmp 0x41767b
lea ecx, [edx - 8]
shl ebx, cl
mov ecx, edx
mov byte [ebp], bl
shl al, cl
inc edx
mov byte [ebp + 1], al
add ebp, 3
dec dword [esp + 0x14]
jne 0x41763b
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
mov al, byte [esi + 0x51ac10]
xor al, byte [esp + esi + 0x18]
mov byte [ecx + esi], al
inc esi
cmp esi, 0x18
jl 0x417696
mov ecx, dword [esp + 0x30]
pop esi
xor ecx, esp
call fcn.004b35e5
add esp, 0x30
ret 8
Function at 0x4176bb
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x5107c0]
xor eax, ebp
mov dword [ebp - 8], eax
and dword [ebp - 0x66c], 0
lea eax, [ebp - 0x668]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x24c
push 0
push eax
call fcn.004b6030
add esp, 0xc
mov edx, 0xbdf2c1b0
mov ecx, 0x42f3248e
push esi
push 0xbaa6dc44
call fcn.0040160e
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
pop ecx
push eax
lea eax, [ebp - 0x41c]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x41c]
mov edx, 0x15367d77
mov ecx, 0xea3798a7
push eax
push 0x12626083
call fcn.0040160e
pop ecx
push eax
lea eax, [ebp - 0x214]
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4177b3
lea eax, [ebp - 0x640]
mov edx, 0x3e64390d
push eax
lea eax, [ebp - 0x41c]
mov ecx, 0xc165dcef
push eax
push 0x393024f4
call fcn.0040160e
pop ecx
push eax
lea eax, [ebp - 0x214]
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x66c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41775d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004b35e5
mov esp, ebp
pop ebp
ret 4
Function at 0x4177c5
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x21c
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
mov ebx, dword [esp + 0x224]
push ebp
push esi
mov dword [ebx + 4], 7
call fcn.00417be7
and dword [esp + 0xc], 0
lea edx, [esp + 0x1c]
push 0x23
pop ecx
call fcn.00416882
push 0xb5d39c58
mov edx, 0xb28781bc
mov ecx, 0x4d866452
mov esi, eax
call fcn.0040160e
pop ecx
push eax
lea eax, [esp + 0x20]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
push eax
push 0x80
push 3
pop ebp
push ebp
push eax
push 1
push 0x80000000
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4178f7
push edi
xor eax, eax
lea edi, [esp + 0x19]
xor ecx, ecx
mov byte [esp + 0x18], cl
stosd dword es:[edi], eax
push ecx
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 8
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 8
pop edi
jne 0x4178f0
mov al, byte [esp + 0x14]
push 2
pop ecx
cmp al, 0x88
jne 0x417891
mov dword [ebx + 8], 1
jmp 0x4178a1
cmp al, 0x8b
jne 0x41789a
mov dword [ebx + 8], ecx
jmp 0x4178a1
cmp al, 0x8d
jne 0x4178a1
mov dword [ebx + 8], ebp
mov al, byte [esp + 0x18]
cmp al, 0x8f
je 0x4178e4
cmp al, 0x8c
je 0x4178e4
cmp al, 0x8d
jne 0x4178ba
mov dword [ebx + 0xc], 4
jmp 0x4178eb
cmp al, 0x8b
jne 0x4178c3
mov dword [ebx + 0xc], ecx
jmp 0x4178eb
cmp al, 0x8a
jne 0x4178cc
mov dword [ebx + 0xc], ebp
jmp 0x4178eb
cmp al, 0x88
jne 0x4178d9
mov dword [ebx + 0xc], 1
jmp 0x4178eb
cmp al, 0x89
jne 0x4178eb
xor eax, eax
mov dword [ebx + 0xc], eax
jmp 0x4178eb
mov dword [ebx + 0xc], 5
mov byte [esp + 0xc], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x21c
ret 4