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

Disassembly:
push 0xffffffffffffffff
push 0x407f47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov dword [esp + 0x14], 0
lea ecx, [esp + 4]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x40d914]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
mov byte [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405be8
push edi
push 0x80
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::GetBuffer
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push eax
push edx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
test esi, esi
jne 0x405bd8
push 0x80
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::GetBuffer
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x38]
push edx
push esi
push eax
push ecx
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
je 0x405bf6
push 0x40d840
lea ecx, [esp + 8]
call fcn.00406ed8
mov esi, dword [esp + 0x28]
lea eax, [esp + 4]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x14], 1
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call fcn.00406ecc
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.00406ecc
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x405c40
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x407f68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
mov edx, dword [0x40d914]
lea eax, [esp + 8]
lea ecx, [esp + 4]
xor ebx, ebx
push eax
push ecx
push ebx
push 0xf003f
push ebx
push str.Samsung_Integrated_Downloader
push ebx
push edx
push 0x80000002
mov dword [esp + 0xb8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x405cf1
push esi
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0xa4]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
cmp eax, ebx
pop esi
jne 0x405ce6
mov ebx, 1
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x9c]
call fcn.00406ecc
lea ecx, [esp + 0xa0]
mov dword [esp + 0x94], 0xffffffff
call fcn.00406ecc
mov ecx, dword [esp + 0x8c]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x94
ret
Function at 0x4064d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40809b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40a0b0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x406560
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x406527
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x406551
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x406566
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x406566
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x409ef8
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x4095b8
mov dword [esp + 0x1c], 0xffffffff
call fcn.004071ae
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x41101e
Capabilities:
Terminate process

Disassembly:
jmp 0x4132d0
jmp fcn.00413310
cmp ecx, dword [0x417060]
jne 0x4132da
repz ret
jmp 0x411096

Function at 0x401b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor edx, edx
cmp edi, 4
jle 0x401b74
lea esi, [edi - 1]
mov ecx, dword [esp + 0x10]
shr esi, 2
mov eax, esi
push ebx
neg eax
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x18]
mov ebx, dword [ecx]
mov ebp, dword [eax]
xor ebx, ebp
mov ebp, dword [eax + 4]
add eax, 4
add ecx, 4
or edx, ebx
add eax, 4
mov ebx, dword [ecx]
add ecx, 4
xor ebx, ebp
mov ebp, dword [eax]
or edx, ebx
mov ebx, dword [ecx]
xor ebx, ebp
mov ebp, dword [eax + 4]
add eax, 4
add ecx, 4
or edx, ebx
add eax, 4
mov ebx, dword [ecx]
add ecx, 4
xor ebx, ebp
or edx, ebx
dec esi
jne 0x401b34
pop ebx
jmp 0x401b7c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test edi, edi
jle 0x401b93
mov esi, edi
mov edi, dword [ecx]
mov ebp, dword [eax]
xor edi, ebp
add eax, 4
or edx, edi
add ecx, 4
dec esi
jne 0x401b82
xor eax, eax
pop edi
test edx, edx
pop esi
pop ebp
setne al
ret
Function at 0x402798
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404410
test esi, esi
jne 0x4027ce
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044d4
jmp 0x4027ec
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040264c
mov edi, eax
test esi, esi
je 0x4027ec
cmp dword [ebx], 0
je 0x4027ec
dec esi
jmp 0x4027d5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402dd8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x48b008], 0x8088405
inc edx
mov dword [ebx + 0x48b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4039cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x48b010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a44
xor eax, eax
push ebp
push 0x403a3d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403a80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x48b010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x48b010], ax
mov esp, ebp
pop ebp
ret

Function at 0x404294
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48e034], 0
je 0x4042f5
cmp word [0x48e208], 0xd7b2
jne 0x4042bd
cmp dword [0x48e210], 0
jbe 0x4042bd
mov eax, 0x48e204
call dword [0x48e220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48b080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40431c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48b01c], 0
jne 0x404311
push 0
push 0x48b0a0
push 0x48b080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406564
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xffffffe8
mov byte [esp + 4], dl
mov dword [esp], eax
mov cl, 0x10
mov eax, 0x48b650
mov edx, 0x48e724
lea esi, [esp + 5]
mov bl, byte [eax]
xor bl, byte [edx]
mov byte [esi], bl
inc esi
inc edx
inc eax
dec cl
jne 0x406580
push 0
lea ecx, [esp + 9]
mov edx, dword [fcn.00406564]
xor eax, eax
call fcn.00406858
mov ebx, eax
cmp byte [esp + 4], 0
jne 0x4065c3
push 0
mov eax, dword [esp + 4]
call fcn.00405bdc
mov ecx, eax
mov eax, ebx
mov edx, dword [esp + 4]
call fcn.004068b0
jmp 0x4065db
push 0
mov eax, dword [esp + 4]
call fcn.00405bdc
mov ecx, eax
mov eax, ebx
mov edx, dword [esp + 4]
call fcn.00406944
mov edx, 0x2c
mov eax, ebx
call fcn.00402508
add esp, 0x18
pop esi
pop ebx
ret
Function at 0x4065f0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x406669
mov eax, 0x7fffffff
call fcn.00402dd8
lea edx, [ebp - 0x38]
mov dword [edx], eax
lea eax, [ebp - 8]
push eax
call sub.user32.dll_GetCursorPos
lea eax, [ebp - 0x34]
mov dx, word [ebp - 8]
mov word [eax], dx
lea eax, [ebp - 0x32]
mov dx, word [ebp - 4]
mov word [eax], dx
mov dword [ebp - 0x28], 0x20
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0xc]
lea edx, [ebp - 0x30]
mov dword [edx], eax
call sub.kernel32.dll_GetTickCount
lea edx, [ebp - 0x2c]
mov dword [edx], eax
lea eax, [ebp - 0x58]
push eax
lea edx, [ebp - 0x38]
mov eax, ebx
mov ecx, 0x10
call fcn.004069cc
jmp 0x406678
lea eax, [ebp - 0x58]
mov ecx, 0x10
mov edx, esi
call fcn.00405a94
lea eax, [ebp - 0x48]
push eax
mov edx, dword [ebx + 0x28]
mov eax, ebx
mov ecx, 0x10
call fcn.004069cc
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x58]
mov eax, ebx
mov ecx, 0x20
call fcn.004069cc
test esi, esi
jne 0x4066b2
lea edx, [ebp - 0x58]
mov ecx, 0x10
mov eax, dword [ebp + 8]
call fcn.00405a94
lea edx, [ebp - 0x68]
mov ecx, 0x10
mov eax, edi
call fcn.00405a94
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4068b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x27], 0
je 0x4068ec
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x16
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004065f0
mov eax, dword [ebp - 4]
call fcn.00406880
mov eax, dword [ebp - 4]
mov byte [eax + 0x27], 0
dec ebx
test ebx, ebx
jl 0x406939
inc ebx
mov dword [ebp - 0x10], ebx
xor esi, esi
mov eax, dword [ebp - 8]
add eax, esi
mov bl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.0040673c
mov word [ebp - 0xa], ax
mov edx, 0x10
mov eax, dword [ebp - 4]
add eax, 0x16
xor byte [eax], bl
inc eax
dec edx
jne 0x406915
movzx eax, word [ebp - 0xa]
shr eax, 8
mov dl, byte [ebp - 0xa]
and dl, 0xff
xor al, dl
xor bl, al
mov eax, dword [ebp - 8]
add eax, esi
mov byte [eax], bl
inc esi
dec dword [ebp - 0x10]
jne 0x4068f7
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x27], 0
je 0x40697f
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x16
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
call fcn.004065f0
mov eax, dword [ebp - 4]
call fcn.00406880
mov eax, dword [ebp - 4]
mov byte [eax + 0x27], 0
dec ebx
test ebx, ebx
jl 0x4069c1
inc ebx
mov dword [ebp - 0xc], ebx
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.0040673c
movzx ecx, ax
shr ecx, 8
and al, 0xff
xor cl, al
mov eax, dword [ebp - 8]
add eax, esi
xor cl, byte [eax]
mov edx, 0x10
mov eax, dword [ebp - 4]
add eax, 0x16
xor byte [eax], cl
inc eax
dec edx
jne 0x4069ae
mov eax, dword [ebp - 8]
add eax, esi
mov byte [eax], cl
inc esi
dec dword [ebp - 0xc]
jne 0x40698a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4069cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov word [eax], 0
mov eax, dword [ebp - 4]
mov word [eax + 2], 0
mov eax, dword [ebp - 4]
mov word [eax + 4], 0
mov edx, 0x48b640
mov eax, dword [ebp - 4]
add eax, 0x16
mov ecx, 0x10
call fcn.00405a94
mov byte [ebp - 0xe], 0x10
mov byte [ebp - 0xd], 0
xor edx, edx
mov dl, byte [ebp - 0xe]
lea eax, [ebp - 0x24]
call fcn.00405a9c
dec ebx
test ebx, ebx
jl 0x406a82
inc ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov bl, byte [eax]
mov eax, dword [ebp - 4]
call fcn.0040673c
mov esi, eax
mov eax, 0x10
mov edx, dword [ebp - 4]
add edx, 0x16
xor byte [edx], bl
inc edx
dec eax
jne 0x406a4d
movzx eax, si
shr eax, 8
mov edx, esi
and dl, 0xff
xor al, dl
xor bl, al
xor eax, eax
mov al, byte [ebp - 0xd]
xor byte [ebp + eax - 0x24], bl
inc byte [ebp - 0xd]
mov al, byte [ebp - 0xd]
cmp al, byte [ebp - 0xe]
jb 0x406a7a
mov byte [ebp - 0xd], 0
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x406a30
xor eax, eax
mov al, byte [ebp - 0xe]
inc eax
add eax, eax
lea eax, [eax + eax*4]
test eax, eax
jle 0x406ae4
mov dword [ebp - 0x14], eax
xor eax, eax
mov al, byte [ebp - 0xd]
mov bl, byte [ebp + eax - 0x24]
mov eax, dword [ebp - 4]
call fcn.0040673c
mov esi, eax
mov eax, 0x10
mov edx, dword [ebp - 4]
add edx, 0x16
xor byte [edx], bl
inc edx
dec eax
jne 0x406ab2
movzx eax, si
shr eax, 8
mov edx, esi
and dl, 0xff
xor al, dl
xor bl, al
xor eax, eax
mov al, byte [ebp - 0xd]
xor byte [ebp + eax - 0x24], bl
inc byte [ebp - 0xd]
mov al, byte [ebp - 0xd]
cmp al, byte [ebp - 0xe]
jb 0x406adf
mov byte [ebp - 0xd], 0
dec dword [ebp - 0x14]
jne 0x406a94
xor ecx, ecx
mov cl, byte [ebp - 0xe]
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
call fcn.00405a94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4095e8
Capabilities:
Hash data with md5

Disassembly:
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x40a118
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test ecx, ecx
jbe 0x40a147
mov ebx, dword [eax]
movzx esi, byte [edx]
xor ebx, esi
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x48f874]
mov esi, dword [eax]
shr esi, 8
and esi, 0xffffff
xor ebx, esi
mov dword [eax], ebx
inc edx
dec ecx
test ecx, ecx
ja 0x40a11e
pop esi
pop ebx
ret

Function at 0x40a1c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x48b914], 0
je 0x40a1d7
call fcn.0040a0a4
xor ebx, 0xffffffff
mov eax, edi
test eax, eax
jbe 0x40a1fc
mov edx, ebx
xor dl, byte [esi]
and edx, 0xff
mov edx, dword [edx*4 + 0x48f874]
shr ebx, 8
xor edx, ebx
mov ebx, edx
inc esi
dec eax
jne 0x40a1e0
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret

Function at 0x40a210
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
test ecx, ecx
jbe 0x40a23f
xor ebx, ebx
mov bl, byte [edx]
xor bx, word [eax]
and bx, 0xff
movzx ebx, bx
mov bx, word [ebx*2 + 0x48b918]
movzx esi, word [eax]
shr esi, 8
xor bx, si
mov word [eax], bx
inc edx
dec ecx
test ecx, ecx
ja 0x40a216
pop esi
pop ebx
ret

Function at 0x40a410
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffea8
mov dword [esp], eax
lea edi, [esp + 4]
mov edx, edi
mov eax, dword [esp]
mov ecx, 0x14
call fcn.0040260c
xor esi, esi
lea ebx, [esp + 0x18]
mov eax, dword [esp]
add eax, 0x28
mov edx, esi
shl edx, 2
add eax, edx
mov eax, dword [eax]
call fcn.00409598
mov dword [ebx], eax
inc esi
add ebx, 4
cmp esi, 0x10
jne 0x40a436
mov esi, 0x40
lea ebx, [esp + 0x4c]
mov eax, dword [ebx]
xor eax, dword [ebx - 0x14]
xor eax, dword [ebx - 0x2c]
xor eax, dword [ebx - 0x34]
mov dl, 1
call fcn.00409590
mov dword [ebx + 0xc], eax
add ebx, 4
dec esi
jne 0x40a45e
xor esi, esi
lea ebp, [esp + 0x18]
mov eax, dword [edi + 0xc]
push eax
mov ebx, esi
mov eax, ebx
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
call fcn.0040a3a8
push eax
mov dl, 5
mov eax, dword [edi]
call fcn.00409590
pop edx
add edx, eax
add edx, dword [edi + 0x10]
push edx
mov eax, ebx
call fcn.0040a3ec
pop edx
add edx, eax
add edx, dword [ebp]
mov ebx, edx
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 8]
mov dword [edi + 0xc], eax
mov dl, 0x1e
mov eax, dword [edi + 4]
call fcn.00409590
mov dword [edi + 8], eax
mov eax, dword [edi]
mov dword [edi + 4], eax
mov dword [edi], ebx
inc esi
add ebp, 4
cmp esi, 0x50
jne 0x40a47f
mov esi, 5
mov eax, edi
mov edx, dword [esp]
mov ecx, dword [eax]
add dword [edx], ecx
add edx, 4
add eax, 4
dec esi
jne 0x40a4e5
add esp, 0x158
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40a61c
Capabilities:
Hash data using sha1

Disassembly:
xor edx, edx
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x20], edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x40a64c
Capabilities:
Hash data using sha256

Disassembly:
xor edx, edx
mov dword [eax + 0x24], edx
xor edx, edx
mov dword [eax + 0x20], edx
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
ret

Function at 0x40aa5c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
test al, al
je 0x40aab3
mov word [0x48fc7c], 0
mov word [0x48fc7e], 0
mov word [0x48fc80], 0
mov edx, dword [0x48d538]
mov eax, 0x48fc94
mov ecx, 0x10
call fcn.00405a94
lea eax, [ebp - 0x2c]
mov edx, 0x20
call fcn.00405a9c
mov byte [0x48fca4], 0
jmp 0x40aac3
lea eax, [ebp - 0x2c]
mov ecx, 0x20
mov edx, dword [ebp + 0xc]
call fcn.00405a94
dec ebx
test ebx, ebx
jl 0x40ab2a
inc ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov bl, byte [eax]
call fcn.0040a948
mov esi, eax
mov edx, 0x10
mov eax, 0x48fc94
xor byte [eax], bl
inc eax
dec edx
jne 0x40aaec
movzx eax, si
shr eax, 8
mov edx, esi
and dl, 0xff
xor al, dl
xor bl, al
xor eax, eax
mov al, byte [0x48fca4]
xor byte [ebp + eax - 0x2c], bl
inc byte [0x48fca4]
cmp byte [0x48fca4], 0x20
jb 0x40ab22
mov byte [0x48fca4], 0
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x40aad3
lea edx, [ebp - 0x2c]
mov ecx, 0x20
mov eax, dword [ebp + 8]
call fcn.00405a94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40ab44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov dword [esp], edx
lea edx, [esp + 4]
mov ecx, 0x20
xchg edx, eax
call fcn.00405a94
mov esi, 0x14a
xor eax, eax
mov al, byte [0x48fca4]
mov bl, byte [esp + eax + 4]
call fcn.0040a948
mov edi, eax
mov edx, 0x10
mov eax, 0x48fc94
xor byte [eax], bl
inc eax
dec edx
jne 0x40ab7d
movzx eax, di
shr eax, 8
mov edx, edi
and dl, 0xff
xor al, dl
xor bl, al
xor eax, eax
mov al, byte [0x48fca4]
xor byte [esp + eax + 4], bl
inc byte [0x48fca4]
cmp byte [0x48fca4], 0x20
jb 0x40abb3
mov byte [0x48fca4], 0
dec esi
jne 0x40ab61
lea edx, [esp + 4]
mov ecx, 0x20
mov eax, dword [esp]
call fcn.00405a94
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x40abd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov word [0x48fc7c], 0
mov word [0x48fc7e], 0
mov word [0x48fc80], 0
mov byte [ebp - 0x11], 0
mov eax, 0x48fc94
mov ecx, 0x10
mov edx, dword [ebp - 8]
call fcn.00405a94
lea eax, [ebp - 0x38]
mov edx, 0x20
call fcn.00405a9c
dec ebx
test ebx, ebx
jl 0x40ac7a
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov bl, byte [eax]
call fcn.0040a948
mov esi, eax
mov eax, 0x10
mov edx, 0x48fc94
xor byte [edx], bl
inc edx
dec eax
jne 0x40ac47
movzx eax, si
shr eax, 8
mov edx, esi
and dl, 0xff
xor al, dl
xor bl, al
xor eax, eax
mov al, byte [ebp - 0x11]
xor byte [ebp + eax - 0x38], bl
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x20
jb 0x40ac72
mov byte [ebp - 0x11], 0
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x40ac2e
mov dword [ebp - 0x10], 0x14a
xor eax, eax
mov al, byte [ebp - 0x11]
mov bl, byte [ebp + eax - 0x38]
call fcn.0040a948
mov esi, eax
mov eax, 0x10
mov edx, 0x48fc94
xor byte [edx], bl
inc edx
dec eax
jne 0x40ac9b
movzx eax, si
shr eax, 8
mov edx, esi
and dl, 0xff
xor al, dl
xor bl, al
xor eax, eax
mov al, byte [ebp - 0x11]
xor byte [ebp + eax - 0x38], bl
inc byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0x20
jb 0x40acc6
mov byte [ebp - 0x11], 0
dec dword [ebp - 0x10]
jne 0x40ac81
lea edx, [ebp - 0x38]
mov ecx, 0x20
mov eax, dword [ebp + 8]
call fcn.00405a94
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ace4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffff4c
mov dword [esp], ecx
mov esi, edx
mov ebx, eax
lea eax, [esp + 4]
mov edx, 0xb0
call fcn.00405a9c
mov dl, 1
mov eax, ebx
call fcn.00406564
lea eax, [esp + 4]
push eax
mov ecx, dword [0x48d538]
mov edx, 0x10
mov eax, ebx
call fcn.0040abd0
mov edx, 0x10
lea eax, [esp + 4]
lea edi, [esp + 0x64]
mov cl, byte [eax]
xor cl, byte [eax + 0x10]
mov byte [edi], cl
inc edi
inc eax
dec edx
jne 0x40ad2f
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x68]
mov edx, 0x10
mov eax, ebx
call fcn.0040abd0
mov edx, 0x10
lea eax, [esp + 0x24]
lea edi, [esp + 0x74]
mov cl, byte [eax]
xor cl, byte [eax + 0x10]
mov byte [edi], cl
inc edi
inc eax
dec edx
jne 0x40ad5d
lea eax, [esp + 0x84]
mov ecx, 0x10
mov edx, esi
call fcn.00405a94
lea edx, [esp + 0x24]
lea eax, [esp + 0x94]
mov ecx, 0x20
call fcn.00405a94
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x78]
lea eax, [esp + 0x88]
mov edx, 0x30
call fcn.0040abd0
lea edx, [esp + 0x44]
mov ecx, 0x20
mov eax, dword [esp]
call fcn.00405a94
xor edx, edx
mov eax, ebx
call fcn.00406564
lea eax, [esp + 4]
mov edx, 0xb0
call fcn.00405a9c
add esp, 0xb4
pop edi
pop esi
pop ebx
ret
Function at 0x40f448
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
add esp, 0xffffffe4
mov esi, eax
cmp byte [0x4947ff], 0
jne 0x40f48e
call sub.kernel32.dll_GetTickCount
mov ebx, eax
jmp 0x40f483
push 1
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x40f483
push esp
call sub.user32.dll_TranslateMessage
push esp
call sub.user32.dll_DispatchMessageA
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp esi, eax
ja 0x40f461
add esp, 0x1c
pop esi
pop ebx
ret

Function at 0x40f9c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, eax
xor ebx, ebx
push esp
push 0x40fa0c
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x40fa05
mov dword [esp + 4], 0xff
lea eax, [esp + 4]
push eax
push esi
push 0
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x40fa05
mov bl, 1
mov eax, ebx
pop ecx
pop edx
pop esi
pop ebx
ret