joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d990
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44d9da
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44da09
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44da4b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4640d0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x464108
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00462187
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046215f
jmp 0x464114
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4657c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x465804
call fcn.0046b27a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x465804
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4657fb
xor eax, eax
jmp 0x46580c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00465812
pop edi
pop esi
pop ebx
ret 4

Function at 0x46b7aa
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46b7d8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46b7f6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046b710
jmp 0x46b7f6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46b7f6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046b710
test edi, edi
mov eax, edi
jne 0x46b7e0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40180f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40181e
pop dword [ebp - 0xc]
mov eax, 0x55cb1723
add eax, 0xaa7500fb
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x81cdad67
add dword [ebp - 0x1c], 0xcc8497e4
mov dword [ebp - 0x18], 0x83d02dde
add dword [ebp - 0x18], 0xae631e67
mov dword [ebp - 0x14], 0xa1446650
add dword [ebp - 0x14], 0xab07ddde
mov dword [ebp - 0x10], 0x14fa9fa2
add dword [ebp - 0x10], 0xeb05605e
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x29a47e37
add eax, 0xd69c5215
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xa7bb8a31
sub dword [ebp - 0x1c], 0x334920db
mov dword [ebp - 0x18], 0xf4b64a1e
sub dword [ebp - 0x18], 0xb349e8a9
mov dword [ebp - 0x14], 0xce14d07b
add dword [ebp - 0x14], 0x955a9bf1
mov dword [ebp - 0x10], 0x74089517
add dword [ebp - 0x10], 0x8bf76ae9
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x5b86b5d7
add eax, 0xa4ba1a71
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39d01
push 0
call eax
mov ecx, 0xc5e0ca7
sub ecx, 0xc5dc3ef
mov edx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0xc]
mov ebx, 0x91d8b64c
add dword [ebp - 8], ebx
mov edi, dword [esi]
sub dword [ebp - 8], 0x5d6314f2
sub edi, ebx
mov dword [edx], edi
xor dword [ebp - 4], 0x35e683a3
add edx, 4
add esi, 4
loop 0x401934
add eax, 0x115b3
mov ebx, eax
add eax, 0x4315ed01
sub eax, 0x4315ecfc
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x8b1ad0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516f34
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x682790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0xc]
call dword [fcn.0051c3fc]
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
mov dword [esi], 0x5220c0
call dword [fcn.0051c768]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call dword [fcn.0051c768]
push dword [ebp + 8]
lea ecx, [esi + 0x1c]
mov byte [esi + 0x18], 0
call dword [fcn.0051c360]
lea ecx, [esi + 0x20]
call dword [fcn.0051c35c]
lea ecx, [esi + 0x30]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call dword [fcn.0051c35c]
mov eax, dword [0x51c4ac]
mov dword [esi + 0x34], eax
lea ecx, [esi + 0x38]
call dword [fcn.0051c35c]
lea ecx, [esi + 0x3c]
call dword [fcn.0051c35c]
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 9
call dword [fcn.0051c768]
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 0xa
call dword [fcn.0051c768]
mov dword [esi + 0x50], 0
mov eax, esi
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0x80000000
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0x80000000
mov byte [esi + 0x68], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x8b1d60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516f80
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x682790]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x40], 0
mov dword [esi], 0x5220c0
je 0x8b1f05
lea edi, [esi + 0xc]
mov dword [ebp - 0x10], edi
test edi, edi
je 0x8b1db0
mov ecx, edi
call dword [fcn.0051c76c]
or dword [ebp - 0x10], 1
mov bl, byte [esi + 0x18]
lea ecx, [ebp - 0x10]
call dword [fcn.0051c770]
test bl, bl
je 0x8b1eb7
mov ebx, dword [fcn.0051c76c]
lea ecx, [esi + 8]
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x8b1dda
call ebx
or dword [ebp - 0x10], 1
lea ecx, [ebp - 0x10]
mov dword [esi + 0x10], 2
call dword [fcn.0051c770]
push 0
lea ecx, [ebp - 0x1c]
call dword [0x51c860]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x80000000
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x80000000
call dword [0x51c88c]
lea ecx, [ebp - 0x2c]
call dword [0x51c898]
test edx, edx
jg 0x8b1eae
jl 0x8b1e34
cmp eax, 0x2710
jae 0x8b1eae
push ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], 0
call dword [0x51c868]
cmp dword [esi + 0x40], 0
je 0x8b1e89
mov dword [ebp - 0x10], edi
test edi, edi
je 0x8b1e5b
mov ecx, edi
call ebx
or dword [ebp - 0x10], 1
mov bl, byte [esi + 0x18]
lea ecx, [ebp - 0x10]
call dword [fcn.0051c770]
test bl, bl
je 0x8b1e89
lea ecx, [ebp - 0x2c]
call dword [0x51c898]
mov ebx, dword [fcn.0051c76c]
test edx, edx
jl 0x8b1e34
jg 0x8b1eae
cmp eax, 0x2710
jb 0x8b1e34
jmp 0x8b1eae
push 0x19
push 0x5220ec
call dword [fcn.0051c36c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.008b2b10
add esp, 0xc
lea ecx, [ebp - 0x10]
call dword [fcn.0051c364]
lea ecx, [ebp - 0x1c]
call dword [0x51c864]
cmp dword [esi + 0x40], 0
je 0x8b1f05
mov dword [ebp - 0x10], edi
test edi, edi
je 0x8b1ed0
mov ecx, edi
call dword [fcn.0051c76c]
or dword [ebp - 0x10], 1
mov bl, byte [esi + 0x18]
lea ecx, [ebp - 0x10]
call dword [fcn.0051c770]
test bl, bl
je 0x8b1f05
push 0x17
push 0x522108
call dword [fcn.0051c36c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.008b2b10
add esp, 0xc
lea ecx, [ebp - 0x14]
call dword [fcn.0051c364]
mov ebx, dword [0x51c434]
lea ecx, [esi + 0x4c]
call ebx
lea ecx, [esi + 0x48]
call ebx
mov edi, dword [esi + 0x44]
mov dword [ebp - 4], 0
test edi, edi
je 0x8b1f4f
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
dec eax
jne 0x8b1f39
mov eax, dword [edi + 8]
push edi
call eax
add esp, 4
lock xadd dword [edi], ebx
dec ebx
jne 0x8b1f49
push edi
call fcn.009310c0
add esp, 4
mov ebx, dword [0x51c434]
lea ecx, [esi + 0x3c]
call dword [fcn.0051c364]
lea ecx, [esi + 0x38]
call dword [fcn.0051c364]
lea ecx, [esi + 0x34]
call fcn.0089c440
lea ecx, [esi + 0x30]
call dword [fcn.0051c364]
lea ecx, [esi + 0x20]
call dword [fcn.0051c364]
lea ecx, [esi + 0x1c]
call dword [fcn.0051c364]
lea ecx, [esi + 0xc]
call ebx
lea ecx, [esi + 8]
call ebx
mov ecx, esi
call dword [fcn.0051c400]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8c8d90
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x8c8de4
push ebx
dec edi
push ebp
mov ebp, dword [esp + 0x10]
shr edi, 4
push esi
mov esi, dword [esp + 0x18]
inc edi
nop dword [eax]
movups xmm0, xmmword [esi]
push ebp
push esi
call fcn.008c90d0
add esp, 8
lea ecx, [ebp + 0xf0]
mov edx, 0x10
mov al, byte [ecx]
lea ecx, [ecx + 1]
xor byte [esi], al
inc esi
sub edx, 1
jne 0x8c8dc8
movups xmmword [ebp + 0xf0], xmm0
sub edi, 1
jne 0x8c8db0
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x8c8df0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
lea eax, [ebp + 0xf0]
mov dword [esp + 0xc], eax
mov edx, eax
test ebx, ebx
je 0x8c8e48
dec ebx
push esi
shr ebx, 4
push edi
mov edi, dword [esp + 0x18]
inc ebx
mov eax, edi
sub edx, edi
mov esi, 0x10
nop
mov cl, byte [edx + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x8c8e20
push ebp
push edi
call fcn.008c8e90
mov edx, edi
add esp, 8
add edi, 0x10
sub ebx, 1
jne 0x8c8e15
mov eax, dword [esp + 0x14]
pop edi
pop esi
movups xmm0, xmmword [edx]
pop ebp
pop ebx
movups xmmword [eax], xmm0
ret
Function at 0x8c90d0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, 4
push esi
mov esi, dword [esp + 0x14]
mov ecx, esi
push edi
lea edx, [ebp + 0xe0]
nop word [eax + eax]
mov edi, 4
mov al, byte [edx]
inc edx
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x8c90f5
sub ebx, 1
jne 0x8c90f0
lea eax, [ebp + 0xd0]
mov byte [esp + 0x18], 0xd
mov ebp, eax
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
nop dword [eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x65bd20]
mov byte [ecx - 4], al
sub edx, 1
jne 0x8c9180
inc edi
sub ebx, 1
jne 0x8c9170
mov eax, esi
mov edx, ebp
mov ebx, 4
mov edi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x8c91a8
sub ebx, 1
jne 0x8c91a3
push esi
call fcn.008c9280
mov dl, byte [esp + 0x1c]
add esp, 4
dec dl
sub ebp, 0x10
mov byte [esp + 0x18], dl
test dl, dl
jne 0x8c9112
movzx eax, byte [esi + 9]
mov edi, esi
mov cl, byte [esi + 0xd]
mov ebx, 4
mov ebp, dword [esp + 0x1c]
mov byte [esi + 0xd], al
movzx eax, byte [esi + 5]
mov byte [esi + 9], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 1], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 7], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xb], al
mov byte [esi + 0xf], cl
mov ecx, edi
mov edx, 4
nop dword [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + 0x65bd20]
mov byte [ecx - 4], al
sub edx, 1
jne 0x8c9240
inc edi
sub ebx, 1
jne 0x8c9231
sub ebp, esi
lea edx, [ebx + 4]
nop
mov ecx, 4
mov al, byte [esi + ebp]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x8c9265
sub edx, 1
jne 0x8c9260
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8c9c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4b0
mov eax, dword [0x682790]
xor eax, esp
mov dword [esp + 0x4ac], eax
movups xmm0, xmmword [0x65c2e8]
mov eax, dword [esp + 0x4bc]
push ebx
movups xmmword [esp + 0x78], xmm0
mov ebx, dword [esp + 0x4c8]
movups xmm0, xmmword [0x65c2f8]
push ebp
mov ebp, dword [esp + 0x4c8]
movups xmmword [esp + 0x8c], xmm0
mov dword [esp + 8], eax
movups xmm0, xmmword [0x65c308]
mov ax, word [0x65c358]
push esi
mov esi, dword [esp + 0x4c0]
movups xmmword [esp + 0xa0], xmm0
mov word [esp + 0x7c], ax
movq xmm0, qword [0x65c318]
movzx eax, byte [0x65c35a]
movq qword [esp + 0xb0], xmm0
movups xmm0, xmmword [0x65c320]
push edi
mov edi, dword [esp + 0x4c8]
movups xmmword [esp + 0x48], xmm0
mov byte [esp + 0x82], al
lea eax, [esp + 0x38]
movups xmm0, xmmword [0x65c330]
push 1
push eax
movups xmmword [esp + 0x60], xmm0
and edi, 7
mov dword [esp + 0x3c], 0
movups xmm0, xmmword [0x65c340]
movups xmmword [esp + 0x70], xmm0
movq xmm0, qword [0x65c350]
movq qword [esp + 0x80], xmm0
xorps xmm0, xmm0
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x40], xmm0
call dword [fcn.0051cfc0]
mov eax, dword [esp + 0x48]
cdq
and edx, 0x3ff
add eax, edx
sar eax, 0xa
mov dword [esp + 0x48], eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
call dword [0x51cfc4]
mov al, byte [edi + 0x65c230]
add esp, 0x10
movsx eax, al
push eax
push esi
push dword [esp + 0x4e0]
push ebx
test ebp, ebp
je 0x8c9dd1
push ebp
call dword [fcn.0051c130]
push eax
mov eax, 0x10624dd3
mul dword [esp + 0x58]
mov eax, dword [esp + 0x40]
shr edx, 6
add eax, 0x76c
push edx
push dword [esp + 0x30]
push dword [esp + 0x38]
push dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x50]
inc eax
push eax
push dword [esp + 0x50]
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0xf4]
push 0x400
push eax
call fcn.008ca100
add esp, 0x40
jmp 0x8c9e22
call dword [fcn.0051c130]
push eax
mov eax, 0x10624dd3
mul dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
shr edx, 6
add eax, 0x76c
push edx
push dword [esp + 0x2c]
push dword [esp + 0x34]
push dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
inc eax
push eax
push dword [esp + 0x4c]
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0xf0]
push 0x400
push eax
call fcn.008ca100
add esp, 0x3c
mov esi, eax
lea eax, [esp + 0x4dc]
push eax
push 0
push dword [esp + 0x18]
mov eax, 0x400
sub eax, esi
push eax
lea eax, [esp + 0xcc]
add eax, esi
push eax
call fcn.008b1a90
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call dword [fcn.0051cf18]
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
mov ecx, 0x3ff
add esi, eax
mov eax, dword [0x985724]
cmp esi, ecx
cmovl ecx, esi
mov byte [esp + ecx + 0xbc], 0xa
inc ecx
push ecx
test eax, eax
je 0x8c9e91
lea ecx, [esp + 0xc0]
push ecx
call eax
add esp, 8
jmp 0x8c9ea8
lea eax, [esp + 0xc0]
push eax
push dword [0x6825e4]
call dword [0x51cf34]
add esp, 0xc
mov ecx, dword [esp + 0x4bc]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00930738
add esp, 0x4b0
ret
Function at 0x8cdf30
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov eax, 0x55555556
imul ebp
push esi
mov eax, edx
mov ecx, dword [esp + 0x18]
shr eax, 0x1f
mov esi, ebp
add eax, edx
lea eax, [eax + eax*2]
sub esi, eax
mov edx, esi
and esi, 1
sar edx, 1
and edx, 1
lea eax, [edx + esi*2]
lea edx, [eax + ebp]
mov dword [esp + 8], eax
shl edx, 2
mov eax, 0x55555556
imul edx
mov eax, dword [esp + 0x20]
mov esi, edx
shr esi, 0x1f
add esi, edx
mov dword [eax], esi
cmp esi, dword [esp + 0x1c]
jle 0x8cdf87
pop esi
xor eax, eax
pop ebp
pop ecx
ret
push ebx
lea eax, [ebp - 3]
xor ebx, ebx
push edi
mov edi, dword [0x6825f4]
test eax, eax
js 0x8ce020
mov esi, dword [esp + 0x18]
mov eax, 0xaaaaaaab
mul ebp
add esi, 2
mov ebp, edx
mov dword [esp + 0x1c], esi
shr ebp, 1
lea eax, [ebp*2]
add eax, ebp
mov dword [esp + 0x20], eax
nop
movzx edx, byte [esi - 2]
mov bl, byte [esi - 1]
mov eax, edx
mov bh, byte [esi]
and edx, 3
shr eax, 2
movzx esi, bl
shl edx, 4
add edx, edi
movzx eax, byte [eax + edi]
mov byte [ecx], al
mov eax, esi
shr eax, 4
and esi, 0xf
movzx eax, byte [eax + edx]
mov byte [ecx + 1], al
movzx edx, bh
mov eax, edx
and edx, 0x3f
shr eax, 6
add eax, edi
movzx eax, byte [eax + esi*4]
mov esi, dword [esp + 0x1c]
mov byte [ecx + 2], al
add esi, 3
movzx eax, byte [edx + edi]
mov byte [ecx + 3], al
add ecx, 4
mov dword [esp + 0x1c], esi
sub ebp, 1
jne 0x8cdfc0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp eax, 2
jne 0x8ce061
mov edx, dword [esp + 0x18]
movzx eax, byte [ebx + edx]
shr eax, 2
movzx eax, byte [eax + edi]
mov byte [ecx], al
movzx eax, byte [ebx + edx]
and eax, 3
add eax, eax
movzx eax, byte [edi + eax*8]
mov byte [ecx + 1], al
mov eax, 1
pop edi
mov word [ecx + 2], 0x3d3d
add ecx, 4
pop ebx
pop esi
pop ebp
mov byte [ecx], 0
pop ecx
ret
cmp eax, 1
jne 0x8ce0a8
mov ebp, dword [esp + 0x18]
movzx eax, byte [ebx + ebp]
shr eax, 2
movzx eax, byte [eax + edi]
mov byte [ecx], al
movzx edx, byte [ebx + ebp]
movzx eax, byte [ebx + ebp + 1]
and edx, 3
shr eax, 4
shl edx, 4
add edx, edi
movzx eax, byte [eax + edx]
mov byte [ecx + 1], al
movzx eax, byte [ebx + ebp + 1]
and eax, 0xf
movzx eax, byte [edi + eax*4]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
pop edi
pop ebx
pop esi
mov byte [ecx], 0
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x8d7800
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
push edi
xor edi, edi
bts edi, eax
cmp eax, 0x20
cmovae edx, edi
xor edi, edx
cmp eax, 0x40
mov eax, dword [esp + 0xc]
cmovae edx, edi
test eax, eax
js 0x8d784c
push ebx
push esi
lea ebx, [esp + 0x14]
xor ecx, ecx
lea ebx, [ebx + 4]
bts ecx, eax
xor esi, esi
cmp eax, 0x20
cmovae esi, ecx
xor ecx, esi
cmp eax, 0x40
mov eax, dword [ebx]
cmovae esi, ecx
or edi, ecx
or edx, esi
test eax, eax
jns 0x8d7828
pop esi
pop ebx
mov eax, edi
pop edi
ret
Function at 0x8db850
Capabilities:
Hash data using djb2

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
mov ecx, 0x1505
test edi, edi
jne 0x8db866
pop edi
xor eax, eax
pop esi
ret
push ebx
mov bl, byte [edi]
test bl, bl
je 0x8db890
nop dword [eax]
mov eax, ecx
lea edi, [edi + 1]
mov edx, esi
shld esi, ecx, 5
shl ecx, 5
add ecx, eax
movzx eax, bl
mov bl, byte [edi]
adc esi, edx
cdq
add ecx, eax
adc esi, edx
test bl, bl
jne 0x8db870
pop ebx
pop edi
mov eax, ecx
pop esi
ret

Function at 0x8ef4c0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x8ef555
lea eax, [esp + 8]
push eax
push esi
push 2
call dword [fcn.0051cdb0]
test eax, eax
jne 0x8ef555
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x8ef4e8
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.0090b4e0
add esp, 0xc
test eax, eax
je 0x8ef51c
sub eax, esi
push eax
push 0x2e
push esi
call fcn.0090b4e0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x8ef51e
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x8ef54e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.008fdeb0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x8ef530
pop edi
movzx eax, bl
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x402a44
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403ff8
test esi, esi
jne 0x402a7a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040e8
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x467020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403198
xor eax, eax
push ebp
push 0x403191
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031d4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403198
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x467020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x467020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x469048], 0
je 0x403edd
cmp word [0x46921c], 0xd7b2
jne 0x403ea5
cmp dword [0x469224], 0
jbe 0x403ea5
mov eax, 0x469218
call dword [0x469234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x467030], 0
jne 0x403ef9
push 0
push 0x467064
push 0x46706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret