joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474754
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4749b7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405c18
lea eax, [ebp - 0x120]
xor ecx, ecx
mov edx, 0x11c
call fcn.00403638
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x24
call fcn.00403638
push 0x4749c4
push 0x4749ec
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.00408bd4
test eax, eax
je 0x4747de
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x4747ea
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo_1
cmp dword [ebp - 0x110], 2
jne 0x474997
test bl, bl
je 0x47481a
call fcn.00474b64
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x474835
lea eax, [ebp - 4]
mov edx, 0x474a14
call fcn.00405c18
cmp dword [ebp - 0x11c], 5
jne 0x474859
cmp dword [ebp - 0x118], 0
jne 0x474859
lea eax, [ebp - 4]
mov edx, 0x474a38
call fcn.00405c18
jmp 0x474997
cmp dword [ebp - 0x11c], 5
jne 0x47487d
cmp dword [ebp - 0x118], 1
jne 0x47487d
lea eax, [ebp - 4]
mov edx, 0x474a60
call fcn.00405c18
jmp 0x474997
cmp dword [ebp - 0x11c], 5
jne 0x4748c3
cmp dword [ebp - 0x118], 2
jne 0x4748c3
cmp byte [ebp - 6], 1
jne 0x4748b1
cmp word [ebp - 0x144], 9
jne 0x4748b1
lea eax, [ebp - 4]
mov edx, 0x474a60
call fcn.00405c18
jmp 0x474997
lea eax, [ebp - 4]
mov edx, 0x474a84
call fcn.00405c18
jmp 0x474997
cmp dword [ebp - 0x11c], 6
jne 0x4748e7
cmp dword [ebp - 0x118], 0
jne 0x4748e7
lea eax, [ebp - 4]
mov edx, 0x474ab8
call fcn.00405c18
jmp 0x474997
cmp dword [ebp - 0x11c], 6
jne 0x47490b
cmp dword [ebp - 0x118], 1
jne 0x47490b
lea eax, [ebp - 4]
mov edx, 0x474ae0
call fcn.00405c18
jmp 0x474997
cmp dword [ebp - 0x11c], 6
jne 0x474931
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x474931
lea eax, [ebp - 4]
mov edx, 0x474b00
call fcn.00405c18
jmp 0x474997
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x474956
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x474956
lea eax, [ebp - 4]
mov edx, 0x474b20
call fcn.00405c18
jmp 0x474997
cmp eax, 0xa
jne 0x474985
cmp dword [ebp - 0x114], 0x55f0
jae 0x474976
lea eax, [ebp - 4]
mov edx, 0x474b20
call fcn.00405c18
jmp 0x474997
lea eax, [ebp - 4]
mov edx, 0x474b44
call fcn.00405c18
jmp 0x474997
cmp eax, 0xb
jb 0x474997
lea eax, [ebp - 4]
mov edx, 0x474b44
call fcn.00405c18
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405bc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4749be
lea eax, [ebp - 4]
call fcn.00405bb4
ret
Function at 0x475148
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x118], ecx
test dl, dl
je 0x475167
add esp, 0xfffffff0
call fcn.004041a8
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x47520b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, esi
call fcn.004752c0
mov dword [esi + 0x18], 0xf003f
mov byte [esi + 0xc], 1
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x114], 0x114
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_GetVersionExW
cmp dword [ebp - 0x110], 5
jne 0x4751bd
call fcn.00474d5c
test al, al
jne 0x4751eb
cmp dword [ebp - 0x110], 5
ja 0x4751eb
lea edx, [ebp - 0x118]
xor eax, eax
call fcn.00474754
mov eax, dword [ebp - 0x118]
mov edx, 0x47523c
call fcn.0040bcb4
test al, al
jne 0x4751eb
xor eax, eax
jmp 0x4751ed
mov al, 1
mov byte [0x50838c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475212
lea eax, [ebp - 0x118]
call fcn.00405bb4
ret

Function at 0x4757e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004750f0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00405c50
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x475843
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5028b0]
mov dl, 1
mov eax, dword [0x474f40]
call fcn.00413ad8
call fcn.0040474c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x475880
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4759db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
call fcn.004750f0
mov dword [ebp - 0xc], eax
mov eax, esi
xor edx, edx
call fcn.00405bc4
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x4758d5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x4758d8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
dec eax
sub al, 2
jae 0x4758e7
add dword [ebp - 0x10], 2
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x47584c]
call fcn.004075b8
add esp, 4
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.00403638
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, edi
call fcn.00405c50
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
test ebx, ebx
jne 0x47593d
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00405d70
mov edx, dword [esi]
mov eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x475950
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x802
jle 0x4759a5
mov eax, edx
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x475968
sub esi, 4
mov esi, dword [esi]
push 0x4759f8
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c428
push dword [ebp - 0x1c]
push 0x475a38
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.0040c428
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00406164
mov eax, dword [ebp - 0x18]
xor ecx, ecx
mov dl, 1
call fcn.00475028
mov eax, dword [ebp - 0xc]
call fcn.00475120
mov edx, dword [ebp + 0xc]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4759e2
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405bbc
lea eax, [ebp - 4]
mov edx, dword [0x47584c]
call fcn.004075c4
ret

Function at 0x476498
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00477050
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x476f4c
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x40
jle 0x476f91
lea eax, [ebp - 0x60]
call fcn.00476498
mov edx, ebx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.004764c0
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00476594
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x476f93
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0xe0]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x476fbc
movzx ebx, byte [esi]
xor bl, 0x36
mov byte [eax], bl
movzx ebx, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x476fc2
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x476fa1
lea eax, [ebp - 0x60]
call fcn.00476498
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.004764c0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
call fcn.00476e34
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00476594
lea eax, [ebp - 0x60]
call fcn.00476498
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.004764c0
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov ecx, 0x10
call fcn.004764c0
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.00476594
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47c25c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x47c270
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x47c26f
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.00405818
xor ebx, ebx
cmp esi, dword [esp]
jge 0x47c3d4
inc ebx
mov eax, edi
call fcn.004057ac
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x47c38d
inc ebx
mov eax, edi
call fcn.004057ac
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x47c35c
inc ebx
mov eax, edi
call fcn.004057ac
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004057ac
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
jmp 0x47c3c8
inc ebx
mov eax, edi
call fcn.004057ac
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004057ac
mov byte [eax + ebx - 1], 0x3d
jmp 0x47c3c8
inc ebx
mov eax, edi
call fcn.004057ac
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004057ac
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.004057ac
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x47c2a4
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47c928
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
xor eax, eax
push ebp
push 0x47cab1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.00474680
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x47ca93
xor eax, eax
push ebp
push 0x47ca8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.00403638
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.004746a0
mov ebx, eax
jmp 0x47ca6d
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00405dac
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040d394
mov edx, dword [ebp - 0x244]
mov eax, 0x47cacc
call fcn.0040bcb4
test al, al
je 0x47ca5d
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x47ca5d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x4f68c4]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x47ca5d
xor eax, eax
push ebp
push 0x47ca56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x47ca3f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00404840
call fcn.00404840
jmp 0x47ca93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca5d
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.004746c0
mov ebx, eax
test ebx, ebx
jne 0x47c9ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca93
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cab8
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00405bbc
ret
Function at 0x47ca5d
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
push ebx
xor eax, eax
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x248], eax
xor eax, eax
push ebp
push 0x47cab1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor edx, edx
mov eax, 2
call fcn.00474680
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x47ca93
xor eax, eax
push ebp
push 0x47ca8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x240]
xor ecx, ecx
mov edx, 0x22c
call fcn.00403638
mov dword [ebp - 0x240], 0x22c
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.004746a0
mov ebx, eax
jmp 0x47ca6d
lea eax, [ebp - 0x248]
lea edx, [ebp - 0x21c]
mov ecx, 0x104
call fcn.00405dac
mov eax, dword [ebp - 0x248]
lea edx, [ebp - 0x244]
call fcn.0040d394
mov edx, dword [ebp - 0x244]
mov eax, 0x47cacc
call fcn.0040bcb4
test al, al
je 0x47ca5d
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x238]
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
test eax, eax
je 0x47ca5d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [0x4f68c4]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x47ca5d
xor eax, eax
push ebp
push 0x47ca56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0
jne 0x47ca3f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
call fcn.00404840
call fcn.00404840
jmp 0x47ca93
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca5d
mov eax, dword [ebp - 0x10]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
lea edx, [ebp - 0x240]
mov eax, dword [ebp - 8]
call fcn.004746c0
mov ebx, eax
test ebx, ebx
jne 0x47c9ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca93
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cab8
lea eax, [ebp - 0x248]
mov edx, 2
call fcn.00405bbc
ret

Function at 0x47cae8
Capabilities:
Get session information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
cmp dword [0x4f68c8], 0
je 0x47cb02
call dword [0x4f68c8]
mov dword [ebp - 4], eax
jmp 0x47cb07
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47cb75
cmp dword [ebp - 4], 0xffffffff
je 0x47cb75
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 8
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x4f68c4]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x47cb70
xor eax, eax
push ebp
push 0x47cb69
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp byte [eax], 0
jne 0x47cb4d
call fcn.00404840
jmp 0x47cb89
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cb75
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47cb81
cmp dword [ebp - 4], 0xffffffff
jne 0x47cb89
call fcn.0047c928
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x47cde4
Capabilities:
Get session information
Get session user name

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.00405bc4
cmp byte [0x5083c4], 0
je 0x47ce1b
xor eax, eax
call fcn.0047cd6c
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jbe 0x47ce8a
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.0047ceac
jmp 0x47ce8a
lea eax, [esp + 4]
push eax
lea eax, [esp + 4]
push eax
push 5
call fcn.0047cae8
push eax
mov eax, dword [0x4f68c4]
push eax
call sub.wtsapi32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x47ce68
mov eax, ebx
mov edx, dword [esp]
call fcn.00405d70
mov eax, dword [ebx]
mov edx, 0x47ce9c
call fcn.0040bcb4
test al, al
je 0x47ce5f
mov eax, ebx
xor edx, edx
call fcn.00405bc4
mov eax, dword [esp]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
cmp dword [ebx], 0
jne 0x47ce8a
xor eax, eax
call fcn.0047cd6c
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jbe 0x47ce8a
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.0047ceac
pop ecx
pop edx
pop ebx
ret

Function at 0x47d1ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405bac
xor eax, eax
push ebp
push 0x47d26a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x47d24c
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00407fec
mov eax, dword [ebp - 8]
test eax, eax
je 0x47d1f4
sub eax, 4
mov eax, dword [eax]
mov esi, eax
lea eax, [esi + 4]
mov dword [edi], eax
mov eax, dword [edi]
push eax
call fcn.00407eb0
pop ecx
mov dword [ebx], eax
mov ebx, dword [ebx]
mov eax, edi
mov edx, ebx
mov ecx, 4
call fcn.004031a0
add ebx, 4
lea eax, [ebp - 8]
call fcn.004057ac
mov ecx, esi
mov edx, ebx
call fcn.004031a0
mov ecx, esi
dec ecx
test ecx, ecx
jl 0x47d24c
inc ecx
xor esi, esi
mov eax, esi
mov edi, 0x16
cdq
idiv edi
movzx eax, byte [edx + 0x4f68e8]
xor byte [ebx], al
inc ebx
inc esi
dec ecx
jne 0x47d234
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d271
lea eax, [ebp - 8]
call fcn.00404f74
lea eax, [ebp - 4]
call fcn.00405bb4
ret
Function at 0x489cfc
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x489d05
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x489ecb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0048a060
xor eax, eax
push ebp
push 0x489e9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x489d55
call fcn.00404840
jmp 0x489ea3
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 8
je 0x489e2a
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x489daa
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x489daa
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00489bd0
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406164
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x489de9
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00489bd0
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00406164
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00405c50
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x489e86
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00489bd0
push dword [ebp - 0x24]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x489ee8
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00406164
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00489bf0
jmp 0x489e86
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 1
je 0x489e4d
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x489e4d
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 4
je 0x489e63
mov eax, ebx
call fcn.00405c50
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x30], 2
je 0x489e86
lea eax, [ebp - 0x28]
mov ecx, 0x489ee8
mov edx, ebx
call fcn.00406080
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00489bf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489ea3
mov eax, dword [ebp - 4]
call fcn.0048a068
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489ed2
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00405bbc
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00405bbc
ret
Function at 0x48baa8
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x4fa330
mov ecx, dword [esp]
lea edx, [esp + 0xc]
movzx ebx, byte [edi]
movzx ebx, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x48bac7
mov esi, 1
mov edx, 0x4fa438
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
add ecx, ecx
add ecx, ecx
movzx ebx, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
movzx ebx, byte [esp + eax + 0x11]
add edi, ebx
movzx ebx, byte [esp + eax + 0xd]
add ebx, ebx
add ebx, ebx
add ebx, ebx
movzx ebp, byte [esp + eax + 0xe]
add ebp, ebp
add ebp, ebp
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x48bb40
dec ebx
je 0x48bb62
dec ebx
je 0x48bb84
dec ebx
je 0x48bba5
jmp 0x48bbbf
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 8
movzx ebx, bl
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x48bbbf
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 4
movzx ebx, bl
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x48bbbf
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 2
movzx ebx, bl
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x48bbbf
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
movzx ebx, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x48bb30
inc esi
add edx, 0x40
cmp esi, 9
jne 0x48bae3
mov esi, 0x20
mov eax, 0x4fa360
mov edx, dword [esp + 4]
movzx ecx, byte [eax]
movzx ecx, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x48bbe4
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48bc20
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
movzx eax, dl
movzx ebx, byte [eax + 0x4fa3e7]
test bl, bl
jbe 0x48bc51
lea eax, [esi + 0x3e0]
call fcn.0048bbfc
lea eax, [esi + 0x3fc]
call fcn.0048bbfc
dec bl
jne 0x48bc37
mov cl, 0x30
mov edi, 0x4fa3b8
mov eax, dword [esp]
movzx edx, byte [edi]
cmp dl, 0x1c
ja 0x48bc72
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x48bc7f
movzx edx, dl
movzx edx, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x48bc5b
pop edx
pop edi
pop esi
pop ebx
ret