joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450d2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and byte [ebp - 1], 0
push ebx
push esi
push 0x464a60
push dword [ebp + 8]
call fcn.00442e54
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
pop ecx
mov dword [ebp - 8], ebx
jne 0x450d5c
xor al, al
jmp 0x450e70
push edi
push 2
push esi
push ebx
call fcn.004440e7
push ebx
call fcn.00443f8f
push esi
push esi
push ebx
mov edi, eax
call fcn.004440e7
push edi
call fcn.00442735
push ebx
push 1
mov esi, eax
push edi
push esi
call fcn.004437f9
push 0x46c5f0
call fcn.00441f60
add esp, 0x34
xor ecx, ecx
test edi, edi
mov dword [ebp + 8], eax
je 0x450db2
mov eax, ecx
cdq
idiv dword [ebp + 8]
mov al, byte [edx + 0x46c5f0]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jne 0x450d9e
push 4
push str.eter
push esi
call fcn.00442750
add esp, 0xc
test eax, eax
jne 0x450e5e
mov eax, dword [esi + 4]
test eax, eax
push 8
pop edi
je 0x450e5a
mov dword [ebp + 8], eax
mov al, byte [edi + esi]
xor ebx, ebx
mov bl, al
inc edi
lea eax, [edi + esi]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00442400
and byte [ebp + ebx - 0x210], 0
add edi, ebx
mov al, byte [edi + esi]
xor ebx, ebx
mov bl, al
inc edi
lea eax, [edi + esi]
push ebx
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00442400
and byte [ebp + ebx - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
add edi, ebx
call fcn.00450c85
add esp, 0x20
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
push str._s__s_n
call fcn.00442d5c
add esp, 0xc
dec dword [ebp + 8]
jne 0x450ddb
mov ebx, dword [ebp - 8]
mov byte [ebp - 1], 1
push esi
call fcn.004423ef
push ebx
call fcn.00442dde
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45193b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x10
pop eax
or esi, 0xffffffff
cmp dword [ebp + 0xc], eax
mov ecx, 0xff
jb 0x451afa
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
and edi, ecx
and ebx, ecx
xor ebx, edi
mov edi, esi
mov esi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 1]
shr edi, 8
xor esi, edi
mov edi, esi
and edi, ecx
shr esi, 8
and ebx, ecx
xor ebx, edi
mov edi, dword [ebx*4 + 0x46c664]
xor edi, esi
xor ebx, ebx
mov bl, byte [edx + 2]
mov esi, edi
and esi, ecx
shr edi, 8
and ebx, ecx
xor ebx, esi
mov esi, dword [ebx*4 + 0x46c664]
xor esi, edi
xor ebx, ebx
mov bl, byte [edx + 3]
mov edi, esi
and edi, ecx
shr esi, 8
and ebx, ecx
xor ebx, edi
mov edi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 4]
xor edi, esi
mov esi, edi
and esi, ecx
shr edi, 8
and ebx, ecx
xor ebx, esi
mov esi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 5]
xor esi, edi
mov edi, esi
and edi, ecx
shr esi, 8
and ebx, ecx
xor ebx, edi
mov edi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 6]
xor edi, esi
mov esi, edi
and esi, ecx
shr edi, 8
and ebx, ecx
xor ebx, esi
mov esi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 7]
xor esi, edi
mov edi, esi
and edi, ecx
shr esi, 8
and ebx, ecx
xor ebx, edi
mov edi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 8]
xor edi, esi
mov esi, edi
and esi, ecx
and ebx, ecx
xor ebx, esi
mov esi, dword [ebx*4 + 0x46c664]
shr edi, 8
xor esi, edi
xor ebx, ebx
mov bl, byte [edx + 9]
mov edi, esi
and edi, ecx
shr esi, 8
sub dword [ebp + 0xc], eax
and ebx, ecx
xor ebx, edi
mov edi, dword [ebx*4 + 0x46c664]
xor edi, esi
xor ebx, ebx
mov bl, byte [edx + 0xa]
mov esi, edi
and esi, ecx
shr edi, 8
and ebx, ecx
xor ebx, esi
mov esi, dword [ebx*4 + 0x46c664]
xor esi, edi
xor ebx, ebx
mov bl, byte [edx + 0xb]
mov edi, esi
and edi, ecx
shr esi, 8
and ebx, ecx
xor ebx, edi
mov edi, dword [ebx*4 + 0x46c664]
xor edi, esi
xor ebx, ebx
mov bl, byte [edx + 0xc]
mov esi, edi
and esi, ecx
shr edi, 8
and ebx, ecx
xor ebx, esi
mov esi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 0xd]
xor esi, edi
mov edi, esi
and edi, ecx
shr esi, 8
and ebx, ecx
xor ebx, edi
mov edi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 0xe]
xor edi, esi
mov esi, edi
and esi, ecx
shr edi, 8
and ebx, ecx
xor ebx, esi
mov esi, dword [ebx*4 + 0x46c664]
xor ebx, ebx
mov bl, byte [edx + 0xf]
xor esi, edi
mov edi, esi
and edi, ecx
shr esi, 8
add edx, eax
and ebx, ecx
xor ebx, edi
mov edi, dword [ebx*4 + 0x46c664]
xor esi, edi
cmp dword [ebp + 0xc], eax
jae 0x451958
pop ebx
jmp 0x451afd
mov edx, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x451b21
xor eax, eax
mov al, byte [edx]
mov edi, esi
and edi, ecx
shr esi, 8
and eax, ecx
xor eax, edi
mov eax, dword [eax*4 + 0x46c664]
xor esi, eax
inc edx
dec dword [ebp + 0xc]
jne 0x451b03
mov eax, esi
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x456e1e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x456efe
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x456efe
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x6c]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ebx, eax
cmp ebx, edi
jne 0x456e5e
push str.createcompatible_dc_failed_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x18]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [ebp + 0x18], edi
jne 0x456e82
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x1c], edi
jne 0x456e8d
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x1c], eax
mov eax, dword [esi]
lea ecx, [ebp - 0x94]
push ecx
push esi
mov dword [ebp - 0x94], 0x7c
mov dword [ebp - 0x90], 6
call dword [eax + 0x58]
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0x44]
cmp eax, edi
mov dword [ebp + 0xc], eax
jne 0x456ef1
push 0xcc0020
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp + 8]
mov eax, dword [esi]
push esi
call dword [eax + 0x68]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp + 0xc]
pop ebx
jmp 0x456f03
mov eax, 0x80004005
pop edi
pop esi
leave
ret

Function at 0x458111
Capabilities:
Create process on windows
Read file on windows
Terminate process

Disassembly:
push esi
push 0x46901c
push str.errorlog.txt
call fcn.00442e54
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x458149
push esi
push dword [esp + 0xc]
call fcn.0044375a
push esi
call fcn.00442dde
add esp, 0xc
push 5
push str.errorlog.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call fcn.004453d5
pop esi
Function at 0x458151
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45c94e
call fcn.004423d0
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.00450e9a
mov edi, eax
push edi
call fcn.00441f60
push 0x50
call fcn.00442735
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
je 0x458190
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax], 0x45dbf8
jmp 0x458192
xor eax, eax
push 1
push edi
mov ecx, eax
mov dword [esi], eax
call fcn.0045822c
test al, al
jne 0x4581b4
mov esi, dword [esi]
cmp esi, ebx
je 0x4581b0
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor eax, eax
jmp 0x45821b
mov eax, dword [esi]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 4
lea edi, [esi + 0x14]
push edi
push dword [eax + 0x48]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [edi], 0
mov dword [ebp + 8], ebx
jle 0x458218
push 0x2c
call fcn.00442735
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x4581ee
mov ecx, eax
call fcn.00459497
jmp 0x4581f0
xor eax, eax
mov ecx, dword [esi + 0x18]
or dword [ebp - 4], 0xffffffff
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x18]
push dword [esi]
mov ecx, dword [eax + ebx*4]
call fcn.0045922d
mov eax, dword [esi + 0x18]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax + 8]
add dword [ebp + 8], eax
inc ebx
cmp ebx, dword [edi]
jl 0x4581d2
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x45822c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 1
push esi
push edi
mov esi, ecx
jne 0x458245
mov dword [ebp + 0xc], DirectSoundCreate
jmp 0x458251
cmp ebx, 2
jne 0x458251
mov dword [ebp + 0xc], 0xc0000000
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [esi + 0x48], eax
je 0x45829d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp + 8]
mov dword [esi + 0x4c], eax
lea eax, [esi + 8]
push eax
mov dword [esi + 4], ebx
call fcn.00441e70
pop ecx
pop ecx
push edi
push edi
push edi
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, 1
jmp 0x45829f
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4583e8
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x4c]
cmp eax, ecx
push edi
jbe 0x4583fa
mov eax, ecx
mov edi, dword [esp + 0x18]
xor ebx, ebx
cmp edi, ebx
mov dword [esi + 0x54], eax
jne 0x458409
mov edi, ecx
add eax, edi
cmp eax, ecx
ja 0x45842a
cmp dword [esi + 0x50], ebx
jne 0x45842e
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [esi + 0x50], eax
jne 0x45842e
xor eax, eax
jmp 0x45844a
push edi
push dword [esi + 0x54]
push ebx
push 4
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x45922d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push 0
lea eax, [ebp + 8]
push eax
mov edi, ecx
push 0x20
lea eax, [edi + 0xc]
push eax
push dword [ebx + 0x48]
call esi
push 0
lea eax, [ebp + 8]
push eax
push 4
lea eax, [edi + 4]
push eax
push dword [ebx + 0x48]
call esi
push 0
lea eax, [ebp + 8]
push eax
push 4
add edi, 8
push edi
push dword [ebx + 0x48]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x459428
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x45c9ec
call fcn.004423d0
sub esp, 0x50
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
push esi
mov esi, 0x45dbf8
push edi
mov edi, ecx
mov dword [ebp - 0x5c], esi
and dword [ebp - 4], 0
push 2
push dword [ebp + 8]
lea ecx, [ebp - 0x5c]
call fcn.0045822c
mov eax, dword [edi + 8]
mov edi, dword [edi]
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x5c]
call fcn.004582e4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x5c], esi
call fcn.004582e4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x45a050
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x554008]
test eax, eax
je 0x45a089
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x554008]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45a07f
mov ecx, dword [0x554008]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x554008], 0
ret
Function at 0x40407d
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x40f6b8], 2
push esi
push edi
jne 0x40416e
push str.advapi32.dll
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
je 0x4040b6
push str.GetUserNameW
push eax
call fcn.0078e7a4
nop
mov esi, eax
cmp esi, edi
mov dword [ebp - 4], 0x208
je 0x40416e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x40416e
cmp word [ebp - 0x21c], di
lea eax, [ebp - 0x21c]
je 0x404163
push ebx
jmp 0x4040ef
mov eax, dword [ebp - 8]
movzx ebx, word [eax]
inc eax
inc eax
cmp ebx, 0x20
mov dword [ebp - 8], eax
jne 0x404102
push 0x5f
pop ebx
cmp ebx, 0x20
jl 0x404126
cmp ebx, 0x7e
jg 0x404126
push ebx
push str._:___
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
test eax, eax
pop ecx
jne 0x404126
and byte [ebp - 0x13], al
push 1
mov byte [ebp - 0x14], bl
pop eax
jmp 0x404139
push ebx
lea eax, [ebp - 0x14]
push str.__x_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea esi, [eax + edi]
lea ecx, [esi + 1]
cmp ecx, dword [ebp + 0xc]
jae 0x404159
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
add edi, eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edi, esi
mov eax, dword [ebp - 8]
cmp word [eax], 0
jne 0x4040ec
pop ebx
mov eax, dword [ebp + 8]
and byte [edi + eax], 0
mov eax, edi
jmp 0x40418f
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x404188
and byte [esi], al
push esi
call sub.MSVCRT.dll_strlen
pop ecx
pop edi
pop esi
leave
ret
Function at 0x790ee4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
mov ecx, dword [esi + 4]
test eax, eax
jle 0x790f3f
push edi
mov edi, dword [ebp + 0x10]
sub dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
mov edi, edi
inc bl
lea edi, [edi + 1]
movzx ebx, bl
mov dl, byte [esi + ebx + 8]
add cl, dl
movzx ecx, cl
mov al, byte [esi + ecx + 8]
mov byte [esi + ebx + 8], al
add al, dl
movzx eax, al
mov byte [esi + ecx + 8], dl
movzx edx, byte [eax + esi + 8]
mov eax, dword [ebp + 0xc]
xor dl, byte [eax + edi - 1]
sub dword [ebp + 8], 1
mov byte [edi - 1], dl
jne 0x790f04
mov eax, dword [ebp + 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], ecx
pop esi
pop ebx
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x168827d0
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xb4c47f8
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1bea000
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
mov al, 0xd8
test edi, edi
mov byte [esp + 4], al
jne 0x1bea015
xor al, al
pop edi
pop ecx
ret
push esi
xor esi, esi
test edi, edi
jle 0x1bea068
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ecx, 0xa0
lea eax, [ecx + 0x15]
mov ecx, 0x60
cdq
idiv ecx
xor eax, eax
mov ebp, 0xe8
mov al, byte [esi + ebx]
mov byte [esp + 0x1c], dl
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
and edx, 0xff
and ecx, 0xff
xor eax, ecx
add eax, edx
cdq
idiv ebp
inc esi
cmp esi, edi
mov al, dl
mov byte [esp + 0x10], al
jl 0x1bea027
pop ebp
pop ebx
pop esi
pop edi
pop ecx
ret

Function at 0x1bea070
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1bfa1b0]
mov ecx, 0x60
and eax, 0xff
push ebx
cdq
idiv ecx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov byte [esp + 8], 0xa0
mov bl, dl
jle 0x1bea0cf
mov ecx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x18]
sub esi, ecx
mov eax, dword [esp + 0x10]
mov ebp, 0x60
and eax, 0xff
add eax, 0x15
cdq
idiv ebp
mov al, byte [esi + ecx]
xor al, bl
xor al, dl
mov byte [esp + 0x10], dl
mov byte [ecx], al
inc ecx
dec edi
jne 0x1bea0a0
mov eax, dword [esp + 0x20]
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
pop ebx
pop ecx
ret

Function at 0x1bea0e0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
mov ecx, 0x60
and eax, 0xff
push ebx
cdq
idiv ecx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov byte [esp + 8], 0xa0
mov bl, dl
jle 0x1bea13e
mov ecx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x18]
sub esi, ecx
mov eax, dword [esp + 0x10]
mov ebp, 0x60
and eax, 0xff
add eax, 0x15
cdq
idiv ebp
mov al, byte [esi + ecx]
xor al, bl
xor al, dl
mov byte [esp + 0x10], dl
mov byte [ecx], al
inc ecx
dec edi
jne 0x1bea10f
mov eax, dword [esp + 0x20]
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
pop ebx
pop ecx
ret
Function at 0x1bea520
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebp, eax
push 0x1bf98a4
push ebp
call fcn.01beb2f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1bea60a
lea esi, [ebx + 1]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb 0x1bea60a
mov ecx, 0x10
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, 8
lea edi, [esp + 0x10]
add ebx, 2
push 0x1bf98a0
rep stosd dword es:[edi], eax
push ebx
call fcn.01beb2f0
mov edi, eax
add esp, 8
test edi, edi
je 0x1bea5a0
lea eax, [edi + 1]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.01bea910
add esp, 8
mov byte [edi], 0
lea edx, [esp + 0x30]
push ebx
push edx
call fcn.01bea910
lea eax, [esp + 0x38]
push eax
call fcn.01beb2dd
mov ecx, eax
mov edx, eax
and ecx, 0xff0000
shr edx, 0x10
or ecx, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
lea eax, [esp + 0x1c]
shr ecx, 8
shl edx, 8
or ecx, edx
push eax
mov dword [0x1bf1060], ecx
call fcn.01beb2dd
xor ecx, ecx
add esp, 0x10
mov cl, ah
mov ch, al
mov word [0x1bf1064], cx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
sub esi, ebp
mov word [eax + esi*2], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret

Function at 0x1bea970
Capabilities:
Create thread

Disassembly:
push esi
push 4
push 0x1bf98cc
call fcn.01bea000
add esp, 8
mov byte [0x1bfa1b0], al
call fcn.01bea520
call fcn.01bea860
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x1bea150
push 0
push 0
call esi
push 0
push 0
push 0
push 0x1bea450
push 0
push 0
call esi
pop esi
ret

Function at 0x1bea9f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
mov eax, dword [0x1bf98e4]
mov edx, dword [0x1bf98e0]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [eax + 0xf0]
lea ecx, [esp + 8]
push edi
push ecx
push 0x40
push 0x400
push edx
call ebx
mov edi, dword [0x1bf98e0]
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov edx, dword [0x1bf98e0]
lea eax, [esp + 0xc]
push eax
push ecx
push 0x400
push edx
call ebx
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1beaa50
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x190
mov eax, dword [0x1bf98dc]
mov ecx, dword [0x1bf98d4]
push ebx
push ebp
lea ebp, [eax + ecx]
push esi
push edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x1beaa7e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1beab84
mov edi, dword [ebp + 0xc]
mov eax, dword [0x1bf98d4]
add edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [0x1bf98d4]
mov ebp, dword [ebp]
add ebx, ecx
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x1beaace
add ebp, ecx
jmp 0x1beaad8
mov ebp, ebx
jmp 0x1beaad8
mov ecx, dword [0x1bf98d4]
mov eax, dword [ebp]
test eax, 0x80000000
je 0x1beaaea
and eax, 0x7fffffff
push eax
jmp 0x1beab1a
lea edi, [eax + ecx + 2]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa0]
push ecx
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea ecx, [esp + 0x34]
push ecx
push 0x40
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp + 4]
add ebp, 4
add ebx, 4
test eax, eax
jne 0x1beaad2
mov eax, dword [esp + 0x10]
add eax, 0x14
mov dword [esp + 0x10], eax
mov ebp, eax
jmp 0x1beaa6c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret

Function at 0x1beabe0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push eax
push 0x40
push esi
push edi
call ebx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edi
call ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret