joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100115db
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10017030]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10017030]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
mov edi, edx
mov edx, dword [esp + 0x2c]
xor eax, eax
mov dword [edi + 0x28], 7
mov dword [edi + 0x24], 0
mov dword [esp + 0x14], edi
mov word [edi + 0x14], ax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
push ecx
mov dword [eax + 0xc], ebp
call fcn.0048b3d0
Function at 0x4035b9
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x154c
call fcn.0040f170
mov eax, dword [0x241d9a4]
mov ecx, dword [0x23ff6c4]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40367a
mov edi, ecx
mov ebx, eax
cmp dword [0x241d9a4], 0x959
jne 0x40366a
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push esi
lea eax, [ebp - 0xd48]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
lea eax, [ebp - 0x1548]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push esi
lea eax, [ebp - 0x548]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push 0x402e70
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
call fcn.004033d0
add edi, 8
dec ebx
jne 0x4035e5
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4053a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431230]
jne 0x4053ae
repz ret
jmp fcn.0040c25c

Function at 0x40edd8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040890c
and dword [ebp - 4], 0
cmp dword [0x43399c], 0
mov ebx, eax
jne 0x40ee89
push 0x402bfc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ef3a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402bf0
push edi
call esi
test eax, eax
je 0x40ef3a
push eax
call fcn.0040889a
mov dword [esp], 0x402be0
push edi
mov dword [0x43399c], eax
call esi
push eax
call fcn.0040889a
mov dword [esp], 0x402bcc
push edi
mov dword [0x4339a0], eax
call esi
push eax
call fcn.0040889a
mov dword [esp], 0x402bb0
push edi
mov dword [0x4339a4], eax
call esi
push eax
call fcn.0040889a
pop ecx
mov dword [0x4339ac], eax
test eax, eax
je 0x40ee89
push 0x402b98
push edi
call esi
push eax
call fcn.0040889a
pop ecx
mov dword [0x4339a8], eax
mov eax, dword [0x4339a8]
cmp eax, ebx
je 0x40eee1
cmp dword [0x4339ac], ebx
je 0x40eee1
push eax
call fcn.00408915
push dword [0x4339ac]
mov esi, eax
call fcn.00408915
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40eee1
test edi, edi
je 0x40eee1
call esi
test eax, eax
je 0x40eed8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40eed8
test byte [ebp - 0xc], 1
jne 0x40eee1
or dword [ebp + 0x10], 0x200000
jmp 0x40ef1a
mov eax, dword [0x4339a0]
cmp eax, ebx
je 0x40ef1a
push eax
call fcn.00408915
pop ecx
test eax, eax
je 0x40ef1a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ef1a
mov eax, dword [0x4339a4]
cmp eax, ebx
je 0x40ef1a
push eax
call fcn.00408915
pop ecx
test eax, eax
je 0x40ef1a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43399c]
call fcn.00408915
pop ecx
test eax, eax
je 0x40ef3a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ef3c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40f631
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push ebp
push edi
lea ecx, [esp + 0x14]
call fcn.00401370
mov eax, dword [0x414120]
xor ebx, ebx
mov dword [esp + 0x344], ebx
mov dword [esp + 0xc], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x134]
push 0x104
push ecx
mov byte [esp + 0x34c], 1
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x134]
push 0x4140d4
push edx
lea eax, [esp + 0x38]
push str._s_s
push eax
call fcn.00401f7d
lea ecx, [esp + 0x40]
push ecx
call fcn.00401200
add esp, 0x14
test eax, eax
jne 0x4010cb
lea edx, [esp + 0x30]
push edx
push 0x4140c8
push 0x68
call fcn.00401270
add esp, 0xc
cmp eax, ebx
je 0x4011bb
lea eax, [esp + 0x238]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, ebx
je 0x4011bb
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
cmp eax, ebx
je 0x4011bb
push 0x4140d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
je 0x4011bb
push 0x4140a8
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x4011b4
lea edx, [esp + 0x238]
lea ecx, [esp + 0xc]
push edx
call fcn.0040a9ff
push str..exe
lea ecx, [esp + 0x10]
call fcn.0040aac3
mov eax, dword [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401433
cmp eax, ebx
je 0x4011ab
push esi
lea ecx, [esp + 0x18]
call fcn.00401653
lea ecx, [esp + 0x14]
mov esi, eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00401722
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34c], 2
call dword [edx + 0x38]
cmp eax, ebx
jne 0x401195
mov eax, dword [esp + 0x14]
push eax
push eax
call edi
lea ecx, [esp + 0x14]
mov byte [esp + 0x348], 1
call fcn.0040a956
cmp esi, ebx
jne 0x40115b
pop esi
lea ecx, [esp + 0x14]
call fcn.004013e9
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov byte [esp + 0x344], bl
call fcn.0040a956
lea ecx, [esp + 0x14]
mov dword [esp + 0x344], 0xffffffff
call fcn.004013ad
mov ecx, dword [esp + 0x33c]
pop edi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x33c
ret

Function at 0x401200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40f648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call fcn.00401370
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00401433
lea ecx, [esp + 4]
mov esi, eax
call fcn.004013e9
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0xffffffff
call fcn.004013ad
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x401270
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40135f
mov ebp, dword [esp + 0x18]
mov esi, 0x4171f0
mov eax, ebp
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4012b3
test cl, cl
je 0x4012af
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4012b3
add eax, 2
add esi, 2
test cl, cl
jne 0x40128b
xor eax, eax
jmp 0x4012b8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40135f
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
and edi, 0xffff
xor eax, eax
push ebp
push edi
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x401356
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401356
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x401356
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jbe 0x401356
push 0
push 0x10000080
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401356
lea eax, [esp + 0x18]
push 0
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40134f
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x403510
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41c5e0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41c5e6
ret

Function at 0x42510c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x28]
mov edi, dword [ebx + 0x38]
sub edi, dword [ebx + 0x70]
sub edi, dword [ebx + 0x68]
jmp 0x42513b
mov eax, dword [ebx + 0x28]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x68]
ja 0x4251ba
push esi
mov eax, dword [ebx + 0x34]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00423ec0
add esp, 0xc
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x58], ebp
mov eax, dword [ebx + 0x48]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x425188
mov cx, word [esp]
sub cx, si
jmp 0x42518a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x425171
mov eax, esi
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 0x4251b0
mov cx, word [esp]
sub cx, si
jmp 0x4251b2
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x425199
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x425217
mov edx, dword [ebx + 0x34]
mov ecx, edi
add edx, dword [ebx + 0x68]
mov eax, ebp
add edx, dword [ebx + 0x70]
call fcn.00424dfc
add dword [ebx + 0x70], eax
cmp dword [ebx + 0x70], 3
jb 0x425202
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x68]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x44], eax
mov ecx, dword [ebx + 0x54]
shl eax, cl
mov edx, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x68]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x50]
mov dword [ebx + 0x44], eax
cmp dword [ebx + 0x70], 0x106
jae 0x425217
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x425116
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42a81c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x42a84a
mov eax, ebx
call fcn.0042b2d0
cmp dword [ebx + 0x40], 0
je 0x42a843
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x42a8bb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x42a8ad
cmp dword [ebx + 8], 0
je 0x42a86c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x42a87e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x42a8ad
cmp dword [ebx + 8], 0
je 0x42a85f
cmp eax, 3
je 0x42a891
dec eax
jne 0x42a85f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x42a85f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x42a85f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x42a8d9
cmp dword [ebx + 0x14], 0xcc
je 0x42a8d9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0042a8e4
pop ebx
ret
Function at 0x441408
Capabilities:
Acquire debug privileges

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, eax
push esp
push 0x28
call fcn.0040702c
push eax
call dword [0x459eec]
mov dword [esp + 8], 1
lea eax, [esp + 0xc]
push eax
push 0x441478
push 0
call dword [0x459ef0]
test bl, bl
je 0x441445
mov dword [esp + 0x14], 2
jmp 0x44144b
xor eax, eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x10
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call dword [0x459ef4]
mov eax, dword [esp]
push eax
call dword [0x459e8c]
add esp, 0x28
pop ebx
ret
Function at 0x44b70c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
call fcn.0040702c
push eax
call fcn.004070ac
mov ebx, eax
call fcn.0040703c
push eax
call fcn.004070f4
mov esi, eax
push pe_nt_image_headers32
call fcn.0040702c
push eax
call fcn.004071f4
push 0xf
call fcn.0040703c
push eax
call fcn.004071fc
push 0xa
call fcn.0040dc24
rdtsc
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push 0x1f4
call fcn.0040dc24
rdtsc
sub eax, dword [ebp - 4]
sbb edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
push esi
call fcn.0040703c
push eax
call fcn.004071fc
push ebx
call fcn.0040702c
push eax
call fcn.004071f4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x44b7b8]
call fcn.00402e58
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
jne 0x405176
push edi
call fcn.00404dd0
add esp, 4
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x405193
push dword [ebp + 0x10]
lea eax, [edi + 8]
push dword [ebp + 0xc]
push eax
call fcn.004055f0
add esp, 0xc
pop edi
pop ebp
ret
cmp eax, 2
jne 0x4051cc
push dword [edi]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0046b384
add esp, 0x10
cmp eax, dword [ebp + 0x10]
jae 0x4051cc
push edi
call fcn.00404d80
push str.Disabled_writing_session_log_due_to_error_while_writing
push dword [edi + 0x18]
mov dword [edi + 4], 3
call fcn.0043e810
add esp, 0xc
pop edi
pop ebp
ret

Function at 0x405450
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bd800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
mov edi, dword [ebp + 0xc]
nop dword [eax + eax]
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
ja 0x405482
movsx eax, cl
sub eax, 0x41
jmp 0x4054c4
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x405491
movsx eax, cl
sub eax, 0x47
jmp 0x4054c4
lea eax, [ecx - 0x30]
cmp al, 9
ja 0x4054a0
movsx eax, cl
add eax, 4
jmp 0x4054c4
cmp cl, 0x2b
jne 0x4054ac
mov eax, 0x3e
jmp 0x4054c4
cmp cl, 0x2f
jne 0x4054b8
mov eax, 0x3f
jmp 0x4054c4
cmp cl, 0x3d
jne 0x405541
or eax, 0xffffffff
mov dword [ebp + edx*4 - 0x14], eax
inc edx
cmp edx, 4
jl 0x405470
mov edx, dword [ebp - 0x14]
cmp edx, 0xffffffff
je 0x405541
mov esi, dword [ebp - 0x10]
cmp esi, 0xffffffff
je 0x405541
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp ecx, 0xffffffff
jne 0x4054f2
cmp eax, ecx
jne 0x405541
lea ebx, [ecx + 2]
jmp 0x4054fd
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
add ebx, 2
shl edx, 6
and ecx, 0x3f
or edx, esi
and eax, 0x3f
shl edx, 6
or edx, ecx
shl edx, 6
or edx, eax
mov eax, edx
shr eax, 0x10
mov byte [edi], al
cmp ebx, 1
jbe 0x405526
mov ecx, edx
shr ecx, 8
mov byte [edi + 1], cl
cmp ebx, 2
jbe 0x40552e
mov byte [edi + 2], dl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449f7b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449f7b
mov esp, ebp
pop ebp
ret

Function at 0x406280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test esi, esi
je 0x4062b5
push ebx
mov ebx, dword [ebp + 0xc]
sub ebx, eax
nop word [eax + eax]
movzx edx, byte [ebx + eax]
lea eax, [eax + 1]
movzx ecx, byte [eax - 1]
xor edx, ecx
or edi, edx
sub esi, 1
jne 0x4062a0
pop ebx
mov eax, 0x100
sub eax, edi
pop edi
shr eax, 8
pop esi
pop ebp
ret

Function at 0x40a580
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0x34
push dword [ebp + 8]
call fcn.00403140
add esp, 8
cmp byte [eax], 0
je 0x40a59e
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00405aa0
push 0x35
push dword [ebp + 8]
call fcn.004030e0
add esp, 8
test eax, eax
je 0x40a5b5
pop ebp
jmp fcn.00440570
xor eax, eax
pop ebp
ret
Function at 0x40a880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043eae0
add esp, 8
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.00446e70
Function at 0x41e860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4bd800]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40], edi
movups xmm0, xmmword [edi + 0x3c8]
movups xmmword [ebp - 0x34], xmm0
test ebx, ebx
jle 0x41e9c5
dec ebx
add edx, 3
shr ebx, 4
inc ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ebx
push esi
movzx ecx, byte [edx - 3]
lea esi, [edx - 1]
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], ecx
movzx ecx, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ecx
movzx ecx, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
call fcn.0041e840
add esp, 8
xor edi, edi
mov edx, dword [ebp + edi - 0x34]
lea esi, [esi + 4]
mov ebx, dword [ebp + edi - 0x14]
mov ecx, edx
shr ecx, 0x18
mov eax, ebx
shr eax, 0x18
xor cl, al
mov eax, ebx
mov byte [esi - 6], cl
mov ecx, edx
shr ecx, 0x10
shr eax, 0x10
xor cl, al
mov eax, ebx
mov byte [esi - 5], cl
mov ecx, edx
shr eax, 8
xor dl, bl
shr ecx, 8
xor cl, al
mov byte [esi - 3], dl
mov eax, dword [ebp + edi - 0x24]
mov dword [ebp + edi - 0x34], eax
add edi, 4
mov byte [esi - 4], cl
cmp edi, 0x10
jl 0x41e944
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x40]
add edx, 0x10
sub dword [ebp - 0x3c], 1
mov dword [ebp - 0x38], edx
jne 0x41e8a0
movups xmm0, xmmword [ebp - 0x34]
mov eax, edi
pop esi
pop edi
pop ebx
movups xmmword [eax + 0x3c8], xmm0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00449f7b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
movups xmmword [edi + 0x3c8], xmm0
pop edi
xor ecx, ebp
pop ebx
call fcn.00449f7b
mov esp, ebp
pop ebp
ret
Function at 0x41f730
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4bd800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
movups xmm0, xmmword [ebx + 0x3c8]
mov edi, dword [ebp + 0xc]
movups xmmword [ebp - 0x14], xmm0
test edi, edi
jle 0x41f88d
mov edx, dword [ebp - 8]
dec edi
shr edi, 4
add esi, 2
inc edi
nop word [eax + eax]
movzx ecx, byte [esi - 2]
movzx eax, byte [esi - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 3]
xor dword [ebp - 0x14], ecx
movzx ecx, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 7]
xor dword [ebp - 0x10], ecx
movzx ecx, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xb]
xor dword [ebp - 0xc], ecx
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
lea eax, [ebp - 0x14]
push eax
xor edx, ecx
push ebx
mov dword [ebp - 8], edx
call fcn.0041f710
mov ecx, dword [ebp - 0x14]
add esp, 8
mov eax, ecx
mov byte [esi + 1], cl
shr eax, 0x18
mov byte [esi - 2], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 1], al
mov eax, ecx
mov ecx, dword [ebp - 0x10]
shr eax, 8
mov byte [esi], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 2], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], al
mov byte [esi + 5], cl
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x18
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 7], al
mov eax, ecx
shr eax, 8
mov edx, dword [ebp - 8]
lea esi, [esi + 0x10]
mov byte [esi - 8], al
mov eax, edx
shr eax, 0x18
mov byte [esi - 6], al
mov eax, edx
shr eax, 0x10
mov byte [esi - 5], al
mov eax, edx
shr eax, 8
mov byte [esi - 7], cl
mov byte [esi - 4], al
mov byte [esi - 3], dl
sub edi, 1
jne 0x41f770
movups xmm0, xmmword [ebp - 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop esi
movups xmmword [ebx + 0x3c8], xmm0
xor ecx, ebp
pop ebx
call fcn.00449f7b
mov esp, ebp
pop ebp
ret
Function at 0x420920
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
lea edx, [eax + 2]
mov bh, byte [eax]
mov cl, byte [eax + 1]
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], edi
jle 0x42097f
mov al, cl
push esi
inc bh
movzx esi, bh
add esi, edx
mov bl, byte [esi]
add al, bl
movzx ecx, al
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx edx, byte [esi]
mov esi, dword [ebp + 0xc]
movzx ecx, bl
add edx, ecx
movzx ecx, dl
mov edx, dword [ebp - 8]
movzx ecx, byte [ecx + edx]
xor byte [edi + esi], cl
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x420940
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 1]
pop esi
pop edi
mov byte [eax], bh
mov byte [eax + 1], cl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420a00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4bd800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
push esi
push edi
lea ebx, [eax + 2]
mov word [eax], 0
mov edi, ebx
mov dword [ebp - 0x108], ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
sub edi, eax
mov eax, ecx
lea esi, [ebp - 0x104]
xor edx, edx
add esi, ecx
div dword [ebp + 0x10]
mov byte [edi + esi], cl
inc ecx
mov al, byte [edx + ebx]
mov byte [esi], al
cmp ecx, 0x100
jb 0x420a36
mov esi, dword [ebp - 0x108]
lea ebx, [ebp - 0x104]
xor edi, edi
mov dword [ebp - 0x10c], 0x100
sub ebx, esi
mov dl, byte [esi]
lea esi, [esi + 1]
movzx eax, byte [ebx + esi - 1]
add eax, edi
movzx ecx, dl
add ecx, eax
sub dword [ebp - 0x10c], 1
movzx edi, cl
mov ecx, dword [ebp - 0x108]
mov al, byte [edi + ecx]
mov byte [esi - 1], al
mov byte [edi + ecx], dl
jne 0x420a70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449f7b
mov esp, ebp
pop ebp
ret