joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b90c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push edi
push edi
mov dword [esi + 8], eax
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
cmp dword [esi + 0x34], edi
je 0x40b93c
xor eax, eax
inc eax
jmp 0x40b96a
push esi
push edi
push 0x40b862
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40b960
push esi
call fcn.0040a89e
test eax, eax
je 0x40b960
cmp dword [esi + 0x48], edi
je 0x40b937
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret 4

Function at 0x40c894
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 7
push 0x10000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c8db
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c8eb
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40cbbb
Capabilities:
Timestomp file

Disassembly:
push 0x14
push 0x402760
call fcn.0041b130
or dword [ebp - 0x20], 0xffffffff
xor edi, edi
mov dword [ebp - 4], edi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
call esi
push edi
push edi
push 3
push edi
push 3
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0xc0000000
add eax, 0x80000000
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x40cc09
xor eax, eax
jmp 0x40cc0e
call fcn.0040c9f8
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x40cc69
push edi
call esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
cmp dword [ebp + 0x18], edi
je 0x40cc35
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
je 0x40cc3d
xor eax, eax
jmp 0x40cc42
call dword [sym.imp.KERNEL32.dll_GetFileTime]
jmp 0x40cc2d
call fcn.0040c9f8
mov dword [ebp - 0x1c], eax
jmp 0x40cc69
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], 0xffffffff
je 0x40cc7c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
call fcn.0041b16b
ret 0x14
Function at 0x40db3d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4233cc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x214], eax
je 0x40db91
push 0xa
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
mov ecx, dword [ebp - 0x218]
add esp, 0xc
cmp word [ecx], bx
jne 0x40db8a
cmp ecx, esi
jne 0x40db94
push 0xd
jmp 0x40dc9a
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x214], ebx
jne 0x40dba6
mov dword [ebp - 0x214], 0x401460
cmp eax, 0x8000
jae 0x40dbd8
mov ecx, 0x4000
test ecx, eax
je 0x40dbd8
push 1
xor eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40dc07
lea edi, [ebp - 0x20c]
jmp 0x40dc70
lea edx, [edi + 0x26c]
mov esi, dword [edx + 4]
xor ecx, ecx
cmp esi, ebx
mov dword [ebp - 0x210], ecx
jbe 0x40dc07
mov edx, dword [edx]
mov edi, ecx
imul edi, edi, 0x20c
cmp dword [edi + edx], eax
je 0x40dc62
inc ecx
cmp ecx, esi
mov dword [ebp - 0x210], ecx
jb 0x40dbef
push dword [ebp - 0x214]
call fcn.0041a3e9
mov esi, eax
cmp esi, ebx
je 0x40dc51
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
mov dword [ebp - 0x210], eax
je 0x40dc51
lea eax, [esi + eax*2]
push eax
push esi
call dword [sym.imp.USER32.dll_CharPrevW]
cmp word [eax], 0x5c
jne 0x40dc51
mov eax, dword [ebp - 0x210]
cmp eax, 3
jne 0x40dc4c
cmp word [esi + 2], 0x3a
je 0x40dc51
mov word [esi + eax*2 - 2], bx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419835
leave
ret 0x10
imul ecx, ecx, 0x20c
lea edi, [ecx + edx + 4]
cmp edi, ebx
je 0x40dc07
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x214]
push edi
call fcn.0041a5b7
mov eax, dword [ebp - 0x210]
add eax, eax
push eax
call fcn.0041a316
mov esi, eax
cmp esi, ebx
jne 0x40dca4
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40dc53
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push esi
call fcn.0041a5b7
jmp 0x40dc14
Function at 0x4156c7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4233cc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
movzx eax, word [edi]
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
cmp ax, 0x41
mov dword [ebp - 0x10], eax
jb 0x415775
cmp ax, 0x5a
ja 0x415775
cmp word [edi + 2], 0x3a
jne 0x415775
mov ax, word [edi]
and word [ebp - 6], 0
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x5c
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
mov dword [esi], eax
jne 0x41572f
and dword [esi], 0
mov eax, dword [esi]
cmp eax, 2
je 0x415743
cmp eax, 5
je 0x415743
test eax, eax
je 0x415743
xor eax, eax
jmp 0x415746
xor eax, eax
inc eax
mov dword [ebx], eax
cmp dword [esi], 2
jne 0x415793
push dword [ebp - 0x10]
call fcn.00415617
test eax, eax
je 0x41575f
mov dword [esi], 3
mov eax, dword [0x4235d0]
mov cx, word [eax]
cmp cx, word [edi]
jne 0x415793
cmp word [eax + 2], 0x3a
jne 0x415793
jmp 0x415790
cmp word [edi], 0x5c
jne 0x41578a
cmp word [edi + 2], 0x5c
jne 0x41578a
mov dword [esi], 4
jmp 0x415790
mov dword [esi], 3
and dword [ebx], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419835
leave
ret 0xc
Function at 0x415d2e
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
jne 0x415e2c
mov eax, dword [esi + 0x28]
test ah, 0x20
je 0x415d5f
push dword [esi + 0x18]
push 0x68
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov ebx, eax
jmp 0x415db4
test eax, eax
jns 0x415d6c
push 0x6a
call fcn.00418faf
jmp 0x415d94
cmp dword [esi + 0x30], edi
je 0x415d84
cmp dword [esi + 0x14], edi
je 0x415d84
push dword [esi + 0x18]
push 0x68
call fcn.0041907f
pop ecx
pop ecx
jmp 0x415d94
push dword [esi + 0x18]
push dword [esi + 0x20]
push 0x69
call fcn.0041907f
add esp, 0xc
mov edi, eax
test edi, edi
je 0x415eea
push edi
push 0x68
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
mov ebx, eax
call fcn.0041a398
xor edi, edi
cmp ebx, edi
je 0x415eea
test byte [esi + 0x2b], 0x80
je 0x415df1
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x69
push dword [esi + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x69
push dword [esi + 8]
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
cmp dword [esi + 0x30], edi
je 0x415e09
cmp dword [esi + 0x14], edi
je 0x415e09
push dword [esi + 0x18]
push 0x6b
call fcn.0041907f
pop ecx
pop ecx
jmp 0x415e10
push 0x6c
call fcn.00418faf
mov edi, eax
test edi, edi
je 0x415eea
push edi
push 0x69
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push edi
jmp 0x415edb
cmp eax, 1
jne 0x415eea
push 0x7e
call fcn.00418faf
mov ebx, eax
cmp ebx, edi
je 0x415eea
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push ebx
push 1
push dword [esi + 8]
call edi
push ebx
mov dword [ebp + 8], eax
call fcn.0041a398
cmp dword [ebp + 8], 0
je 0x415eea
push dword [esi + 0x20]
push 0x6f
call fcn.0041907f
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x415eea
push ebx
push 0x68
push dword [esi + 8]
call edi
push ebx
mov dword [ebp + 8], eax
call fcn.0041a398
cmp dword [ebp + 8], 0
je 0x415eea
mov eax, dword [esi + 4]
cmp eax, 0x10b
je 0x415ec6
cmp eax, 0x70
je 0x415ec6
test byte [esi + 0x2b], 0x80
je 0x415eae
push 0x72
call fcn.00418faf
jmp 0x415ecc
cmp dword [esi + 0x30], 0
push dword [esi + 0x18]
je 0x415ebb
push 0x73
jmp 0x415ebd
push 0x74
call fcn.0041907f
pop ecx
pop ecx
jmp 0x415ecc
push esi
call fcn.004159ad
mov ebx, eax
test ebx, ebx
je 0x415eea
push ebx
push 0x69
push dword [esi + 8]
call edi
push ebx
mov esi, eax
call fcn.0041a398
test esi, esi
jne 0x415de7
xor eax, eax
jmp 0x415dea

Function at 0x416cb4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 1
push esi
call fcn.00415af4
push esi
push 0
push 0x416c86
mov dword [esi + 0x48], 1
call dword [sym.imp.msvcrt.dll__beginthread]
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
setne cl
pop esi
mov eax, ecx
pop ebp
ret 4
Function at 0x418996
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push dword [ebp + 0x14]
mov dword [ebp - 4], edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
cmp eax, edi
mov ebx, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [ebx], ecx
jne 0x418a1a
cmp ecx, edi
jne 0x4189d4
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor eax, eax
jmp 0x418a1a
add dword [ebp - 4], 4
push dword [ebp - 4]
call fcn.0041a316
cmp eax, edi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jne 0x4189ee
push 8
pop eax
jmp 0x418a1a
push ebx
push eax
push dword [ebp + 0x14]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, edi
je 0x418a0e
mov eax, dword [ebp + 0x10]
push dword [eax]
call fcn.0041a398
jmp 0x418a18
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx]
xor eax, eax
add edi, dword [ebx]
stosd dword es:[edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x418c1b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
xor esi, esi
cmp dword [ebp + 0x18], edi
mov dword [ebp - 4], 2
jbe 0x418c58
mov eax, dword [ebp + 0x14]
push dword [eax + esi*4]
call ebx
cmp eax, edi
je 0x418c71
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ebp + 0x18]
lea eax, [ecx + eax*2 + 2]
mov dword [ebp - 4], eax
jb 0x418c3c
push dword [ebp - 4]
call fcn.0041a316
mov esi, eax
cmp esi, edi
mov dword [ebp - 0xc], esi
jne 0x418c75
push 8
pop eax
jmp 0x418d0c
push 0xd
jmp 0x418c6b
xor eax, eax
cmp dword [ebp + 0x18], eax
jbe 0x418ca3
mov eax, dword [ebp + 0x14]
push dword [eax + edi*4]
call ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
push dword [eax + edi*4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x10]
inc edi
cmp edi, dword [ebp + 0x18]
lea esi, [esi + eax*2 + 2]
jb 0x418c7c
xor eax, eax
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
mov word [esi], ax
je 0x418cd0
cmp word [ecx], ax
je 0x418cd0
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 8]
push edx
push eax
push 2
push eax
push eax
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
xor eax, eax
jmp 0x418cd8
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
xor esi, esi
cmp esi, eax
jne 0x418d02
push dword [ebp - 4]
push dword [ebp - 0xc]
push 7
push eax
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
je 0x418d02
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.0041a398
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x419835
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4233cc]
jne 0x419846
test ecx, 0xffff0000
jne 0x419846
ret
jmp fcn.00419850
Function at 0x41a9d8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
cmp dword [0x4239f0], 0
mov eax, dword [0x4233cc]
mov dword [ebp - 4], eax
jne 0x41aa1a
push 0x403498
push 0x40348c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4239ec], eax
mov dword [0x4239f0], 1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov eax, dword [0x4239ec]
test eax, eax
je 0x41aa4f
lea ecx, [ebp - 0x808]
push ecx
push 0x403488
push dword [ebp + 8]
push 2
call eax
add esp, 0x10
jmp 0x41aa5c
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
call fcn.00419835
leave
ret

Function at 0x41aa6b
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
je 0x41aacd
push esi
push eax
push esi
push 2
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
je 0x41aacd
push dword [edi]
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
je 0x41aabb
xor eax, eax
jmp 0x41aad7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebx]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41aad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x41abac
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4233cc]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x210]
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp eax, esi
jae 0x41ad8a
test eax, eax
je 0x41ad7e
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x41ad8a
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x41ad8a
and word [eax], 0
push dword [ebp - 0x210]
call sub.msvcrt.dll_towupper
cmp ax, 0x41
pop ecx
jb 0x41ac58
push dword [ebp - 0x210]
call sub.msvcrt.dll_towupper
cmp ax, 0x5a
pop ecx
ja 0x41ac58
cmp word [ebp - 0x20e], 0x3a
jne 0x41ac58
cmp word [ebp - 0x20c], 0x5c
jne 0x41ad8a
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], eax
push 0x5c
pop edi
cmp word [ebp - 0x210], di
jne 0x41ac9e
cmp word [ebp - 0x20e], di
jne 0x41ac9e
lea eax, [ebp - 0x20c]
push edi
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x41ad8a
add eax, 2
push edi
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x214], eax
je 0x41ad8a
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41acc5
and al, 0x10
neg al
sbb eax, eax
and eax, 0xfffffef5
add eax, 0x10b
jmp 0x41ad8d
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.USER32.dll_CharPrevW]
mov esi, eax
cmp esi, dword [ebp - 0x214]
je 0x41ad8a
cmp word [esi], di
jne 0x41ad8a
cmp esi, dword [ebp - 0x214]
jbe 0x41ad8a
and word [esi], 0
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x41ad8a
mov bx, word [edi + 2]
and word [edi + 2], 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov word [edi + 2], bx
jne 0x41ad50
cmp edi, dword [ebp - 0x214]
mov esi, edi
ja 0x41acfb
cmp esi, dword [ebp - 0x214]
jbe 0x41ad8a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
jmp 0x41ad70
test al, 0x10
jne 0x41ad3e
mov eax, 0x10b
jmp 0x41ad8d
cmp word [esi + 2], bx
je 0x41ad86
push esi
mov word [esi], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
lea eax, [ebp - 0x210]
push ebx
push eax
call edi
test eax, eax
jne 0x41ad5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41ad8d
xor eax, eax
jmp 0x41ad8d
push 0x7b
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00419835
leave
ret 4
Function at 0x41adfe
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4233cc]
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
je 0x41af07
test eax, eax
jne 0x41ae38
mov dword [edi], 0x57
jmp 0x41af07
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp + 0x10]
and edx, 0x1000
or edx, 0x100080
shr edx, 4
push edx
push 8
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov dword [ebp - 0x218], eax
je 0x41ae6d
mov dword [edi], eax
jmp 0x41af07
push ebx
xor ebx, ebx
xor edi, edi
lea eax, [ebp - 0x228]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41aee5
lea eax, [ebp - 0x218]
push eax
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.0041adfe
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
mov dword [ebp - 0x218], eax
je 0x41ae72
inc ebx
mov edi, eax
jmp 0x41ae72
cmp eax, 0x103
pop ebx
je 0x41aeef
mov edi, eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x41af0b
mov eax, dword [ebp - 0x220]
mov dword [eax], edi
xor eax, eax
jmp 0x41af0e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
call fcn.00419835
leave
ret 0x10

Function at 0x41af20
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041adfe
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp - 4]
cmp esi, 2
je 0x41af4f
cmp esi, 3
jne 0x41af51
xor esi, esi
test esi, esi
jne 0x41afcb
test byte [ebp + 0x11], 0x10
push edi
push dword [ebp + 0xc]
je 0x41afb3
call fcn.0041a3e9
mov edi, eax
test edi, edi
je 0x41afae
push 0x5c
push edi
call sub.msvcrt.dll_wcsrchr
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41afa4
and word [esi], 0
lea eax, [ebp - 8]
push eax
push 0x10100
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esi, 2
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x41afa6
xor esi, esi
push edi
call fcn.0041a398
jmp 0x41afbe
push 8
pop esi
jmp 0x41afbe
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp esi, 2
pop edi
je 0x41afc9
cmp esi, 3
jne 0x41afcb
xor esi, esi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x41c5b0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x41c5ed
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x41c5ca
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x41c609
dec esi
je 0x41c602
dec esi
jne 0x41c60e
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x408953
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
mov edi, 0xe9a16fd2
sub edi, edi
call fcn.00408986
add edi, edx
mov edi, 0x92e7843f
xor dword [ebx], esi
sub edi, edx
add ebx, 1
and edx, edi
mov edx, 0x9c0b8f9f
cmp ebx, eax
jne fcn.00408953
ret
Function at 0x401190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4078e4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x407a30], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
je 0x4011e9
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push 0x407a14
call fcn.0040109b
add esp, 0xc
test eax, eax
jne 0x4011e9
mov eax, dword [ebp - 0x2c]
push 0x20
push eax
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ee4
mov esp, ebp
pop ebp
ret
mov eax, dword [0x407a54]
mov edx, dword [0x407a10]
push esi
mov esi, dword [0x407a58]
push edi
push 0
push eax
sub esi, eax
push edx
shr esi, 3
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
xor edi, edi
test esi, esi
jle 0x401297
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
nop
mov eax, dword [0x407a10]
push eax
push 1
lea ecx, [ebp - 0x34]
push 8
push ecx
call ebx
add esp, 0x10
test eax, eax
je 0x401296
mov edx, dword [ebp + 0xc]
cmp dword [ebp - 0x34], edx
je 0x401255
inc edi
cmp edi, esi
jl 0x401220
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ee4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, dword [0x407a10]
push 0
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_fseek]
mov edx, dword [0x407a10]
push edx
push 0x20
lea eax, [ebp - 0x24]
push 1
push eax
call ebx
add esp, 0x1c
test eax, eax
je 0x401296
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x24]
push ecx
push str._t___s
push edx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402ee4
mov esp, ebp
pop ebp
ret
Function at 0x402ee4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4078e4]
jne 0x402eee
repz ret
jmp fcn.00403258