joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d60c
Capabilities:
Check for time delay via gettickcount
Get number of processors
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
mov dword [ebp - 4], eax
mov esi, dword [0x4c44dc]
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 1
xor eax, eax
push ebp
push 0x46d7e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004657dc
add dword [ebp - 0xc], 4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00466a04
mov eax, dword [esi]
call fcn.0045c2a4
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
add edx, dword [ebp - 0x14]
cmp eax, edx
jge 0x46d67e
mov eax, dword [esi]
call fcn.0045c2a4
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
call fcn.0045c2b0
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
add edx, dword [ebp - 0x18]
cmp eax, edx
jge 0x46d6a2
mov eax, dword [esi]
call fcn.0045c2b0
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.0045c298
cmp eax, dword [ebp - 0x18]
jle 0x46d6b8
mov eax, dword [esi]
call fcn.0045c298
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
call fcn.0045c28c
cmp eax, dword [ebp - 0xc]
jle 0x46d6ce
mov eax, dword [esi]
call fcn.0045c28c
mov dword [ebp - 0xc], eax
push 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
call fcn.0046bf94
push eax
call sub.user32.dll_SetWindowPos
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x214]
cmp eax, 0xfa
jbe 0x46d795
mov eax, ebx
call fcn.00405028
cmp eax, 0x64
jge 0x46d795
cmp dword [0x4c0f1c], 0
je 0x46d795
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1016
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x46d795
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x1018
call sub.user32.dll_SystemParametersInfoA
cmp dword [ebp - 8], 0
je 0x46d758
mov bl, 2
jmp 0x46d773
lea edx, [ebp - 0x20]
mov eax, dword [0x4c5b74]
call fcn.004708a4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jle 0x46d771
xor ebx, ebx
jmp 0x46d773
mov bl, 1
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x4c1024]
or eax, 0x40000
push eax
push 0x64
mov eax, dword [ebp - 4]
call fcn.0046bf94
push eax
call dword [0x4c0f1c]
mov eax, dword [0x4c42f8]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 4]
call fcn.004696c8
push 4
mov eax, dword [ebp - 4]
call fcn.0046bf94
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x7c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d7ec
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x210], 0
ret
Function at 0x4709b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4c4504]
cmp byte [eax + 0xc], 0
je 0x470b21
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470b1a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c5bc8], 0
jne 0x470a08
push 0x470b28
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x470b30
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5bc8], eax
cmp dword [0x4c104c], 0
jne 0x470b03
push 0x470b40
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4c104c], eax
cmp dword [0x4c104c], 0
je 0x470b03
push 0x470b4c
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5bcc], eax
push 0x470b5c
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5bd0], eax
push 0x470b70
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5bd4], eax
push 0x470b88
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5bd8], eax
push 0x470ba0
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5bdc], eax
push 0x470bb4
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5be0], eax
push 0x470bcc
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5be4], eax
push 0x470be4
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5be8], eax
push 0x470c00
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5bec], eax
push 0x470c0c
mov eax, dword [0x4c104c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c5bf0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470b21
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x475368
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404d58
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4753b7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404fd8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47aea8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x418b1c]
call fcn.00405ae0
xor eax, eax
push ebp
push 0x47afec
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c1164], 0
jne 0x47aefb
mov ecx, dword [0x4c3ee8]
mov dl, 1
mov eax, dword [0x4088a8]
call fcn.0040e8a4
call fcn.004046a0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.004035a8
mov eax, ebx
call fcn.00405700
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x47affc
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406b20
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405710
test eax, eax
jle 0x47af93
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x47af8c
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404ff0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404fd8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409864
test eax, eax
jne 0x47af8c
mov ebx, 0x15
jmp 0x47af98
mov ebx, 0x10
jmp 0x47af98
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4c1164]
call fcn.0047ae00
mov eax, dword [ebp - 8]
call fcn.0047ae00
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406b38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47aff3
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404d7c
lea eax, [ebp - 0x10]
mov edx, dword [0x418b1c]
call fcn.00405bb0
ret

Function at 0x47c104
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x47c15e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4c3f88]
cmp byte [eax], 0
je 0x47c12e
push ebx
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x47c148
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404f90
mov eax, dword [ebp - 4]
call fcn.00405228
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c165
lea eax, [ebp - 4]
call fcn.00404d58
ret
Function at 0x47c384
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47c459
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4c3f88]
cmp byte [eax], 0
je 0x47c3dc
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405608
mov eax, dword [ebp - 4]
call fcn.0047bb54
push eax
push ebx
call sub.shell32.dll_ShellExecuteW
mov ebx, eax
jmp 0x47c436
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
mov edx, dword [ebp + 0xc]
call fcn.00404f90
mov eax, dword [ebp - 8]
call fcn.0047bb34
push eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 0x10]
call fcn.00404f90
mov eax, dword [ebp - 0xc]
call fcn.0047bb34
push eax
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404f90
mov eax, dword [ebp - 0x10]
call fcn.0047bb34
push eax
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00404f90
mov eax, dword [ebp - 0x14]
call fcn.0047bb34
push eax
push ebx
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c460
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404d7c
lea eax, [ebp - 4]
call fcn.004054b0
ret

Function at 0x47c67c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov edi, eax
xor esi, esi
mov eax, ebx
call fcn.00408200
cmp ax, 0xffff
jne 0x47c69d
neg ebx
mov eax, ebx
shr eax, 4
and eax, 0xffff
inc eax
and ebx, 0xf
push 6
push eax
push edi
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x47c729
push eax
push edi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x47c729
push edi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
mov eax, ebx
dec eax
test eax, eax
jl 0x47c6ea
inc eax
mov edx, dword [ebp - 8]
movzx edx, word [edx]
add edx, edx
add edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
dec eax
jne 0x47c6d6
mov eax, dword [ebp - 8]
movzx esi, word [eax]
add dword [ebp - 8], 2
cmp dword [ebp - 4], 0
je 0x47c729
cmp dword [ebp + 8], 0
jle 0x47c729
mov eax, dword [ebp + 8]
dec eax
mov edx, esi
call fcn.0042f478
mov esi, eax
test esi, esi
jle 0x47c720
mov ecx, esi
add ecx, ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408214
mov eax, dword [ebp - 4]
mov word [eax + esi*2], 0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x47d814
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x47d878
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404fd8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a090
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d87f
lea eax, [ebp - 0xc]
call fcn.00404d58
ret

Function at 0x47d924
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x47d980
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x47d94f
call fcn.0040fefc
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402d04
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x47d980
call fcn.0040fefc
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x48a4b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x48a634
push dword fs:[eax]
mov dword fs:[eax], esp
mov al, byte [ebx + 0x276]
sub al, 2
jb 0x48a619
cmp byte [ebx + 0x268], 0
je 0x48a619
mov eax, dword [ebp - 4]
call fcn.004901e8
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x48a612
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [ebp - 6]
sub ax, 8
je 0x48a556
dec ax
je 0x48a52c
sub ax, 0x12
jne 0x48a570
call fcn.0040474c
jmp 0x48a619
cmp byte [ebx + 0x269], 0
je 0x48a5f8
mov eax, ebx
call fcn.0045012c
test al, al
je 0x48a5f8
xor edx, edx
mov eax, ebx
call fcn.00450150
jmp 0x48a5f8
mov eax, dword [esi]
call fcn.00405710
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.004058fc
jmp 0x48a5f8
cmp byte [ebx + 0x269], 0
je 0x48a58d
mov eax, ebx
call fcn.0045012c
test al, al
jne 0x48a58d
mov dl, 1
mov eax, ebx
call fcn.00450150
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x48a5a5
mov eax, esi
call fcn.004054b0
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
mov dx, word [ebp - 6]
call fcn.004055c8
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.0040577c
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.0048a2e0
test al, al
je 0x48a5f8
lea eax, [ebp - 0x14]
mov dx, word [ebp - 6]
call fcn.004055c8
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.0040571c
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a619
mov eax, dword [ebp - 4]
mov dx, word [ebp - 6]
call fcn.0049021c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a63b
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004054c8
ret

Function at 0x48dd58
Capabilities:
Set global application hook

Disassembly:
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x48dcf8
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4c5fc0], eax
cmp dword [0x4c5fc0], 0
jne 0x48dd7f
call fcn.0040fefc
ret

Function at 0x48dfa0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004054b0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x48dfef
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00405668
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48dff4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
mov edi, eax
mov eax, ebx
add eax, 0xffffffd0
sub ax, 0xa
jae 0x48e02c
mov esi, ebx
sub si, 0x30
add si, 0x30
cmp si, di
je 0x48e02c
push esi
call sub.user32.dll_VkKeyScanW
cmp al, bl
jne 0x48e02c
mov edi, esi
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x494c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x494c7a
cmp dword [ebx + 0x64], 0
jne 0x494c7a
cmp dword [ebx + 0x6c], 0
jne 0x494c7a
mov edi, esi
jmp 0x494d01
cmp edi, 0xffffffff
jne 0x494c82
dec edi
jmp 0x494d01
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x494d01
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0049404c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x494ccf
mov cx, word [esp]
sub cx, si
jmp 0x494cd1
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x494cb8
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x494cf7
mov cx, word [esp]
sub cx, si
jmp 0x494cf9
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x494ce0
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x494d5e
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.004949ec
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x494d49
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x494d5e
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x494c5a
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49b024
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4c6010
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x49b046
shr eax, 1
xor eax, 0xedb88320
jmp 0x49b048
shr eax, 1
dec edx
jne 0x49b034
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x49b02d
mov byte [0x4c6410], 1
pop esi
pop ebx
ret
Function at 0x49b064
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4c6410], 0
jne 0x49b07b
call fcn.0049b024
mov eax, edi
dec eax
test eax, eax
jl 0x49b0a4
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4c6010]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x49b085
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x49d698
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x49d6c9
dec al
je 0x49d705
dec al
je 0x49d749
dec al
je 0x49d7b4
jmp 0x49d83e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x49d83e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49d6d9
jmp 0x49d83e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49d83e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49d715
jmp 0x49d83e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49d83e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x49d777
xor ebp, ebp
jmp 0x49d788
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x49d791
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49d759
jmp 0x49d83e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49d83e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x49d80c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0049b0ac
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49d7c8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a116c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a12d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4c3f88]
cmp byte [eax], 0
jne 0x4a11c7
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404ff0
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, ebx
call fcn.0043a458
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00405684
jmp 0x4a12ae
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00405700
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4a11f9
mov eax, esi
call fcn.004054b0
jmp 0x4a12ae
mov eax, dword [ebp - 4]
dec eax
sub eax, 2
jb 0x4a1230
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x4c4108]
call fcn.00406fe4
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x43a000]
call fcn.0040e824
call fcn.004046a0
cmp dword [ebp - 8], 1
jne 0x4a123d
mov dword [ebp - 8], 2
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, esi
call fcn.00405a78
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
call fcn.00405700
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.00405700
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x4a129e
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x4c4510]
call fcn.00406fe4
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x43a000]
call fcn.0040e824
call fcn.004046a0
mov eax, dword [esi]
call fcn.00405700
mov edx, eax
mov eax, esi
call fcn.00405608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a12dd
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404d7c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404d7c
ret