joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fe40
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x10
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40fe96
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x14]
push eax
push 4
push esi
push 0x12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
setne al
cmp dword [esi], 3
sete bl
and bl, al
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fe98
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412591
mov eax, ebx
add esp, 0x10
pop esi
pop ebx
pop ebp
ret
Function at 0x4105a0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43d00c]
mov edi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x4105ea
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0041f7d0
add esp, 4
cmp eax, 0x105
jb 0x4105fe
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412591
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.0041fc49
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00411250
add esp, 8
test eax, eax
je 0x4105ea
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410642
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4105ea
push str.UpdateLogs
push edi
call fcn.00411250
add esp, 8
test eax, eax
je 0x4105ea
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410672
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4105ea
xor esi, esi
inc esi
jmp 0x4105ea
Function at 0x410ca0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x410d6a
mov ebx, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x410d90
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x30], 0xcf
imul esi, ecx, 0x3e8
test esi, esi
je 0x410db8
mov dword [ebp - 0x3c], ebx
xor ebx, ebx
xor eax, eax
inc eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x410d21
cmp dword [ebp - 0x30], 1
jne 0x410d4d
jmp 0x410d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x410df3
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x410e20
mov edx, 0x601
bt edx, ecx
jae 0x410e20
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x32
cmp ebx, esi
jb 0x410d02
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
jmp 0x410e59
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
mov esi, 0xfd
sete cl
xor ecx, 0xff
cmp eax, 5
cmovne esi, ecx
jmp 0x410e68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x410dc4
cmp edi, 5
je 0x410ddb
cmp edi, 6
jne 0x410dec
mov esi, 0xec
jmp 0x410e68
mov dword [ebp - 0x40], 0xcf
jmp 0x410e59
cmp edi, 0x7b
je 0x410de5
cmp edi, 0x424
jne 0x410dec
mov esi, 0xee
jmp 0x410e68
mov esi, 0xeb
jmp 0x410e68
mov esi, 0xed
jmp 0x410e68
mov esi, 0xef
jmp 0x410e68
cmp eax, 0x56
jg 0x410e0c
mov ebx, dword [ebp - 0x3c]
cmp eax, 5
je 0x410e36
cmp eax, 6
jne 0x410e4e
mov eax, 0xd9
jmp 0x410e53
mov ebx, dword [ebp - 0x3c]
cmp eax, 0x57
je 0x410e3d
cmp eax, 0x7a
jne 0x410e4e
mov eax, 0xdb
jmp 0x410e53
cmp eax, 0x7c
je 0x410e44
mov ebx, dword [ebp - 0x3c]
cmp eax, 0x45b
jne 0x410e4e
mov eax, 0xde
jmp 0x410e53
mov eax, 0xda
jmp 0x410e53
mov eax, 0xdc
jmp 0x410e53
mov ebx, dword [ebp - 0x3c]
mov eax, 0xdd
jmp 0x410e53
mov eax, 0xdf
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412591
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410e80
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
xor ecx, ecx
mov edx, 4
dec ecx
lea eax, [esi + 2]
mov dword [ebp - 0x18], eax
mul edx
cmovo eax, ecx
push eax
call fcn.00411d49
add esp, 4
mov edi, eax
test esi, esi
mov dword [eax], str.MozillaMaintenance
mov dword [eax + 4], str.software_update
jle 0x410ece
shl esi, 2
lea eax, [edi + 8]
push esi
push dword [ebp + 0xc]
push eax
call fcn.00424320
add esp, 0xc
push 5
push str.MozillaMaintenance
call fcn.00410ca0
add esp, 8
cmp eax, 1
jne 0x410f41
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x410f4b
mov esi, eax
mov dword [ebp - 0x10], edi
push 0x10
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x410f52
mov dword [ebp - 0x14], esi
mov edi, eax
mov esi, 0xffffff9c
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x410f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x64
cmp esi, 0x1324
jb 0x410f13
jmp 0x410f62
mov ebx, eax
add ebx, 0x4e20
jmp 0x410f73
mov ebx, 0x4269
jmp 0x410f73
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x426a
jmp 0x410f70
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x14]
call esi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00411d52
add esp, 4
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x410f90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43d00c]
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.00414930
add esp, 0xc
push ebx
call fcn.0041f7d0
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x410ffe
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.0041fc49
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412591
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x411020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x14
mov eax, dword [0x43d00c]
xor esi, esi
xor eax, ebp
mov dword [ebp - 0xc], eax
call fcn.0040fe40
test al, al
je 0x4110d1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x4110d1
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x10]
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [edi], 4
push edi
push ecx
push esi
push esi
push str.ConsentPromptBehaviorAdmin
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp - 0x14]
je 0x411093
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4110d1
xor esi, esi
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x1c]
push edi
push ecx
push esi
push esi
push str.PromptOnSecureDesktop
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4110d1
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, dword [ebp + 8]
or ecx, dword [ebp - 0x18]
sete dl
xor esi, esi
inc esi
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412591
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebp
ret

Function at 0x411190
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov eax, dword [0x43d00c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4111fc
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x411232
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x440200
call fcn.0041fc49
add esp, 0xc
mov esi, 0x440200
mov word [0x440408], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412591
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea ecx, [ebp - 0x258]
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4111c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0041984c
cmp esi, 2
mov ecx, 9
cmove ecx, esi
xor esi, esi
mov dword [eax], ecx
jmp 0x4111e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x4111e7
call fcn.0041984c
mov dword [eax], 2
jmp 0x4111e7

Function at 0x427408
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00427653

Function at 0x4290cb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004290d6
Function at 0x40a642
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x40a664
mov eax, 0xfffffffd
jmp 0x40a6dc
mov ebx, dword [0x598318]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40a6aa
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x598318]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40a6d2
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40a6dc
mov esp, ebp
pop ebp
ret 4

Function at 0x4103af
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x49b6b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x52369b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0051559e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x49b732
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00512704
mov eax, dword [eax]
push 0x58bd3c
push eax
call fcn.00504dc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00515829
test bl, bl
je 0x49b732
push 0x58bd3c
lea ecx, [esp + 0xc]
call fcn.00515c05
push 0x58bd48
lea ecx, [esp + 0xc]
call fcn.00515c05
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x49b76e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00515829
jmp 0x49b839
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x49b7f2
lea edx, [esp + 0x7c]
push 0x58bd44
push edx
call fcn.00504dc4
add esp, 8
test eax, eax
je 0x49b7f2
lea eax, [esp + 0x7c]
push 0x58bd40
push eax
call fcn.00504dc4
add esp, 8
test eax, eax
je 0x49b7f2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x49b782
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00515829
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x49c060
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x49c0c2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x49c0d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x52371b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x593b90]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x49c208
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x49c136
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00515829
xor eax, eax
jmp 0x49c27f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005159b2
push esi
lea ecx, [esp + 0xc]
call fcn.00515c41
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x58bd7c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x49c25d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0049c060
test eax, eax
jne 0x49c25d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0049c060
test eax, eax
jne 0x49c25d
lea eax, [esp + 0x14]
push 0x58bd58
push eax
call fcn.00505ee0
mov esi, eax
add esp, 8
test esi, esi
jne 0x49c23c
lea ecx, [esp + 0x14]
push 0x58bd54
push ecx
call fcn.00505e60
mov esi, eax
add esp, 8
test esi, esi
jne 0x49c23c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x49c23f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00515962
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x49c14e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00515829
xor eax, eax
jmp 0x49c27f
mov byte [esi], 0
push 0x58bd50
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00515829
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x4b1af0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x4b1b5e
cmp si, 0x69
ja 0x4b1b5e
add esi, 0xffd0
cmp si, 0x11
je 0x4b1b2e
push 0x11
call edi
test ax, ax
jge 0x4b1b2e
or esi, 0x2000
cmp si, 0x10
je 0x4b1b43
push 0x10
call edi
test ax, ax
jge 0x4b1b43
or esi, 0x4000
cmp si, 0x12
je 0x4b1b58
push 0x12
call edi
test ax, ax
jge 0x4b1b58
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4b1b6b
mov esi, 0xbd
jmp 0x4b1b1f
cmp si, 0x6e
jne 0x4b1b78
mov esi, 0xbe
jmp 0x4b1b1f
cmp si, 0x6f
jne 0x4b1b19
mov esi, 0xbf
jmp 0x4b1b1f

Function at 0x4b3330
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5a4ff0]
xor edx, edx
cmp eax, edx
jne 0x4b3356
xor eax, eax
mov byte [eax + 0x5a4ef0], al
inc eax
cmp eax, 0x100
jl 0x4b333e
mov dword [0x5a4ff0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5a4ef0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4b33e7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4b33ba
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4b3388
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4b3460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4b34b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4b349a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ba130
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4ba2c8
cmp ebp, ebx
jle 0x4ba2c8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, reloc.OLEAUT32.dll_VariantInit
mov dword [esp + 0x10], edi
jns 0x4ba18e
dec eax
or eax, 0xfffffff8
inc eax
je 0x4ba195
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x4ba1a4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4ba1ab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0051556a
add esp, 4
cmp eax, ebx
je 0x4ba1cc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0051556a
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4ba2be
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4ba2a5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4ba291
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4ba286
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4ba294
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4ba294
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4ba230
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4ba221
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x4bd520
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x525448
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x4bd559
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.0051d742
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.0051d7ca
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.004bd5e0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0051d807
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24