joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b95c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov dword [esp + 4], ecx
mov esi, edx
mov dword [esp], eax
mov dword [esp + 0x1c], 0xffffffff
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0xc
mov eax, 3
and eax, esi
cmp eax, 2
ja 0x42b9a0
mov edx, 1
and edx, esi
mov ecx, 8
and ecx, esi
and edx, ecx
je 0x42b9a8
or eax, 0xffffffff
jmp 0x42bb7d
test eax, eax
je 0x42b9d1
mov edi, 0x40000000
mov edx, 0x42bb88
mov eax, dword [esp]
call fcn.004151f4
test eax, eax
je 0x42b9ca
mov dword [esp + 4], 1
mov ebp, 2
jmp 0x42b9db
mov edi, 0x80000000
mov ebp, 3
cmp esi, 0x10a
jne 0x42ba5c
push 0
push 0x80
push 3
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, 0x80000000
or eax, edi
push eax
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42baa5
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42baa5
call sub.kernel32.dll_GetLastError_2
mov dword [0x455a0c], eax
cmp dword [0x455a0c], 0x6e
jne 0x42ba54
mov dword [0x455a0c], 2
or eax, 0xffffffff
jmp 0x42bb7d
push 0
push 0x80
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_CreateFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42baa5
call sub.kernel32.dll_GetLastError_2
mov dword [0x455a0c], eax
cmp dword [0x455a0c], 0x6e
jne 0x42ba9d
mov dword [0x455a0c], 2
or eax, 0xffffffff
jmp 0x42bb7d
push 8
push ebx
call sub.msvcrt.dll__open_osfhandle
add esp, 8
mov edi, eax
test esi, 8
je 0x42bb74
mov eax, edi
call fcn.00424690
test eax, eax
jne 0x42bb74
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
test eax, eax
je 0x42bb74
mov word [esp + 8], 0
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov ebp, eax
call sub.kernel32.dll_GetLastError_2
mov dword [0x455a0c], eax
cmp ebp, 0xffffffff
jne 0x42bb26
cmp dword [0x455a0c], 0
je 0x42bb26
cmp edi, 0xffffffff
je 0x42bb21
push edi
call sub.msvcrt.dll__close
pop ecx
or eax, 0xffffffff
jmp 0x42bb7d
push 0
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x14]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov ebp, eax
test ebp, ebp
jne 0x42bb55
xor eax, eax
mov dword [esp + 0x10], eax
push 2
lea eax, [esp + 0x14]
push eax
push 0
push ebx
call sub.kernel32.dll_SetFilePointer_1
cmp word [esp + 8], 0x1a
jne 0x42bb74
mov dword [esp + 0x10], 0xffffffff
push 2
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
call sub.kernel32.dll_SetFilePointer_1
mov eax, edi
call fcn.0042bca0
mov eax, edi
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42bfc8
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffff8
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0x5c
mov word [esp + 6], 0
push esp
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x42bff4
xor eax, eax
pop ecx
pop edx
ret
mov al, 1
pop ecx
pop edx
ret

Function at 0x42bffc
Capabilities:
Get disk information

Disassembly:
add esp, 0xfffffddc
mov word [esp + 8], ax
mov word [esp + 0xa], 0x3a
mov word [esp + 0xc], 0x5c
mov word [esp + 0xe], 0
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 1
ja 0x42c02f
mov al, 1
jmp 0x42c074
cmp eax, 2
je 0x42c072
cmp eax, 5
je 0x42c072
push 0
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x42c072
call sub.kernel32.dll_GetLastError_2
cmp eax, 5
jne 0x42c072
mov al, 1
jmp 0x42c074
xor eax, eax
add esp, 0x224
ret

Function at 0x42c600
Capabilities:
Set console window title

Disassembly:
push ebx
push esi
push ecx
mov ebx, eax
test ebx, ebx
je 0x42c6e8
mov eax, dword [0x4596f4]
cmp dword [eax], 0
jne 0x42c6e8
mov eax, dword [0x4595d4]
cmp byte [eax], 0
jne 0x42c6e8
mov eax, 0x20c
call fcn.00403e9c
mov dword [esp], eax
cmp dword [esp], 0
je 0x42c6e8
push 0x104
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_GetConsoleTitleW
mov esi, eax
test esi, esi
je 0x42c6e8
test ebx, ebx
je 0x42c666
mov eax, ebx
call fcn.00406ea8
jmp 0x42c668
xor eax, eax
add eax, esi
add eax, dword [0x472964]
add eax, 0xa
mov edx, eax
add edx, edx
mov eax, esp
call fcn.00403ed0
cmp dword [esp], 0
je 0x42c6e8
mov eax, dword [0x4597a0]
cmp byte [eax], 0
je 0x42c6a1
mov eax, dword [0x472964]
add eax, eax
add eax, dword [esp]
mov edx, ebx
call fcn.0041c328
jmp 0x42c6d7
mov edx, 0x42c6ec
mov eax, dword [esp]
call fcn.0041c33c
cmp dword [esp], 0
je 0x42c6be
mov eax, dword [esp]
call fcn.00406ea8
jmp 0x42c6c0
xor eax, eax
mov dword [0x472964], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.0041c33c
mov eax, dword [0x4597a0]
mov byte [eax], 1
mov eax, dword [esp]
push eax
call sub.kernel32.dll_SetConsoleTitleW
mov eax, dword [esp]
call fcn.00403eb8
pop edx
pop esi
pop ebx
ret
Function at 0x42cb08
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, edx
mov edi, eax
mov eax, edi
call fcn.0042cae8
inc eax
jne 0x42cc63
mov eax, edi
call fcn.00406ea8
mov dword [esp], eax
mov eax, dword [0x459704]
mov eax, dword [eax]
call fcn.0040831c
mov ebx, eax
lea eax, [ebx + 1]
push eax
mov eax, dword [0x459704]
mov ecx, 1
mov edx, dword [0x41c0e4]
call fcn.00408538
add esp, 4
mov eax, dword [esp]
lea eax, [eax + eax*2]
call fcn.00403e9c
lea esi, [ebx + ebx*2]
mov edx, dword [0x459704]
mov edx, dword [edx]
mov dword [edx + esi*8], eax
lea eax, [ebx + ebx*2]
mov edx, dword [0x459704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8]
mov edx, edi
call fcn.0041512c
mov eax, dword [0x459704]
mov eax, dword [eax]
mov dword [eax + esi*8 + 4], ebp
push ebp
call sub.msvcrt.dll__get_osfhandle
pop ecx
mov edx, dword [0x459704]
mov edx, dword [edx]
mov dword [edx + esi*8 + 8], eax
push 2
push 0
push 0
lea eax, [ebx + ebx*2]
mov edx, dword [0x459704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
mov edx, dword [0x459704]
mov edx, dword [edx]
mov dword [edx + esi*8 + 0xc], eax
lea eax, [ebx + ebx*2]
mov edx, dword [0x459704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0xc]
call fcn.00403e9c
mov edx, dword [0x459704]
mov edx, dword [edx]
mov dword [edx + esi*8 + 0x10], eax
push 0
push 0
push 0
mov eax, dword [0x459704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [0x459704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0xc]
push eax
mov eax, dword [0x459704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0x10]
push eax
mov eax, dword [0x459704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 8]
push eax
call sub.kernel32.dll_ReadFile_1
mov eax, dword [0x459704]
mov eax, dword [eax]
mov edx, dword [eax + esi*8 + 0x10]
mov eax, dword [0x459704]
mov eax, dword [eax]
mov eax, dword [eax + esi*8 + 0xc]
dec eax
test eax, eax
jl 0x42cc52
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x42cc4b
lea eax, [ebx + ebx*2]
mov edx, dword [0x459704]
mov edx, dword [edx]
xor ecx, ecx
mov dword [edx + eax*8 + 0x14], ecx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42cdd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
or ebx, 0xffffffff
mov eax, dword [0x459704]
mov eax, dword [eax]
call fcn.00408324
test eax, eax
jl 0x42ce10
inc eax
xor edx, edx
lea ecx, [edx + edx*2]
mov edi, dword [0x459704]
mov edi, dword [edi]
cmp esi, dword [edi + ecx*8 + 4]
jne 0x42ce0c
mov ebx, edx
jmp 0x42ce10
inc edx
dec eax
jne 0x42cdf7
lea eax, [ebx + ebx*2]
mov edx, dword [0x459704]
mov edx, dword [edx]
mov edx, dword [edx + eax*8 + 0xc]
mov ecx, dword [0x459704]
mov ecx, dword [ecx]
sub edx, dword [ecx + eax*8 + 0x14]
cmp edx, dword [ebp - 8]
jae 0x42ce37
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
jmp 0x42ce3f
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [edx], ecx
mov edx, dword [0x459704]
mov edx, dword [edx]
mov eax, dword [edx + eax*8 + 0x10]
lea edx, [ebx + ebx*2]
mov ecx, dword [0x459704]
mov ecx, dword [ecx]
add eax, dword [ecx + edx*8 + 0x14]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 4]
call fcn.00404040
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x42ce7c
inc eax
xor byte [edx], 0xff
inc edx
dec eax
jne 0x42ce75
lea eax, [ebx + ebx*2]
mov edx, dword [0x459704]
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
add dword [edx + eax*8 + 0x14], ecx
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x42e85c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42e881
mov eax, dword [ebp - 4]
call fcn.00406ea8
jmp 0x42e883
xor eax, eax
mov edi, eax
xor eax, eax
mov ebx, dword [ebp + 8]
jmp 0x42e898
inc eax
jmp 0x42e892
add ebx, 2
cmp word [ebx], 0
jne 0x42e88f
cmp word [ebx], 0
jne 0x42e88c
sub ebx, dword [ebp + 8]
sar ebx, 1
jns 0x42e8a8
adc ebx, 0
inc ebx
add ebx, edi
mov edx, ebx
add edx, edx
imul edx, eax
mov eax, edx
call fcn.00403e9c
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
jmp 0x42e8f4
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0041c24c
mov eax, edi
add eax, eax
add eax, esi
mov edx, ebx
call fcn.0041c328
mov eax, edi
add eax, eax
add esi, eax
jmp 0x42e8eb
add ebx, 2
add esi, 2
cmp word [ebx], 0
jne 0x42e8e5
add esi, 2
cmp word [ebx], 0
jne 0x42e8c4
mov word [esi], 0
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0042f5d8
mov ebx, eax
mov eax, dword [ebp - 0x10]
call fcn.00403eb8
mov eax, dword [ebp - 8]
mov word [eax], 0x2a
mov eax, dword [ebp - 8]
mov word [eax + 2], 0
lea eax, [ebp - 0x260]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov esi, eax
mov eax, dword [ebp - 8]
mov word [eax], 0
cmp esi, 0xffffffff
je 0x42e9e0
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 8]
call fcn.0041c328
test byte [ebp - 0x260], 0x10
je 0x42e9c5
mov edx, 0x42e9ec
lea eax, [ebp - 0x234]
call fcn.004151c8
test eax, eax
je 0x42e9c5
mov edx, 0x42e9f0
lea eax, [ebp - 0x234]
call fcn.004151c8
test eax, eax
je 0x42e9c5
mov eax, dword [ebp - 8]
call fcn.0041c44c
mov ebx, eax
add ebx, 2
mov word [ebx], 0x5c
add ebx, 2
mov word [ebx], 0
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042e85c
mov ebx, eax
lea eax, [ebp - 0x260]
push eax
push esi
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x42e951
push esi
call sub.kernel32.dll_FindClose_1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x438f8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x438fde
test eax, edx
je 0x438fe1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x438fa1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x438fc7
add ecx, 4
js 0x438fb7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x438fc4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x438fed
test edx, edx
jne 0x438f94
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x44a884
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x4574c8
test edx, edx
jne 0x44a8a3
xor eax, eax
jmp 0x44a9c1
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x44a8c0
push esi
push edx
push eax
call fcn.0044a9c8
add esp, 0xc
jmp 0x44a9c1
push esi
push edx
push eax
call fcn.0044ac88
add esp, 0xc
jmp 0x44a9c1
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44c0d4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edx, eax
mov ecx, edx
mov ebx, dword [ecx + 0x3c]
add ebx, edx
mov edx, ebx
cmp word [ecx], 0x5a4d
jne 0x44c0fd
cmp dword [edx], 0x4550
je 0x44c104
mov eax, 1
jmp 0x44c150
mov eax, edx
add eax, 0xf8
xor ecx, ecx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
movzx esi, word [edx + 6]
dec esi
test esi, esi
jl 0x44c131
inc esi
mov edi, dword [eax + 0x14]
cmp ecx, edi
jae 0x44c12b
mov ecx, edi
add edi, dword [eax + 0x10]
mov dword [ebp - 0xc], edi
add eax, 0x28
dec esi
jne 0x44c11c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
lea eax, [edx + 0x98]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x44c171
add esp, 0xfffffff0
call fcn.00405858
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
test esi, esi
jbe 0x44c2a4
cmp dword [ebp + 8], 0
jne 0x44c191
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp + 8], eax
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x44c1c7
mov eax, ebx
call fcn.0044bc20
mov ecx, 0x44c2d4
mov dl, 1
mov eax, dword [0x44b2a0]
call fcn.00419c0c
call fcn.00406154
push 0
push 0
push 0
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
jne 0x44c1fe
mov eax, ebx
call fcn.0044bc20
mov ecx, 0x44c2fc
mov dl, 1
mov eax, dword [0x44b2a0]
call fcn.00419c0c
call fcn.00406154
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
mov eax, dword [ebx + 4]
call fcn.0044c0d4
test eax, eax
jne 0x44c220
cmp dword [ebp - 0xc], 0
jbe 0x44c220
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
or ecx, 0xffffffff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edx, 5
sub edx, eax
jl 0x44c249
inc edx
mov esi, dword [ebx + 4]
add esi, eax
mov esi, dword [esi]
inc esi
cmp esi, 0x4034b51
jne 0x44c245
mov ecx, eax
jmp 0x44c249
inc eax
dec edx
jne 0x44c231
test ecx, ecx
jge 0x44c273
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub edx, 5
sub edx, eax
jl 0x44c273
inc edx
mov esi, dword [ebx + 4]
add esi, eax
mov esi, dword [esi]
inc esi
cmp esi, 0x6054b51
jne 0x44c26f
mov ecx, eax
jmp 0x44c273
inc eax
dec edx
jne 0x44c25b
test ecx, ecx
jge 0x44c294
mov eax, ebx
call fcn.0044bc20
mov ecx, 0x44c328
mov dl, 1
mov eax, dword [0x44b2a0]
call fcn.00419c0c
call fcn.00406154
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebx + 4]
xor edx, edx
mov eax, ebx
call fcn.0044bc70
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c2bb
call fcn.004058b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa8
lea edi, [esp + 8]
mov dword [esp + 0xc], 0x80000002
mov dword [esp + 0x10], 0x80000001
cmp byte [0x459586], 0
je 0x44d58b
mov byte [0x459584], 1
mov ebp, 2
lea esi, [esp + 0xc]
push esp
push 0x44d730
mov eax, dword [esi]
push eax
call sub.advapi32.dll_RegOpenKeyW
test eax, eax
jne 0x44d71a
xor eax, eax
mov dword [edi], eax
lea ebx, [esp + 0x18]
mov dword [esp + 4], 0x40
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d77c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d5fd
cmp dword [edi], 4
jne 0x44d5e8
cmp dword [ebx], 0
setne al
mov byte [0x45956e], al
jmp 0x44d5fd
cmp dword [edi], 1
jne 0x44d5fd
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x45956e], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d79c
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d640
cmp dword [edi], 4
jne 0x44d62b
cmp dword [ebx], 0
setne al
mov byte [0x459584], al
jmp 0x44d640
cmp dword [edi], 1
jne 0x44d640
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x459584], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d7c0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d683
cmp dword [edi], 4
jne 0x44d66e
cmp dword [ebx], 0
setne al
mov byte [0x459585], al
jmp 0x44d683
cmp dword [edi], 1
jne 0x44d683
push ebx
call sub.msvcrt.dll__wtol
pop ecx
dec eax
sete al
mov byte [0x459585], al
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d7e4
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d6ca
cmp dword [edi], 4
jne 0x44d6af
movzx eax, word [ebx]
mov word [0x45958c], ax
jmp 0x44d6ca
cmp dword [edi], 1
jne 0x44d6ca
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x45958c], ax
lea eax, [esp + 4]
push eax
push ebx
push edi
push 0
push 0x44d800
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x44d711
cmp dword [edi], 4
jne 0x44d6f6
movzx eax, word [ebx]
mov word [0x45958e], ax
jmp 0x44d711
cmp dword [edi], 1
jne 0x44d711
push 0
lea eax, [esp + 0x18]
push eax
push ebx
call sub.msvcrt.dll_wcstol
add esp, 0xc
mov word [0x45958e], ax
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
add esi, 4
dec ebp
jne 0x44d594
mov al, 1
add esp, 0x58
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44e66c
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x472d90]
mov ecx, 0x40
call fcn.00404040
mov dword [0x472cdc], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x472cdc
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x44e69a
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x472cdc]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.0044e518
mov esi, eax
mov dword [ebx*4 + 0x472cdc], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.0044e518
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x44e70a
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x44e6ba
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44ecb8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x44ecc1
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push esi
xor ecx, ecx
mov dword [ebp - 0x2010], ecx
mov dword [ebp - 0x200c], ecx
mov dword [ebp - 0x2008], ecx
mov dword [ebp - 0x2004], ecx
mov esi, edx
xor edx, edx
push ebp
push 0x44ede2
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, 0x1000
lea edx, [ebp - 0x2000]
mov word [edx], 0x20
add edx, 2
dec ecx
jne 0x44ed07
sub eax, 1
jb 0x44ed21
je 0x44ed57
dec eax
je 0x44ed90
jmp 0x44edaa
lea eax, [ebp - 0x2000]
push eax
push 0x1000
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x2004]
lea edx, [ebp - 0x2000]
mov ecx, 0x1000
call fcn.00406b14
mov eax, dword [ebp - 0x2004]
mov edx, esi
call fcn.00414170
jmp 0x44edaa
lea eax, [ebp - 0x2000]
push eax
push 0
push 0
push 0x1c
push 0
call sub.SHFolder.dll_SHGetFolderPathW
lea eax, [ebp - 0x2008]
lea edx, [ebp - 0x2000]
mov ecx, 0x1000
call fcn.00406b14
mov eax, dword [ebp - 0x2008]
mov edx, esi
call fcn.00414170
jmp 0x44edaa
lea edx, [ebp - 0x200c]
xor eax, eax
call fcn.004041fc
mov eax, dword [ebp - 0x200c]
mov edx, esi
call fcn.00414f34
lea edx, [ebp - 0x2010]
mov eax, dword [esi]
call fcn.0041adbc
mov edx, dword [ebp - 0x2010]
mov eax, esi
call fcn.00406d6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ede9
lea eax, [ebp - 0x2010]
mov edx, 4
call fcn.00406a1c
ret
Function at 0x401170
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4011a5
mov al, 0x64
pop edi
add esp, 0x94
ret
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x18]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
pop esi
je 0x4011ff
dec eax
jne 0x40122e
cmp dword [esp + 8], 5
jne 0x40122e
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x4011f1
mov al, 0x28
pop edi
add esp, 0x94
ret
test eax, eax
jne 0x40122e
mov al, 0x1e
pop edi
add esp, 0x94
ret
cmp dword [esp + 8], 4
jne 0x40122e
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x401218
xor al, al
pop edi
add esp, 0x94
ret
cmp eax, 0xa
jne 0x401227
mov al, al
pop edi
add esp, 0x94
ret
cmp eax, 0x5a
mov al, 0x14
je 0x401230
mov al, 0x50
pop edi
add esp, 0x94
ret

Function at 0x401240
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x401280
push eax
push str.Open_Key_Winlogon__Fail___RC_d
call fcn.00406127
add esp, 8
mov eax, 1
pop esi
pop ecx
ret
mov esi, dword [esp + 4]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push str.SFCDisable
push esi
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4012c8
push eax
push str.SetValue_SFCDisable__Fail___RC_d
call fcn.00406127
add esp, 8
test esi, esi
je 0x4012c0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 2
pop esi
pop ecx
ret
test esi, esi
je 0x4012d3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4018d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x40191c
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
jne 0x40191c
pop edi
mov al, 0x64
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
dec eax
je 0x401950
dec eax
jne 0x401981
cmp dword [esp + 0xc], 5
jne 0x401981
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x401941
pop edi
mov al, 0x28
pop esi
add esp, 0x9c
ret
test eax, eax
jne 0x401981
pop edi
mov al, 0x1e
pop esi
add esp, 0x9c
ret
cmp dword [esp + 0xc], 4
jne 0x401981
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40196a
pop edi
xor al, al
pop esi
add esp, 0x9c
ret
cmp eax, 0xa
jne 0x40197a
pop edi
mov al, al
pop esi
add esp, 0x9c
ret
cmp eax, 0x5a
mov al, 0x14
je 0x401983
mov al, 0x50
pop edi
pop esi
add esp, 0x9c
ret