joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c6bc
Capabilities:
Check os version
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov ebx, eax
mov eax, dword [0x4fa6a4]
cmp dword [eax], 2
je 0x47c6d9
mov byte [ebp - 1], 1
jmp 0x47c8a7
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0x20
push 2
push 0x4f546c
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x47c8a7
xor eax, eax
push ebp
push 0x47c8a0
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
and eax, 0xff
cmp ax, 5
jb 0x47c73b
push 0x47c8b0
push 0x47c8c8
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x47c762
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call ebx
test eax, eax
je 0x47c889
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x47c889
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
test eax, eax
jne 0x47c7b3
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
je 0x47c794
call fcn.00403ce4
jmp 0x47c8a7
lea eax, [ebp - 0x10]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x47c7b3
call fcn.00403ce4
jmp 0x47c8a7
xor eax, eax
push ebp
push 0x47c882
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x47c7f6
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
je 0x47c7f6
call fcn.00403ce4
call fcn.00403ce4
jmp 0x47c8a7
mov eax, dword [ebp - 0x14]
call fcn.00402724
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
jne 0x47c828
call fcn.00403ce4
call fcn.00403ce4
jmp 0x47c8a7
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
dec esi
test esi, esi
jl 0x47c863
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 4]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x47c85f
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx*8 + 8]
and eax, 0x14
cmp eax, 4
jne 0x47c85f
mov byte [ebp - 1], 1
jmp 0x47c863
inc ebx
dec esi
jne 0x47c835
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c889
mov eax, dword [ebp - 0x18]
call fcn.00402744
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c8a7
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47c988
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
xor edx, edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47ca9e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404318
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.00408c38
cmp dword [ebp - 0x44], 0
je 0x47ca7b
lea eax, [ebp - 0x40]
xor ecx, ecx
mov edx, 0x3c
call fcn.00402df8
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x540
xor eax, eax
mov dword [ebp - 0x38], eax
mov eax, 0x47caac
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
call fcn.0040475c
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
test eax, eax
jne 0x47ca7b
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.00409548
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.004089c8
mov eax, dword [ebp - 0x48]
mov edx, 0x47cabc
call fcn.004046a8
je 0x47ca6f
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.00409548
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.004089c8
mov eax, dword [ebp - 0x50]
mov edx, 0x47cacc
call fcn.004046a8
jne 0x47ca7b
push 1
push 0x47cad4
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47caa5
lea eax, [ebp - 0x54]
mov edx, 5
call fcn.004042a4
lea eax, [ebp - 4]
call fcn.00404280
ret

Function at 0x47cb04
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffc00
mov esi, edx
mov ebx, eax
push 0x400
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404370
mov eax, dword [esi]
call fcn.0040455c
cmp eax, 1
jle 0x47cb62
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x5c
je 0x47cb51
test bl, bl
je 0x47cb62
mov eax, esi
mov edx, 0x47cb74
call fcn.00404564
jmp 0x47cb62
test bl, bl
jne 0x47cb62
mov edx, esi
mov ecx, 1
xchg edx, eax
call fcn.004047fc
add esp, 0x400
pop esi
pop ebx
ret

Function at 0x47cbd8
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 7
push 0x80
mov eax, ebx
call fcn.0040475c
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47cc45
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
xor edx, edx
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [esp + 8]
xor edx, edx
mov edx, eax
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret
Function at 0x47ce24
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov esi, eax
xor eax, eax
push ebp
push 0x47ce99
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0047cdd8
lea eax, [ebp - 0x10]
mov edx, 0x47ceb0
call fcn.00404564
mov eax, dword [ebp - 0x10]
call fcn.0040475c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x47ce83
mov ebx, dword [ebp - 4]
imul ebx, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cea0
lea eax, [ebp - 0x10]
call fcn.00404280
ret

Function at 0x47ceb4
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040474c
xor eax, eax
push ebp
push 0x47cf1b
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040475c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x47ceff
or ebx, 0xffffffff
jmp 0x47cf05
mov ebx, dword [ebp - 0x160]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cf22
lea eax, [ebp - 4]
call fcn.00404280
ret

Function at 0x47d3f4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], ecx
mov ebx, eax
mov ax, word [edx]
mov word [esp + 4], ax
mov ax, word [edx + 2]
mov word [esp + 6], ax
mov ax, word [edx + 4]
mov word [esp + 8], ax
mov ax, word [edx + 6]
mov word [esp + 0xa], ax
mov esi, 8
lea eax, [esp + 4]
mov dx, word [ebx]
call fcn.0047d00c
add ebx, 2
mov ax, word [ebx]
add word [esp + 6], ax
add ebx, 2
mov ax, word [ebx]
add word [esp + 8], ax
add ebx, 2
lea eax, [esp + 0xa]
mov dx, word [ebx]
call fcn.0047d00c
add ebx, 2
mov bp, word [esp + 8]
mov ax, word [esp + 4]
xor word [esp + 8], ax
lea eax, [esp + 8]
mov dx, word [ebx]
call fcn.0047d00c
add ebx, 2
mov di, word [esp + 6]
mov ax, word [esp + 0xa]
xor word [esp + 6], ax
mov ax, word [esp + 8]
add word [esp + 6], ax
lea eax, [esp + 6]
mov dx, word [ebx]
call fcn.0047d00c
add ebx, 2
mov ax, word [esp + 6]
add word [esp + 8], ax
mov ax, word [esp + 6]
xor word [esp + 4], ax
mov ax, word [esp + 8]
xor word [esp + 0xa], ax
xor word [esp + 6], bp
xor word [esp + 8], di
dec esi
test esi, esi
jne 0x47d428
lea eax, [esp + 4]
mov dx, word [ebx]
call fcn.0047d00c
add ebx, 2
mov ax, word [ebx]
add word [esp + 8], ax
add ebx, 2
mov ax, word [ebx]
add word [esp + 6], ax
add ebx, 2
lea eax, [esp + 0xa]
mov dx, word [ebx]
call fcn.0047d00c
mov eax, dword [esp]
mov dx, word [esp + 4]
mov word [eax], dx
mov eax, dword [esp]
mov dx, word [esp + 8]
mov word [eax + 2], dx
mov eax, dword [esp]
mov dx, word [esp + 6]
mov word [eax + 4], dx
mov eax, dword [esp]
mov dx, word [esp + 0xa]
mov word [eax + 6], dx
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47df78
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x47e198
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x47e16e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47e15d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47e025
mov eax, 0x47e1b4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x40]
call fcn.0040be4c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4fa2a0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040c6b4
call fcn.00403c38
push 0xf0015
push 0x47e1bc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47e083
mov eax, 0x47e1b4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x44]
call fcn.0040be4c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4fa5b0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040c6b4
call fcn.00403c38
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x47e0d6
mov eax, 0x47e1b4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x48]
call fcn.0040be4c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4fa048]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040c6b4
call fcn.00403c38
cmp dword [ebp - 0x28], 4
je 0x47e131
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x47e131
mov eax, 0x47e1b4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x4c]
call fcn.0040be4c
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4fa440]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040c6b4
call fcn.00403c38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e164
cmp dword [ebp - 8], 0
je 0x47e14d
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0xc], 0
je 0x47e15c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x47e3b0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x47e5f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x47e5a9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x47e598
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47e460
mov eax, 0x47e614
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x40]
call fcn.0040be4c
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4fa2a0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040c6b4
call fcn.00403c38
push 0xf0015
push 0x47e61c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47e4be
mov eax, 0x47e614
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x44]
call fcn.0040be4c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4fa5b0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040c6b4
call fcn.00403c38
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x47e511
mov eax, 0x47e614
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x48]
call fcn.0040be4c
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4fa048]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040c6b4
call fcn.00403c38
cmp dword [ebp - 0x28], 4
je 0x47e56c
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x47e56c
mov eax, 0x47e614
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x4c]
call fcn.0040be4c
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4fa440]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407cfc]
call fcn.0040c6b4
call fcn.00403c38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e59f
cmp dword [ebp - 8], 0
je 0x47e588
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0xc], 0
je 0x47e597
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x480ae4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x480b1c]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x480afa
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x480b09
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x480b18
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x481fb4
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4fa45c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x481fda
push 0
mov eax, dword [0x4fa45c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x49481c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x494854]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x494832
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x494841
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x494850
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4a3068
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 0x4a30cc
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.004044f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408f34
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a30d3
lea eax, [ebp - 0xc]
call fcn.00404280
ret
Function at 0x4b1684
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4b16b3
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4b1732
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004aff40
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4b1700
mov cx, word [esp]
sub cx, si
jmp 0x4b1702
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4b16e9
mov eax, esi
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 0x4b1728
mov cx, word [esp]
sub cx, si
jmp 0x4b172a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4b1711
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4b178f
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004b1358
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4b177a
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4b178f
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4b168e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b7cc4
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4fbd70
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x4b7ce6
shr eax, 1
xor eax, 0xedb88320
jmp 0x4b7ce8
shr eax, 1
dec edx
jne 0x4b7cd4
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4b7ccd
mov byte [0x4fc170], 1
pop esi
pop ebx
ret

Function at 0x4b7d04
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4fc170], 0
jne 0x4b7d1b
call fcn.004b7cc4
mov eax, edi
dec eax
test eax, eax
jl 0x4b7d44
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4fbd70]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4b7d25
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4ba7a4
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 0x4ba7d5
dec al
je 0x4ba811
dec al
je 0x4ba855
dec al
je 0x4ba8c0
jmp 0x4ba94a
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4ba94a
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 0x4ba7e5
jmp 0x4ba94a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ba94a
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 0x4ba821
jmp 0x4ba94a
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ba94a
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 0x4ba883
xor ebp, ebp
jmp 0x4ba894
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 0x4ba89d
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 0x4ba865
jmp 0x4ba94a
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4ba94a
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 0x4ba918
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.004b7d4c
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 0x4ba8d4
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx