joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a96e0
Capabilities:
Contain obfuscated stackstrings
Encode data using base64
Parse pe header

Disassembly:
sub esp, 0x40
mov ecx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x50]
push edi
xor edi, edi
mov byte [esp + 8], 0x41
test ebp, ebp
mov byte [esp + 9], 0x42
mov byte [esp + 0xa], 0x43
mov byte [esp + 0xb], 0x44
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x46
mov byte [esp + 0xe], 0x47
mov byte [esp + 0xf], 0x48
mov byte [esp + 0x10], 0x49
mov byte [esp + 0x11], 0x4a
mov byte [esp + 0x12], 0x4b
mov byte [esp + 0x13], 0x4c
mov byte [esp + 0x14], 0x4d
mov byte [esp + 0x15], 0x4e
mov byte [esp + 0x16], 0x4f
mov byte [esp + 0x17], 0x50
mov byte [esp + 0x18], 0x51
mov byte [esp + 0x19], 0x52
mov byte [esp + 0x1a], 0x53
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0x55
mov byte [esp + 0x1d], 0x56
mov byte [esp + 0x1e], 0x57
mov byte [esp + 0x1f], 0x58
mov byte [esp + 0x20], 0x59
mov byte [esp + 0x21], 0x5a
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x62
mov byte [esp + 0x24], 0x63
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x65
mov byte [esp + 0x27], 0x66
mov byte [esp + 0x28], 0x67
mov byte [esp + 0x29], 0x68
mov byte [esp + 0x2a], 0x69
mov byte [esp + 0x2b], 0x6a
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2d], 0x6c
mov byte [esp + 0x2e], 0x6d
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x30], 0x6f
mov byte [esp + 0x31], 0x70
mov byte [esp + 0x32], 0x71
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x34], 0x73
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x36], 0x75
mov byte [esp + 0x37], 0x76
mov byte [esp + 0x38], 0x77
mov byte [esp + 0x39], 0x78
mov byte [esp + 0x3a], 0x79
mov byte [esp + 0x3b], 0x7a
mov byte [esp + 0x3c], 0x30
mov byte [esp + 0x3d], 0x31
mov byte [esp + 0x3e], 0x32
mov byte [esp + 0x3f], 0x33
mov byte [esp + 0x40], 0x34
mov byte [esp + 0x41], 0x35
mov byte [esp + 0x42], 0x36
mov byte [esp + 0x43], 0x37
mov byte [esp + 0x44], 0x38
mov byte [esp + 0x45], 0x39
mov byte [esp + 0x46], 0x2b
mov byte [esp + 0x47], 0x2f
jle 0x4a98a1
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [esp + 0x4c]
push ebx
push esi
mov esi, edx
shr esi, 1
lea edi, [esi + esi*2]
movsx edx, byte [eax]
sar edx, 2
inc ecx
add eax, 3
mov dl, byte [esp + edx + 0x10]
mov byte [ecx - 1], dl
mov dl, byte [eax - 3]
movsx ebx, byte [eax - 2]
sar ebx, 4
and edx, 3
shl edx, 4
lea ebx, [esp + ebx + 0x10]
inc ecx
mov dl, byte [ebx + edx]
mov byte [ecx - 1], dl
mov dl, byte [eax - 2]
movsx ebx, byte [eax - 1]
sar ebx, 6
and edx, 0xf
inc ecx
lea ebx, [esp + ebx + 0x10]
mov dl, byte [ebx + edx*4]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
and edx, 0x3f
inc ecx
dec esi
mov dl, byte [esp + edx + 0x10]
mov byte [ecx - 1], dl
jne 0x4a984a
pop esi
pop ebx
lea eax, [ebp + 1]
cmp edi, eax
jne 0x4a98b7
mov byte [ecx - 1], 0x3d
pop edi
mov byte [ecx], 0
pop ebp
add esp, 0x40
ret 0xc
add ebp, 2
cmp edi, ebp
jne 0x4a98c6
mov al, 0x3d
mov byte [ecx - 2], al
mov byte [ecx - 1], al
pop edi
mov byte [ecx], 0
pop ebp
add esp, 0x40
ret 0xc
Function at 0x4a98e0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5616d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push eax
push ebx
lea ecx, [ebp - 0x29c]
push ebx
lea edx, [esi + 1]
push ecx
push edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x298], esi
mov dword [ebp - 0x29c], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x4a997c
call sub.WSOCK32.dll_WSAGetLastError
push esi
push eax
lea eax, [ebp - 0x98]
push str.Select_failed__err_code___d__socket___d_n
push eax
call fcn.00527718
lea ecx, [ebp - 0x98]
push ecx
call fcn.00456800
add esp, 0x14
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp eax, ebx
jne 0x4a99aa
cmp edi, ebx
je 0x4a9967
mov edx, dword [0x5c8330]
push edx
call fcn.00456800
add esp, 4
jmp 0x4a9967
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4a99d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], 0
mov bl, byte [esp + 0xc]
mov ebp, ecx
push 0x3c
push esi
mov ecx, ebp
call fcn.004a98e0
test eax, eax
je 0x4a9a4e
push 0
lea eax, [esp + 0x18]
push 1
push eax
push esi
call sub.WSOCK32.dll_recv
cmp eax, 1
jne 0x4a9a4e
cmp bl, 0xd
je 0x4a9a1b
mov bl, byte [esp + 0x14]
mov dword [esp + 0xc], 0
jmp 0x4a99e6
cmp byte [esp + 0xd], 0xa
je 0x4a9a30
mov al, byte [esp + 0x14]
cmp al, 0xa
jne 0x4a9a4a
mov byte [esp + 0xd], al
jmp 0x4a99e6
mov al, byte [esp + 0xe]
cmp al, 0xd
mov al, byte [esp + 0x14]
je 0x4a9a46
cmp al, 0xd
jne 0x4a9a4a
mov byte [esp + 0xe], al
jmp 0x4a99e6
cmp al, 0xa
je 0x4a9a57
mov bl, al
jmp 0x4a99e6
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x4aaf90
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5618d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x5c2a74]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov ecx, dword [0x5c7498]
lea edx, [ebp - 0x14]
push ecx
push str._sGrabber_
push edx
mov byte [ebp - 4], 1
call fcn.0053afda
mov eax, dword [ebp - 0x14]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ab0ee
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, 2
inc esi
lea ecx, [ebp - 0x14]
push esi
push 0x5c
call fcn.00542693
mov esi, eax
cmp esi, 0xffffffff
je 0x4ab0ee
lea ecx, [ebp - 0x1c]
push esi
push ecx
lea ecx, [ebp - 0x14]
call fcn.0053abba
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x1c]
sete bl
call fcn.005421be
test bl, bl
je 0x4aaffd
lea edx, [ebp - 0x18]
push esi
push edx
lea ecx, [ebp - 0x14]
call fcn.0053abba
mov eax, dword [eax]
push 0
push eax
call edi
test eax, eax
lea ecx, [ebp - 0x18]
sete bl
call fcn.005421be
test bl, bl
je 0x4aaffd
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x18], eax
push 0
lea ecx, [ebp - 0x1c]
push 0
push ecx
push 0x400
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x5c8004]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0053afda
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 0x30
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, 0x7546
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push edx
add eax, 0x18
push str._sprojects.dat
push eax
call fcn.0053afda
add esp, 0xc
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4acd40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x561ba6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x5c2a74]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 0x14], eax
mov ecx, dword [0x5c2a74]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x34], ecx
push 0xffffffffffffffff
push ebx
push ebx
push 0x17
push 1
push 1
push 0x7d5
lea ecx, [esp + 0x28]
mov byte [esp + 0x34], 1
mov dword [esi], 0x56ff68
mov dword [esi + 0x3c], ebx
mov byte [esi + 0x18], bl
mov byte [esi + 0xc], bl
mov dword [esi + 8], 0x78
mov dword [esi + 0x10], ebx
mov dword [esi + 0x38], 1
mov byte [esi + 4], 1
mov byte [esi + 0x19], bl
mov byte [esi + 0x1a], bl
mov byte [esi + 0x1b], 1
mov byte [esi + 0x2c], bl
mov byte [esi + 0x2f], bl
mov byte [esi + 0x2d], bl
mov byte [esi + 0x2e], bl
mov dword [esi + 0x28], 0x7f
call fcn.0053b4f5
mov edx, dword [eax]
push 0xffffffffffffffff
push ebx
push 0x1e
push 7
push 1
push 1
mov dword [esi + 0x1c], edx
push 0x7d5
lea ecx, [esp + 0x28]
mov dword [esi + 0x20], ebx
call fcn.0053b4f5
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x24], eax
mov byte [esi + 0x30], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4ad270
Capabilities:
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x14]
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push ecx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareDownloadManagerScheduler
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x4ad481
mov al, byte [esi + 0x19]
mov ecx, dword [esp + 0x14]
xor edx, edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test al, al
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.isStartEnabled
setne dl
push ecx
mov dword [esp + 0x28], edx
call edi
mov al, byte [esi + 0x1a]
mov ecx, dword [esp + 0x14]
xor edx, edx
push 4
test al, al
lea eax, [esp + 0x14]
push eax
push 4
push 0
push str.isStopEnabled
setne dl
push ecx
mov dword [esp + 0x28], edx
call edi
mov cl, byte [esi + 0x1b]
lea eax, [esp + 0x10]
push 4
xor edx, edx
push eax
push 4
test cl, cl
mov ecx, dword [esp + 0x20]
push 0
sete dl
push str.isStartDilay
push ecx
mov dword [esp + 0x28], edx
call edi
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x28]
push 4
push edx
push 4
push 0
push str.startDaysOfWeek
push eax
call edi
mov al, byte [esi + 0x2c]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isForceTurnOff
push eax
mov dword [esp + 0x28], ecx
call edi
mov al, byte [esi + 0x2f]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isHangUpModem
push eax
mov dword [esp + 0x28], ecx
call edi
xor ecx, ecx
mov al, byte [esi + 0x2d]
lea edx, [esp + 0x10]
push 4
push edx
test al, al
mov eax, dword [esp + 0x1c]
push 4
push 0
push str.isTurnOffComputer
setne cl
push eax
mov dword [esp + 0x28], ecx
call edi
mov al, byte [esi + 0x2e]
lea edx, [esp + 0x10]
push 4
xor ecx, ecx
push edx
push 4
test al, al
mov eax, dword [esp + 0x20]
push 0
setne cl
push str.isExitIDMWhenDone
push eax
mov dword [esp + 0x28], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push 4
push edx
push 0
push 0
push str.startTime
push eax
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea edx, [esp + 0x18]
push 4
push edx
push 0
push 0
push str.startDay
push eax
mov dword [esp + 0x30], ecx
call edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x18]
push 4
push edx
push 0
push 0
push str.stopTime
push eax
mov dword [esp + 0x30], ecx
call edi
mov ecx, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
lea edx, [esp + 0x1c]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareDownloadManagerQueue
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x4ad481
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x24]
push str.FilesAtTheSameTime
push eax
mov dword [esp + 0x28], ecx
call edi
mov ecx, dword [esp + 0x14]
push ecx
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4afa80
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x562060
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push edi
lea ecx, [esp + 0xc]
call fcn.004a3ad0
mov eax, dword [0x5c2a74]
xor ebx, ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 8], eax
mov cl, 0x21
mov al, 0x20
mov dl, 0x25
mov byte [esp + 0x13], cl
mov byte [esp + 0x15], al
mov byte [esp + 0x1b], al
mov byte [esp + 0x1d], cl
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10], 0x2b
mov byte [esp + 0x11], 0x26
mov byte [esp + 0x12], dl
mov byte [esp + 0x14], 0x24
mov byte [esp + 0x16], 0x22
mov byte [esp + 0x17], 0x27
mov byte [esp + 0x18], dl
mov byte [esp + 0x19], 0x23
mov byte [esp + 0x1a], 0x2b
mov byte [esp + 0x1c], 0x2a
mov byte [esp + 0x1e], 0x26
mov byte [esp + 0x1f], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x5c], 1
cmp ecx, ebx
jle 0x4afb28
mov dl, byte [esp + eax + 0x10]
xor dl, 0x12
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, ecx
jl 0x4afb18
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
mov byte [esp + 0x20], 0xa1
mov byte [esp + 0x21], 0xc1
mov byte [esp + 0x22], 0x60
mov byte [esp + 0x23], 0x5b
mov byte [esp + 0x24], 0xb5
mov byte [esp + 0x25], 0xfd
mov byte [esp + 0x26], 0x7d
mov byte [esp + 0x27], 0x8d
mov byte [esp + 0x28], bl
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], bl
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2c], bl
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], bl
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], bl
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
mov byte [esp + 0x49], bl
mov byte [esp + 0x4a], bl
mov byte [esp + 0x4b], bl
mov byte [esp + 0x4c], bl
mov byte [esp + 0x4d], bl
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], bl
mov byte [esp + 0x50], bl
mov byte [esp + 0x51], bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
push ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
lea eax, [esp + 0x28]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004a3f00
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x20]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x5c], bl
call fcn.005421be
lea ecx, [esp + 0xc]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004a3b00
mov ecx, dword [esp + 0x54]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret
Function at 0x4afd00
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
sub esp, 0x3c
mov cl, 0x66
mov al, 0x7c
mov byte [esp + 0x23], cl
mov byte [esp + 0x28], cl
mov cl, 0x7d
push ebx
push edi
mov byte [esp + 0x2a], al
mov byte [esp + 0x2e], al
mov dl, 0x32
mov byte [esp + 0x33], cl
mov byte [esp + 0x35], al
mov byte [esp + 0x37], cl
mov bl, 0x73
mov byte [esp + 0x3d], al
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x20], 0x41
mov byte [esp + 0x21], 0x5d
mov byte [esp + 0x22], 0x54
mov byte [esp + 0x23], 0x46
mov byte [esp + 0x24], 0x45
mov byte [esp + 0x25], 0x53
mov byte [esp + 0x26], 0x40
mov byte [esp + 0x27], 0x57
mov byte [esp + 0x28], 0x4e
mov byte [esp + 0x29], 0x5b
mov byte [esp + 0x2c], 0x77
mov byte [esp + 0x2d], 0x60
mov byte [esp + 0x2f], 0x77
mov byte [esp + 0x31], dl
mov byte [esp + 0x32], 0x56
mov byte [esp + 0x34], 0x65
mov byte [esp + 0x36], 0x7e
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 0x76
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3b], 0x5f
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], 0x75
mov byte [esp + 0x40], 0x77
mov byte [esp + 0x41], 0x60
mov byte [esp + 0x42], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4afdd3
mov dl, byte [esp + eax + 0x20]
xor dl, 0x12
mov byte [esp + eax + 0x20], dl
inc eax
cmp eax, ecx
jl 0x4afdc3
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x20]
push eax
push 0x5a3e24
push ecx
call fcn.0053afda
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 8], 0x54
mov byte [esp + 9], 0x5c
mov byte [esp + 0xa], bl
mov byte [esp + 0xb], 0x7f
mov byte [esp + 0xc], 0x77
mov byte [esp + 0xd], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4afe29
mov dl, byte [esp + eax + 8]
xor dl, 0x12
mov byte [esp + eax + 8], dl
inc eax
cmp eax, ecx
jl 0x4afe19
mov eax, dword [esp + 0x4c]
lea edx, [esp + 8]
push edx
push 0x5a3e24
push eax
call fcn.0053afda
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x10], 0x5e
mov byte [esp + 0x11], 0x5c
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], 0x7f
mov byte [esp + 0x14], 0x77
mov byte [esp + 0x15], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4afe7f
mov dl, byte [esp + eax + 0x10]
xor dl, 0x12
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, ecx
jl 0x4afe6f
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x10]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
lea edi, [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0x18], 0x57
mov byte [esp + 0x19], 0x7f
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], 0x7b
mov byte [esp + 0x1c], 0x7e
mov byte [esp + 0x1d], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4afed5
mov bl, byte [esp + eax + 0x18]
xor bl, 0x12
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jl 0x4afec5
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x18]
push eax
push 0x5a3e24
push ecx
call fcn.0053afda
add esp, 0xc
pop edi
pop ebx
add esp, 0x3c
ret
Function at 0x4b1810
Capabilities:
Encode data using xor
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5621f8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
call fcn.004afc90
test eax, eax
jne 0x4b198a
mov eax, dword [0x5c2a74]
mov dword [esp + 8], eax
mov al, 0x66
lea edi, [esp + 0x14]
mov byte [esp + 0x14], al
mov byte [esp + 0x19], al
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x15], 0x64
mov byte [esp + 0x16], 0x74
mov byte [esp + 0x17], 0x60
mov byte [esp + 0x18], 0x76
mov byte [esp + 0x1a], 0
mov dword [esp + 0x24], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x4b188c
mov dl, byte [esp + eax + 0x14]
xor dl, 0x12
mov byte [esp + eax + 0x14], dl
inc eax
cmp eax, ecx
jl 0x4b187c
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push 0x5a3e24
push edx
call fcn.0053afda
mov edx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 4]
push eax
mov eax, dword [0x5c74b0]
push ecx
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4b1941
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push ecx
lea eax, [ecx - 0x1323f333]
mov dword [esp + 0x14], esp
mov ecx, esp
push edx
push 0
mov dword [ecx], eax
call fcn.00528272
add esp, 4
lea ecx, [esp + 0x1c]
push eax
call fcn.00437780
mov ecx, eax
call fcn.00437790
mov ecx, dword [eax]
mov eax, 0xc22e4507
imul ecx
add edx, ecx
sar edx, 0x10
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x5a6cc4]
test eax, eax
je 0x4b1930
cmp edx, 5
jge 0x4b1929
cmp edx, 0xffffffff
jge 0x4b1979
call fcn.004b0be0
jmp 0x4b1979
cmp edx, 0x37
jge 0x4b193a
cmp edx, 0xffffffff
jge 0x4b1979
call fcn.004b0be0
jmp 0x4b1979
lea ecx, [esp + 4]
push ecx
call fcn.00528272
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x5c74b0]
add edx, 0x1323f333
add esp, 4
mov dword [esp + 4], edx
lea edx, [esp + 4]
push 4
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call fcn.005421be
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4b3420
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
xor esi, esi
mov ecx, dword [ebp + 0xc]
push eax
push 0x20019
push esi
push ecx
push edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], 0x20019
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4b348c
push str.Cannot_open_key_for_reading.
mov ecx, dword [ebp + 8]
call fcn.0054259a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x1c]
push esi
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push esi
lea edx, [ebp - 0x20]
push ecx
push edx
push esi
push esi
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4b34be
push str._Cannot_read_information_about_subkeys.
jmp 0x4b3471
mov eax, dword [ebp + 0xc]
inc eax
push eax
mov dword [ebp + 0xc], eax
call fcn.0054276d
mov ebx, eax
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
mov dword [ebp - 0x14], eax
push eax
call fcn.0054276d
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x18]
add esp, 4
inc eax
mov dword [ebp - 0x18], eax
push eax
call fcn.0054276d
mov edi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x30], eax
cmp esi, dword [ebp - 0x20]
jae 0x4b3552
push 0x5a495c
mov ecx, edi
call fcn.0054259a
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x3c]
push edx
push 0
push 0
lea eax, [ebp - 0x24]
push 0
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x10]
push eax
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4b353d
push str.Cannot_enumerate_this_object.
mov ecx, edi
call fcn.0054259a
inc esi
jmp 0x4b34f9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
push edx
push eax
push ebx
push edi
call fcn.004b35a0
inc esi
jmp 0x4b34f9
push ebx
call fcn.00542796
mov ecx, dword [ebp - 0x2c]
add esp, 4
push ecx
call fcn.00542796
mov edx, dword [ebp - 0x30]
add esp, 4
push edx
call fcn.00542796
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10