joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471f80
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4720c2
cmp dword [ebp + 0xc], 0
je 0x4720c2
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp + 8]
push eax
push 0
push 0
push 1
push esi
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x471fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x471fce
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push edi
push ecx
call fcn.0047eeb1
add esp, 4
mov edi, eax
mov eax, dword [ebp + 8]
lea edx, [ebp + 8]
push edx
push eax
push edi
push 1
push esi
call ebx
test eax, eax
je 0x4720ae
mov eax, dword [edi]
mov dword [ebp - 4], eax
test eax, eax
je 0x4720ae
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4720ae
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push 0
push 1
push edx
mov dword [ebp + 8], 0
call ebx
test eax, eax
jne 0x472035
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4720a3
mov eax, dword [ebp + 8]
push eax
call fcn.0047eeb1
mov edx, dword [ebp + 8]
add esp, 4
lea ecx, [ebp + 8]
push ecx
push edx
mov esi, eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push eax
call ebx
test eax, eax
je 0x472094
mov ebx, dword [esi]
test ebx, ebx
je 0x472094
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x472094
mov ecx, dword [ebp - 4]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
cmp eax, 1
push edi
sete bl
call fcn.00481649
push esi
call fcn.00481649
add esp, 8
pop edi
mov al, bl
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00481649
push esi
call fcn.00481649
add esp, 8
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
call fcn.00481649
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4720d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4721b7
cmp word [ebx], 0
je 0x4721b7
test edi, edi
je 0x4721b7
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x47212b
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret 8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.00480280
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x472193
lea esp, [esp]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.004811ac
add esp, 8
test eax, eax
jne 0x472182
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.00408290
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x472160
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi]
xor eax, eax
cmp edx, dword [edi + 4]
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00480264
mov esp, ebp
pop ebp
ret 8
Function at 0x472410
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x545935
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [ebp - 0x2ba]
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2c0], ebx
call fcn.00472320
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x218], ax
call fcn.00480280
lea edx, [ebp - 0x250]
push edx
call fcn.00469b80
add esp, 0x10
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.0041f180
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], edi
jb 0x4724b7
mov eax, dword [ebp - 0x250]
push eax
call fcn.00480102
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, 7
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x250], dx
cmp byte [0x594f68], cl
jne 0x472580
mov dword [ebp - 0x220], eax
push 0x23
mov dword [ebp - 0x224], ecx
xor eax, eax
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
call fcn.00401b70
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x26c]
mov ebx, 1
push edx
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c0], ebx
call fcn.0041d9a0
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x472542
lea eax, [ebp - 0x26c]
push 0x54edcc
push eax
call fcn.004811ac
add esp, 8
test eax, eax
sete byte [ebp - 0x2b9]
cmp dword [ebp - 0x258], edi
jb 0x472570
mov eax, dword [ebp - 0x26c]
push eax
call fcn.00480102
add esp, 4
cmp byte [ebp - 0x2b9], 0
mov byte [ebp - 0x2b9], 0
je 0x472587
mov byte [ebp - 0x2b9], 1
mov dword [ebp - 4], 4
test bl, 1
je 0x4725b3
and ebx, 0xfffffffe
mov dword [ebp - 0x2c0], ebx
cmp dword [ebp - 0x220], edi
jb 0x4725b3
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00480102
add esp, 4
cmp byte [ebp - 0x2b9], 0
je 0x4725db
push 0xa
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push 0x104
push edx
mov edx, dword [ebp + 8]
xor ecx, ecx
call fcn.00471c60
add esp, 0x10
jmp 0x4725f0
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x218]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x472610
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401b70
or ebx, 2
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 4], 1
call fcn.0041f7b0
cmp byte [ebp - 0x2ba], 0
je 0x472655
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x479400
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546b52
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 4
mov ebx, ecx
call fcn.004801e4
add esp, 4
mov dword [ebp - 0x254], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x479452
mov ecx, eax
call fcn.0047af30
mov edi, eax
mov esi, dword [ebx + 0x18]
mov dword [ebp - 4], 0xffffffff
cmp edi, esi
je 0x479477
test esi, esi
je 0x479474
mov ecx, esi
call fcn.0047afc0
push esi
call fcn.00480102
add esp, 4
mov dword [ebx + 0x18], edi
mov ecx, ebx
call fcn.00478f80
test al, al
jne 0x47948a
or eax, 0xffffffff
jmp 0x4795e5
push 0x206
xor edi, edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call fcn.00480280
add esp, 0xc
push edi
push 0x1a
lea edx, [ebp - 0x218]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [ebp - 0x234], ax
mov esi, 7
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4794e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00401b70
push 0x55c2ac
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 4], 1
call fcn.00404e30
add esp, 0xc
cmp dword [ebp - 0x220], 8
mov byte [ebp - 4], 3
jb 0x479540
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00480102
add esp, 4
xor edx, edx
push 0x24
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], dx
call fcn.004801e4
mov esi, eax
add esp, 4
mov dword [ebp - 0x254], esi
mov byte [ebp - 4], 4
cmp esi, edi
je 0x4795a3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x258], esp
push 0xffffffffffffffff
push edi
lea edx, [ebp - 0x250]
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], edi
push edx
mov word [ecx], ax
call fcn.00401a70
mov ecx, esi
call fcn.00478dc0
mov esi, eax
jmp 0x4795a5
xor esi, esi
mov ecx, dword [ebx + 0x14]
mov byte [ebp - 4], 3
cmp esi, ecx
je 0x4795bf
cmp ecx, edi
je 0x4795bc
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [ebx + 0x14], esi
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
cmp dword [ebp - 0x23c], 8
mov esi, eax
jb 0x4795e3
mov eax, dword [ebp - 0x250]
push eax
call fcn.00480102
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x47ad50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 1
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push 1
push 0
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x47ad40
push 0
push 0
mov dword [ebp - 4], 0
call fcn.004837bf
add esp, 0x18
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47b680
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x547010
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
xor ecx, ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x47b6d7
mov eax, dword [eax]
lea edx, [ebp - 0x30]
push edx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x47b71e
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, esi
mov word [esi], ax
call fcn.00402560
cmp dword [ebp - 0x18], 8
jb 0x47b80d
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x47b805
cmp dword [edi + 0x14], 8
jb 0x47b726
mov edi, dword [edi]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
push eax
push ebx
lea ecx, [ebp - 0x38]
push ecx
push ebx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x47b76c
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00402560
cmp dword [ebp - 0x18], 8
jmp 0x47b7ff
mov ebx, dword [ebp - 0x34]
add ebx, 2
push ebx
call fcn.0047eeb1
mov edi, eax
mov dword [ebp - 0x40], edi
push ebx
push 0
push edi
mov byte [ebp - 4], 1
call fcn.00480280
mov eax, dword [ebp - 0x3c]
mov ebx, 8
add esp, 0x10
cmp dword [eax + 0x14], ebx
jb 0x47b79c
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x34]
push ecx
push edi
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x47b7c0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x47b7d5
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x47b7d5
cmp eax, 2
ja 0x47b7d5
push edi
lea ecx, [ebp - 0x2c]
call fcn.00401fa0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea edx, [ebp - 0x2c]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.00402560
push edi
call fcn.00481649
add esp, 4
cmp dword [ebp - 0x18], ebx
jb 0x47b80d
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00480102
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00480264
mov esp, ebp
pop ebp
ret
Function at 0x47d000
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], eax
cmp ebx, eax
jbe 0x47d103
mov ecx, dword [ebp + 8]
push esi
mov edx, 1
sub edx, ecx
mov esi, 2
sub esi, ecx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [ebp - 8], edx
jmp 0x47d03b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add edi, ecx
movzx ecx, byte [edi]
shr ecx, 2
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi], cl
mov cl, byte [edi]
and cl, 3
add edx, edi
shl cl, 4
cmp edx, ebx
jae 0x47d0d6
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov bl, byte [edx + ebx + 1]
shr bl, 4
add bl, cl
movzx ecx, bl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ebx, dword [ebp - 0xc]
mov byte [eax + esi + 1], cl
mov ecx, dword [ebp + 8]
mov cl, byte [edx + ecx + 1]
and cl, 0xf
add cl, cl
add ebx, edi
add cl, cl
cmp ebx, dword [ebp + 0xc]
jae 0x47d0c2
mov edi, dword [ebp + 8]
mov dl, byte [edx + edi + 2]
mov bl, dl
shr dl, 6
and bl, 0x3f
add dl, cl
movzx edx, dl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, bl
mov byte [eax + esi + 2], cl
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 3], cl
jmp 0x47d0ea
movzx ecx, cl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 2], cl
mov byte [eax + esi + 3], 0x3d
jmp 0x47d0ed
movzx edx, cl
mov cl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + esi + 1], cl
mov word [eax + esi + 2], 0x3d3d
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
add edx, 3
add eax, 4
mov dword [ebp - 4], edx
cmp edx, ebx
jb 0x47d035
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47d110
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov al, 0x3d
cmp byte [esi + edi - 1], al
jne 0x47d12d
dec edi
cmp byte [esi + edi - 1], al
je 0x47d126
xor eax, eax
mov dword [ebp + 0xc], eax
cmp edi, eax
jbe 0x47d1e4
mov ecx, 2
sub ecx, esi
mov dword [ebp - 4], ecx
mov ecx, 3
sub ecx, esi
mov dword [ebp - 8], ecx
push ebx
nop
movsx ecx, byte [esi + 1]
movsx edx, byte [esi]
mov dl, byte [edx + 0x55c5e8]
mov cl, byte [ecx + 0x55c5e8]
add dl, dl
mov bl, cl
sar bl, 4
add dl, dl
and bl, 3
or dl, bl
mov ebx, dword [ebp + 0x10]
mov byte [eax + ebx], dl
mov edx, dword [ebp - 4]
add edx, esi
inc eax
cmp edx, edi
jae 0x47d1cf
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movsx edx, byte [edx + ebx + 2]
mov dl, byte [edx + 0x55c5e8]
mov bl, dl
sar bl, 2
shl cl, 4
and bl, 0xf
or bl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], bl
mov ecx, dword [ebp - 8]
add ecx, esi
inc eax
cmp ecx, edi
jae 0x47d1cf
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
movsx ecx, byte [ecx + ebx + 3]
mov cl, byte [ecx + 0x55c5e8]
shl dl, 6
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 0xc]
add ecx, 4
add esi, 4
mov dword [ebp + 0xc], ecx
cmp ecx, edi
jb 0x47d150
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47d320
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov ebx, dword [eax]
cmp ebx, 0x10
je 0x47d339
cmp ebx, 0x20
jne 0x47d52a
shr ebx, 2
mov dword [ebp - 8], ebx
mov edx, 4
cmp ebx, 4
jl 0x47d34b
mov edx, ebx
push edi
mov edi, dword [ebp + 8]
lea edx, [edx*4 + 0x1c]
mov dword [ebp - 4], edx
test edi, edi
je 0x47d529
mov dword [edi], 0x10
mov dword [edi + 4], edx
add edi, 8
xor edx, edx
push esi
test ebx, ebx
jle 0x47d3a9
add eax, 5
jmp 0x47d380
movzx ecx, byte [eax - 1]
movzx esi, byte [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 1]
shl ecx, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
mov dword [edi + edx*4], ecx
inc edx
add eax, 4
cmp edx, ebx
jl 0x47d380
mov ecx, dword [edi + edx*4 - 4]
mov esi, ebx
cmp ebx, dword [ebp - 4]
jge 0x47d49d
mov dword [ebp + 8], 0
mov dword [ebp - 0xc], edi
mov eax, esi
cdq
idiv ebx
test edx, edx
jne 0x47d42c
mov eax, dword [ebp + 8]
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx ebx, byte [edx + str.cw]
cdq
idiv dword [ebp - 8]
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx eax, byte [eax + 0x55c668]
xor ebx, eax
movzx eax, byte [edx + str.cw]
shl ebx, 8
mov edx, ecx
xor ebx, eax
and edx, 0xff
movzx eax, byte [edx + str.cw]
shl ebx, 8
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
xor ebx, eax
shl ebx, 8
xor ecx, ebx
mov ebx, dword [ebp - 8]
jmp 0x47d482
cmp ebx, 6
jle 0x47d482
cmp edx, 4
jne 0x47d482
mov edx, ecx
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, ecx
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
xor eax, edx
mov edx, ecx
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
xor eax, edx
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0xc]
xor ecx, dword [eax]
inc dword [ebp + 8]
mov dword [edi + esi*4], ecx
inc esi
add eax, 4
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 4]
jl 0x47d3c2
xor edx, edx
dec esi
js 0x47d528
mov eax, dword [ebp - 4]
lea ecx, [edi + eax*4]
mov dword [ebp + 8], ecx
nop
mov ecx, dword [edi + esi*4]
cmp edx, 4
jl 0x47d517
cmp esi, 4
jl 0x47d517
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + str.cw]
mov eax, dword [eax*4 + 0x55dc88]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor eax, dword [ebx*4 + 0x55e088]
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
xor eax, dword [ebx*4 + 0x55d888]
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
xor eax, dword [ecx*4 + 0x55e488]
jmp 0x47d519
mov eax, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add ecx, 4
inc edx
dec esi
mov dword [ebp + 8], ecx
jns 0x47d4b0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x480264
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58d038]
jne 0x48026e
repz ret
jmp fcn.004891c3

Function at 0x495767
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58d038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004887da
and dword [ebp - 0x14], 0
cmp dword [0x595f6c], 0
mov dword [ebp - 0x18], eax
jne 0x49581a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4958c2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x565330
push ebx
call edi
test eax, eax
je 0x4958c2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x595f6c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x595f70], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x595f74], eax
call edi
push eax
call esi
mov dword [0x595f7c], eax
test eax, eax
je 0x49581a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x595f78], eax
mov eax, dword [0x595f78]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x495873
cmp dword [0x595f7c], ecx
je 0x495873
push eax
call esi
push dword [0x595f7c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x495873
test ebx, ebx
je 0x495873
call edi
test eax, eax
je 0x49586a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x49586a
test byte [ebp - 8], 1
jne 0x495873
or dword [ebp + 0x10], 0x200000
jmp 0x4958a6
mov eax, dword [0x595f70]
cmp eax, dword [ebp - 0x18]
je 0x4958a6
push eax
call esi
test eax, eax
je 0x4958a6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4958a6
mov eax, dword [0x595f74]
cmp eax, dword [ebp - 0x18]
je 0x4958a6
push eax
call esi
test eax, eax
je 0x4958a6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x595f6c]
call esi
test eax, eax
je 0x4958c2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4958c4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00480264
leave
ret
Function at 0x4a26b0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x8c]
push ebx
push esi
mov esi, dword [eax]
push edi
add ecx, 8
mov dword [ebp - 4], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx - 8]
add ecx, 0x10
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5660d8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5662d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5664d8]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5666d8]
mov eax, dword [ecx - 0x14]
xor edx, edi
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5661d8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5663d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5665d8]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5667d8]
xor edx, edi
mov eax, edx
ror eax, 4
xor eax, dword [ecx - 0x10]
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5660d8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5662d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5664d8]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5666d8]
mov eax, dword [ecx - 0xc]
xor esi, edi
xor eax, edx
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x5661d8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5663d8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x5665d8]
and eax, 0x3f
xor edi, dword [eax*4 + 0x5667d8]
xor esi, edi
dec dword [ebp - 4]
jne 0x4a26d1
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 0xc]
pop edi
mov dword [edx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8