joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45ba50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov esi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.004488a0
lea eax, [esp + 0x30]
lea ecx, [esi + 0x10]
push eax
call fcn.004581c0
lea ecx, [esp + 0x34]
lea edi, [esi + 0xc]
push ecx
mov ecx, edi
call fcn.004581c0
lea ebp, [esi + 4]
push 0x4970cc
mov ecx, ebp
call fcn.004581ae
lea edx, [esi + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.004581c0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edi
call fcn.0045822c
push ecx
mov byte [esp + 0x30], 3
mov ecx, esp
mov dword [esp + 0x20], esp
push str.TITLE
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
mov byte [esp + 0x38], 4
call fcn.0045822c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
push ecx
mov ecx, esi
call fcn.00448de0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 5
call fcn.004581c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
mov ecx, ebp
push edx
call fcn.004581c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
add esp, 0x20
ret 8
Function at 0x44acf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45c12f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov dword [esp + 0xc], 0
lea ecx, [esp + 8]
mov dword [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x2c]
mov bl, 4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0x2c]
mov esi, eax
mov edx, dword [ecx - 8]
lea ecx, [esp + 0x28]
add esi, edx
mov edx, dword [esp + 0x30]
push esi
push edx
call sub.MFC42.DLL_CString::Find_2
cmp esi, 0xffffffff
je 0x44ade3
cmp eax, 0xffffffff
je 0x44ade3
sub eax, esi
lea ecx, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push esi
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 5
call fcn.004581c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 8]
push 0x4970cc
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x44adc8
push str.nbsp_
lea ecx, [esp + 0xc]
call fcn.004581ae
mov esi, dword [esp + 0x24]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0045822c
mov ebx, 1
mov dword [esp + 0xc], ebx
jmp 0x44adfc
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.0045822c
mov ebx, 1
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
Function at 0x44b4f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c230
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x31c
push ebx
push esi
mov eax, dword [ebp + 8]
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
push 0x80
mov edi, 1
push 3
push esi
push edi
push 0x80000000
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 8], ebx
jne 0x44b555
lea ecx, [ebp - 0x20]
push 0x48d780
push ecx
mov dword [ebp - 0x20], esi
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x24]
push esi
push edx
lea eax, [ebp - 0x328]
push 0x200
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x24], 0x200
je 0x44b587
lea ecx, [ebp - 0x18]
push 0x48d780
push ecx
mov dword [ebp - 0x18], edi
call sub.MSVCRT.dll__CxxThrowException
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x328]
push edx
push 0x10
push str.ALCORFLASHCFG_SZReserved
push 0x100
push eax
call fcn.0044b8d0
mov esi, dword [ebp + 0xc]
add esp, 0x14
lea ecx, [ebp - 0x128]
lea edx, [ebp - 0x228]
push esi
push 0x100
push ecx
push 0x100
push edx
call fcn.0044b8d0
add esp, 0x14
mov ecx, 4
mov edi, str.ALCORFLASHCFG_SZReserved
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x44b624
lea ecx, [ebp - 0x1c]
push 0x48d780
push ecx
mov dword [ebp - 0x1c], 2
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0x44b621
ret
cmp ebx, 0xffffffff
je 0x44b630
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b9e0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x44ba4c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x44ba4c
push ebp
push esi
push edi
xor edi, edi
xor eax, eax
mov byte [eax + ecx], al
inc eax
cmp eax, 0x100
jb 0x44b9f8
mov ebp, dword [esp + 0x18]
xor esi, esi
mov eax, esi
xor edx, edx
div ebp
mov al, byte [edx + ebx]
mov dl, byte [esi + ecx]
add edi, edx
add eax, edi
and eax, 0xff
mov edi, eax
mov al, byte [edi + ecx]
xor dl, al
mov byte [esi + ecx], dl
mov al, dl
mov dl, byte [edi + ecx]
xor dl, al
mov byte [edi + ecx], dl
mov al, dl
mov dl, byte [esi + ecx]
xor dl, al
mov byte [esi + ecx], dl
inc esi
cmp esi, 0x100
jb 0x44ba09
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x44e000
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x10014
call fcn.00458590
push ebx
push ebp
mov eax, dword [esp + 0x10024]
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44e221
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x10034]
shr eax, 9
test ecx, ecx
mov dword [esp + 0x18], eax
jne 0x44e059
shr eax, 1
mov dword [esp + 0x18], eax
mov edi, eax
shr edi, 7
mov ecx, edi
mov edx, edi
shl ecx, 0x10
sub ecx, edi
mov dword [esp + 0x20], edi
shl ecx, 7
add ecx, eax
shl ecx, 9
shr ecx, 9
shl edx, 7
add edx, ecx
mov dword [esp + 0x10], ecx
shl edx, 9
shl eax, 9
cmp eax, edx
jbe 0x44e08e
inc ecx
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x10028]
push ebp
call fcn.0044ba50
add esp, 4
test edi, edi
jbe 0x44e1ca
mov dword [esp + 0x1c], 0
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10034]
test eax, eax
jne 0x44e16f
cmp esi, dword [esp + 0x18]
je 0x44e18c
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x2c]
push 0x10000
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10030]
lea edx, [esp + 0x24]
push edx
lea ecx, [esi + eax]
push ecx
push 0x80
push ebp
call fcn.0044bb30
add esp, 0x10
add esi, 0x80
test eax, eax
je 0x44e21a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jb 0x44e0ae
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x44e231
push eax
mov eax, edi
lea edx, [esp + 0x18]
lea ecx, [esp + 0x28]
shl eax, 9
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10030]
lea edx, [esp + 0x24]
add esi, eax
push edx
push esi
push edi
jmp 0x44e20d
mov eax, dword [esp + 0x10038]
test eax, eax
jne 0x44e0d4
mov eax, dword [esp + 0x18]
shr eax, 1
cmp esi, eax
jne 0x44e0d4
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esp + 0x2c]
push 0x10000
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10030]
lea eax, [esp + 0x7e24]
push eax
lea edx, [esi + ecx]
push edx
push 0x41
push ebp
call fcn.0044bb30
add esp, 0x10
add esi, 0x41
jmp 0x44e110
mov edx, dword [esp + 0x10]
xor eax, eax
shl edx, 9
mov ecx, edx
lea edi, [esp + 0x24]
mov esi, ecx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x18]
push ecx
push edx
lea edx, [esp + 0x30]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10030]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
push ebp
call fcn.0044bb30
add esp, 0x10
test eax, eax
jne 0x44e231
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0xe8
pop ebx
add esp, 0x10014
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10014
ret
Function at 0x4561e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x24], eax
xor ebx, ebx
test edi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], ebx
jle 0x45636c
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x24]
dec eax
mov ebp, ecx
mov dword [esp + 0x20], eax
jmp 0x45621c
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov dl, 1
mov eax, ebx
mov dword [esp + 0x10], ebx
mov byte [esp + 0x34], dl
cmp dword [esp + 0x10], edi
jge 0x45628e
cmp byte [eax + ebp], 0
jne 0x456278
cmp ebx, edi
mov esi, ebx
jge 0x45627e
lea edx, [eax + esi*8]
cmp byte [edx + ecx], 0
je 0x456269
cmp byte [esp + 0x34], 1
jne 0x456269
mov eax, ebx
lea ecx, [ecx + esi*8]
mov bl, byte [ecx + eax]
mov dl, byte [eax + ebp]
mov byte [eax + ebp], bl
mov byte [ecx + eax], dl
inc eax
cmp eax, edi
jl 0x45624f
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x34], 0
mov ecx, dword [esp + 0x30]
inc esi
cmp esi, edi
jl 0x45623a
mov dl, byte [esp + 0x34]
jmp 0x45627e
xor dl, dl
mov byte [esp + 0x34], dl
mov esi, dword [esp + 0x10]
inc esi
cmp dl, 1
mov dword [esp + 0x10], esi
je 0x456228
jmp 0x456297
cmp dl, 1
je 0x45639b
lea eax, [ecx + ebx*8]
mov al, byte [ebx + eax]
test al, al
je 0x4562e1
mov ecx, dword [esp + 0x20]
lea edx, [ebx + 1]
mov dword [esp + 0x34], edx
mov byte [ecx + edx], al
and eax, 0xff
cmp ebx, edi
mov al, byte [eax + 0x496e00]
mov byte [esp + 0x18], al
jge 0x4562f4
mov esi, dword [esp + 0x18]
mov cl, byte [ebx + ebp]
push esi
push ecx
call fcn.00456180
add esp, 8
mov byte [ebx + ebp], al
inc ebx
cmp ebx, edi
jl 0x4562c6
mov ebx, dword [esp + 0x14]
jmp 0x4562f0
mov edx, dword [esp + 0x20]
lea eax, [ebx + 1]
mov dword [esp + 0x34], eax
mov byte [edx + eax], 0
mov edx, dword [esp + 0x34]
mov esi, edx
cmp edx, edi
mov dword [esp + 0x10], esi
jge 0x45635d
mov eax, ebx
sub eax, edx
mov dword [esp + 0x1c], eax
mov cl, byte [esi + ebp]
lea eax, [esi + ebp]
cmp ebx, edi
mov byte [esp + 0x18], cl
jge 0x45634b
mov esi, eax
mov eax, dword [esp + 0x14]
mov ebx, edi
sub ebx, eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push edx
mov cl, byte [eax + esi]
push ecx
call fcn.00456180
mov dl, byte [esi]
add esp, 8
xor dl, al
mov byte [esi], dl
add esi, 8
dec ebx
jne 0x45631e
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
inc esi
dec ecx
cmp esi, edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], ecx
jl 0x456306
add ebp, 8
cmp edx, edi
mov dword [esp + 0x14], edx
jl 0x456214
mov al, 1
xor esi, esi
test edi, edi
mov byte [esp + 0x18], al
jle 0x456393
mov dl, byte [esp + esi + 0x24]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00456180
add esp, 8
inc esi
cmp esi, edi
mov byte [esp + 0x18], al
jl 0x456378
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret
Function at 0x457ef0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
cmp eax, 0xffffffff
push esi
jne 0x457f00
pop esi
xor al, al
pop ebx
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x457f15
pop esi
xor al, al
pop ebx
ret
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x457f22
pop esi
xor al, al
pop ebx
ret
push 0x200
push esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x457f37
pop esi
xor al, al
pop ebx
ret
push edi
mov ecx, 0x80
xor eax, eax
mov edi, esi
push ebx
push 0x10
rep stosd dword es:[edi], eax
push esi
call fcn.00457b60
push 0x80
push esi
call fcn.00457cb0
push 0x110
push esi
call fcn.00457d90
push 0x180
push esi
call fcn.00457e40
add esp, 0x24
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x402f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x402f66
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402ffa
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x402fb5
cmp eax, 0x40
je 0x402fb5
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x402f59
cmp eax, 0x40
je 0x402f59
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x402f59
mov dword [esp + 8], 0x34
mov dword [esp + 4], str..._.._runtime_pseudo_reloc.c
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x4425ca
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x442602
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x4425f0
mov al, 1
jmp 0x44264c
cmp dword [ebx + 0x54], ecx
jne 0x4425f9
mov al, 2
jmp 0x44264c
cmp dword [ebx + 0x7c], ecx
jne 0x44264c
mov al, 3
jmp 0x44264c
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x442617
mov al, 4
jmp 0x44264c
cmp ecx, 5
jne 0x442637
cmp ebx, 0
jne 0x442625
mov al, 5
jmp 0x44264c
cmp ebx, 1
jne 0x44262e
mov al, 6
jmp 0x44264c
cmp ebx, 2
jne 0x442637
mov al, 7
jmp 0x44264c
cmp ecx, 6
jne 0x442643
cmp ebx, 0
jne 0x442645
mov al, 8
jmp 0x44264c
cmp ebx, 1
jne 0x44264c
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48a950
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x51842b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00507fc0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x48a9d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00504da1
mov eax, dword [eax]
push 0x58b22c
push eax
call fcn.004f76d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0050824b
test bl, bl
je 0x48a9d2
push 0x58b22c
lea ecx, [esp + 0xc]
call fcn.00508627
push 0x58eef4
lea ecx, [esp + 0xc]
call fcn.00508627
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x48aa0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0050824b
jmp 0x48aad9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x48aa92
lea edx, [esp + 0x7c]
push 0x58eef0
push edx
call fcn.004f76d4
add esp, 8
test eax, eax
je 0x48aa92
lea eax, [esp + 0x7c]
push 0x58eeec
push eax
call fcn.004f76d4
add esp, 8
test eax, eax
je 0x48aa92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48aa22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0050824b
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x48b2d0
Capabilities:
Query or enumerate registry value

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

Disassembly:
push 0xffffffffffffffff
push 0x5184ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x596098]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x48b478
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x48b3a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050824b
xor eax, eax
jmp 0x48b4ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.005083d4
push esi
lea ecx, [esp + 0xc]
call fcn.00508663
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x48b4cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0048b2d0
test eax, eax
jne 0x48b4cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.0048b2d0
test eax, eax
jne 0x48b4cd
lea eax, [esp + 0x14]
push 0x58ef08
push eax
call fcn.004f8880
mov esi, eax
add esp, 8
test esi, esi
jne 0x48b4ac
lea ecx, [esp + 0x14]
push 0x58ef04
push ecx
call fcn.004f8800
mov esi, eax
add esp, 8
test esi, esi
jne 0x48b4ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x48b4af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00508384
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x48b3be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0050824b
xor eax, eax
jmp 0x48b4ef
mov byte [esi], 0
push 0x58ef00
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0050824b
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x49f280
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x49f2ee
cmp si, 0x69
ja 0x49f2ee
add esi, 0xffd0
cmp si, 0x11
je 0x49f2be
push 0x11
call edi
test ax, ax
jge 0x49f2be
or esi, 0x2000
cmp si, 0x10
je 0x49f2d3
push 0x10
call edi
test ax, ax
jge 0x49f2d3
or esi, 0x4000
cmp si, 0x12
je 0x49f2e8
push 0x12
call edi
test ax, ax
jge 0x49f2e8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x49f2fb
mov esi, 0xbd
jmp 0x49f2af
cmp si, 0x6e
jne 0x49f308
mov esi, 0xbe
jmp 0x49f2af
cmp si, 0x6f
jne 0x49f2a9
mov esi, 0xbf
jmp 0x49f2af

Function at 0x4a0d80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5a6f88]
xor edx, edx
cmp eax, edx
jne 0x4a0da6
xor eax, eax
mov byte [eax + 0x5a6e88], al
inc eax
cmp eax, 0x100
jl 0x4a0d8e
mov dword [0x5a6f88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5a6e88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a0e37
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a0e0a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a0dd8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a0eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a0f03
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a0eea
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret