joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47a958
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47abb8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47a9bb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0047a420
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040e358
cmp al, 1
jne 0x47a9bb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0047a738
test al, al
je 0x47ab47
cmp dword [ebp - 8], 0
jge 0x47a9d9
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0047a420
mov eax, dword [ebp - 0x210]
call fcn.00405020
cmp ebx, eax
jge 0x47aa23
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0047a420
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x543618]
and eax, 0xff
bt dword [edx], eax
jae 0x47aa23
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x47aa37
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047a934
cmp ebx, dword [ebp - 8]
je 0x47ab39
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x47aa63
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040412c
and eax, 0x7f
movzx eax, word [eax*2 + 0x5330fc]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x47ab26
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040412c
and eax, 0x7f
movzx eax, word [eax*2 + 0x5330fc]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0045e708
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.0040412c
and eax, 0x7f
movzx eax, word [eax*2 + 0x5330fc]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0045e708
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ab2d
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x47ab9a
cmp dword [ebp - 8], 0
jge 0x47ab52
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0047a420
mov eax, dword [ebp - 0x218]
call fcn.00405020
cmp eax, dword [ebp - 8]
jg 0x47ab8c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0047a420
mov eax, dword [ebp - 0x21c]
call fcn.00405020
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047a934
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47abbf
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404d74
ret
Function at 0x489a3c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, ebx
call fcn.00405220
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x489aee
xor eax, eax
push ebp
push 0x489ae7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, 2
call fcn.004899c0
push eax
xor eax, eax
call fcn.004899c0
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x489ab4
mov eax, 2
call fcn.004899c0
cmp eax, dword [ebp - 0xc]
je 0x489ab8
xor eax, eax
jmp 0x489aba
mov al, 1
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
jne 0x489ad0
mov eax, ebx
call fcn.00405220
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489aee
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x489af8
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x489c30
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.004053ac
push 0x104
lea eax, [ebp - 8]
call fcn.00405278
push eax
push 0x489c44
call sub.kernel32.dll_GetEnvironmentVariableA
mov edx, eax
lea eax, [ebp - 8]
call fcn.004053ac
mov eax, dword [ebp - 8]
call fcn.00405020
test eax, eax
jle 0x489c12
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403600
mov dword [ebp - 0x4c], 0x44
mov dword [ebp - 0x20], 1
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push dword [ebp - 8]
push 0x489c54
push ebx
push 0x489c64
push esi
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.004050e0
mov eax, dword [ebp - 0x60]
call fcn.00405220
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x489c12
xor eax, eax
push ebp
push 0x489c0b
push dword fs:[eax]
mov dword fs:[eax], esp
push edi
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
setne byte [ebp - 1]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489c12
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489c37
lea eax, [ebp - 0x60]
call fcn.00404d50
lea eax, [ebp - 8]
call fcn.00404d50
ret

Function at 0x489c68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405220
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x489c85
and eax, 0x10
cmp eax, 0x10
je 0x489c89
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x48a438
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebx]
call fcn.00405020
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jle 0x48a4b4
mov eax, dword [ebx]
mov dl, byte [ebp - 1]
add byte [eax], dl
mov edx, dword [ebp - 8]
sub edx, 2
jl 0x48a486
inc edx
mov eax, 2
mov ecx, dword [ebx]
mov cl, byte [ecx + eax - 2]
mov esi, dword [ebx]
add cl, byte [esi + eax - 1]
xor cl, byte [ebp + 0xc]
mov esi, dword [ebx]
mov byte [esi + eax - 1], cl
inc eax
dec edx
jne 0x48a46d
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 2]
add byte [eax + edx - 1], cl
mov eax, dword [ebp - 8]
dec eax
cmp eax, 1
jl 0x48a4b4
mov edx, dword [ebx]
mov dl, byte [edx + eax]
mov ecx, dword [ebx]
add dl, byte [ecx + eax - 1]
xor dl, byte [ebp + 8]
mov ecx, dword [ebx]
mov byte [ecx + eax - 1], dl
dec eax
test eax, eax
jne 0x48a49b
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x48a4bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov byte [ebp - 2], cl
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, dword [ebx]
call fcn.00405020
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jle 0x48a537
mov edx, dword [ebp - 8]
dec edx
test edx, edx
jle 0x48a501
mov eax, 1
mov ecx, dword [ebx]
mov cl, byte [ecx + eax - 1]
xor cl, byte [ebp + 8]
mov esi, dword [ebx]
sub cl, byte [esi + eax]
mov esi, dword [ebx]
mov byte [esi + eax - 1], cl
inc eax
dec edx
jne 0x48a4e9
mov eax, dword [ebx]
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 2]
sub byte [eax + edx - 1], cl
mov eax, dword [ebp - 8]
cmp eax, 2
jl 0x48a530
mov edx, dword [ebx]
mov dl, byte [edx + eax - 1]
xor dl, byte [ebp + 0xc]
mov ecx, dword [ebx]
sub dl, byte [ecx + eax - 2]
mov ecx, dword [ebx]
mov byte [ecx + eax - 1], dl
dec eax
cmp eax, 1
jne 0x48a515
mov eax, dword [ebx]
mov dl, byte [ebp - 1]
sub byte [eax], dl
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x48b2c8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00408000
ret
Function at 0x48b464
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405210
xor eax, eax
push ebp
push 0x48b5b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.0048b2c8
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405220
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x48b591
xor eax, eax
push ebp
push 0x48b58a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x48b573
xor eax, eax
push ebp
push 0x48b56c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48b555
xor eax, eax
push ebp
push 0x48b54e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize_1
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.0048b2fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b555
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b573
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b591
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0048b37c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b5b9
lea eax, [ebp - 4]
call fcn.00404d50
ret

Function at 0x48b8bc
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x53330c]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x48b8f8
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x48b910
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x48b909
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00403600
xor edx, edx
mov eax, 0x53350c
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x48b97a
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x48b92e
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x48bbb8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x48bbd1
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x48bbca
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x48bbe3
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x48bbdc
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0048b7ac
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x48bbfd
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0048b8bc
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x48bc82
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x48bc9f
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0048b83c
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x48bcc8
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48bce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x48bcf9
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x48bcf2
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x48bd0d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048b6a4
test bl, bl
jne 0x48bde0
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x544c68
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x48bd44
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x48bd58
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048bbb8
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x48bd8a
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x48bd39
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x48bdad
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x48bdbe
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x48bdd2
jmp 0x48be9b
cmp bl, 1
jne 0x48be9b
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x544cc2
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x48be00
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x48be14
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048bbb8
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x48be46
sub ebx, 6
inc dword [ebp - 8]
jne 0x48bdf5
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x48be6d
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x48be7e
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x48be92
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0048b728
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x48c680
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x48c694
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffc0
mov dword [esp], 0x40
push esp
call sub.kernel32.dll_GlobalMemoryStatusEx
push 0
push 0x100000
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
call fcn.00405ec8
add esp, 0x40
ret

Function at 0x48dce7
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x48dc94
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3f0
jne 0x48dc94
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x48dd2b
mov eax, 0x400
call fcn.00402ad0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x48dd24
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x5335e8
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x48dd1a
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x48dd16
mov byte [esp], 1
jmp 0x48dd1a
inc edi
dec ebx
jne 0x48dcfd
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402b00
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x48e794
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48e805
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d50
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.0040a748
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0048e73c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e80c
lea eax, [ebp - 0x10c]
call fcn.00404d50
ret
Function at 0x48f36c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x48f3f8
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x48f3f8
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x48f3f8
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x48f3f8
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x48f3f8
xor edx, edx
push ebp
push 0x48f3ee
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, eax
test ecx, ecx
jns 0x48f3d5
call fcn.00403e60
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.0041c3ac
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48f3f8
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4a31c8
Capabilities:
Encode data using xor

Disassembly:
cmp edx, 0
jne 0x4a31d3
mov eax, 0
ret
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4a31d9
ret

Function at 0x4a4b0c
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [edx], eax
xor eax, eax
mov dword [edx + 4], eax
mov dword [edx + 8], 0x67452301
mov dword [edx + 0xc], 0xefcdab89
mov dword [edx + 0x10], 0x98badcfe
mov dword [edx + 0x14], 0x10325476
ret

Function at 0x4a6b4c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00406b24
xor eax, eax
push ebp
push 0x4a6bbf
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00488e60
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
call fcn.00402ad0
mov dword [ebx], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebx]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
call fcn.00488e60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a6bc6
lea eax, [ebp - 4]
call fcn.00406ab0
ret