joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e4b0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x2e8
mov eax, dword [0x41d178]
xor eax, esp
mov dword [esp + 0x2e4], eax
mov eax, dword [esp + 0x2ec]
push ebx
mov ebx, dword [esp + 0x2f4]
push ebp
mov ebp, dword [esp + 0x2fc]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xe8]
push edx
push 0
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x40e50a
push str.QueryFullProcessImageName
call fcn.0040e170
add esp, 4
test ebp, ebp
jne 0x40e527
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2e4]
xor ecx, esp
call fcn.004100fb
add esp, 0x2e8
ret
push esi
push edi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xf0]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40e677
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040fde2
mov edi, eax
add esp, 4
test edi, edi
je 0x40e677
mov eax, dword [esp + 0x18]
push edi
push esi
push eax
lea ecx, [esp + 0xf8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e66e
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e66e
cmp dword [esp + 0x14], 0
je 0x40e66e
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x2c]
push str.StringFileInfo_04X_04XFileDescription
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e66e
mov ecx, dword [esp + 0x10]
push 0x28
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40e61b
lea esp, [esp]
mov edx, 0x7b
mov word [eax], dx
mov eax, dword [esp + 0x10]
push 0x28
push eax
call fcn.00401000
add esp, 8
test eax, eax
jne 0x40e600
mov ecx, dword [esp + 0x10]
push 0x29
push ecx
call fcn.00401000
add esp, 8
test eax, eax
je 0x40e64b
mov edi, edi
mov edx, 0x7d
mov word [eax], dx
mov eax, dword [esp + 0x10]
push 0x29
push eax
call fcn.00401000
add esp, 8
test eax, eax
jne 0x40e630
mov ecx, dword [esp + 0x10]
push ebp
push ecx
push ebx
call fcn.00410115
xor edx, edx
push edi
mov word [ebx + ebp*2 - 2], dx
call fcn.0041010a
add esp, 0x10
mov eax, 1
jmp 0x40e679
push edi
call fcn.0041010a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004100fb
add esp, 0x2e8
ret
Function at 0x40e6a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x208
mov eax, dword [0x41d178]
xor eax, esp
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x20c]
push esi
push edi
push eax
xor edi, edi
push edi
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40e700
lea eax, [esp + 8]
push eax
push edi
push esi
push str.SYSTEM
push edi
call fcn.0040e2a0
add esp, 0x14
test eax, eax
jne 0x40e6f9
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004100fb
add esp, 0x208
ret

Function at 0x40e720
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x58]
push esi
push eax
call fcn.00410161
push 0x44
lea ecx, [esp + 0x1c]
push 0
push ecx
mov esi, eax
call fcn.004101c0
add esp, 0x10
xor eax, eax
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40e783
pop esi
add esp, 0x54
ret
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret

Function at 0x40e9f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
mov eax, dword [eax + esi + 0x78]
mov ebx, dword [eax + esi + 0x20]
mov ebp, dword [eax + esi + 0x1c]
mov ecx, dword [eax + esi + 0x24]
add eax, esi
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
add ebp, esi
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
test eax, eax
je 0x40ea60
mov eax, dword [ebx + edi*4]
mov ecx, dword [esp + 0x1c]
add eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ea50
test dl, dl
je 0x40ea4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ea50
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ea30
xor eax, eax
jmp 0x40ea55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ea68
inc edi
cmp edi, dword [esp + 0x18]
jb 0x40ea25
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp + edx*4]
pop edi
add eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40ec40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
push edi
call fcn.0040ebe0
lea eax, [esp + 8]
push eax
push 0x409
push 0x378
xor esi, esi
push 0x22bf
mov dword [esp + 0x18], esi
call dword [0x41e6b8]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40eca3
mov ecx, dword [esp + 8]
push 0x40
push 0x3000
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x40eca3
mov edx, dword [esp + 8]
push 0
push esi
push 0x6b
push str.dBOR0b_pldQPH_Daw_pP_csEfL_ZZm__2euenaRS03_wPsK_iUH_N5It_um0YAU2A_3RB_PxqtN_NeKK7CbKK0sqRkI4_z_hIc43MSs2
push edx
push edi
call dword [0x41e6b4]
add esp, 0x18
push esi
call dword [0x41e6bc]
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40f510
Capabilities:
Enumerate processes
Get session user name

Disassembly:
mov eax, 0x1cb0
call fcn.004107a0
mov eax, dword [0x41d178]
xor eax, esp
mov dword [esp + 0x1cac], eax
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1088]
push ecx
mov dword [esp + 0x14], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 8], esi
cmp esi, 0xffffffff
jne 0x40f57d
push str.CreateToolhelp32Snapshot__of_processes_
call fcn.0040e170
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1cac]
xor ecx, esp
call fcn.004100fb
add esp, 0x1cb0
ret
lea edx, [esp + 0x10]
push edx
push esi
mov dword [esp + 0x18], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40f5c0
push str.Process32First
call fcn.0040e170
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1cac]
xor ecx, esp
call fcn.004100fb
add esp, 0x1cb0
ret
push ebx
push ebp
mov ecx, 0x41f394
call fcn.0040f3e0
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x40f5e0
push 0x7cc
lea eax, [esp + 0x14f0]
push 0
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14f4], 0x20
call fcn.004101c0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40f72a
mov ecx, dword [esp + 0x1cc0]
lea edx, [esp + 0x1290]
push edx
push 0
push esi
lea eax, [esp + 0x1098]
push eax
push ecx
call fcn.0040e2a0
add esp, 0x14
test eax, eax
je 0x40f72a
lea edx, [esp + 0xc]
push edx
push esi
call fcn.0040e450
push 0x3e8
lea eax, [esp + 0x14f4]
push eax
push esi
call fcn.0040e4b0
add esp, 0x14
push esi
call ebp
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24c]
push 0x419524
push ecx
mov dword [esp + 0x250], eax
call ebx
add esp, 0xc
xor eax, eax
jmp 0x40f6a0
movzx ecx, word [esp + eax + 0x3c]
mov word [esp + eax + 0x284], cx
add eax, 2
test cx, cx
jne 0x40f6a0
xor eax, eax
jmp 0x40f6c0
movzx ecx, word [esp + eax + 0x1290]
mov word [esp + eax + 0x486], cx
add eax, 2
test cx, cx
jne 0x40f6c0
mov edx, dword [esp + 0xc]
shr edx, 0xa
push edx
lea eax, [esp + 0x68c]
push str._d_K
push eax
call ebx
add esp, 0xc
xor eax, eax
jmp 0x40f700
movzx ecx, word [esp + eax + 0x14e8]
mov word [esp + eax + 0x88a], cx
add eax, 2
test cx, cx
jne 0x40f700
lea ecx, [esp + 0x244]
push ecx
mov ecx, 0x41f394
call fcn.0040f470
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f5e0
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov ecx, dword [esp + 0x1cb8]
pop ebp
pop ebx
pop esi
xor ecx, esp
mov eax, 1
call fcn.004100fb
add esp, 0x1cb0
ret
Function at 0x4100fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d178]
jne 0x410105
repz ret
jmp fcn.0041206f

Function at 0x415f77
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41d178]
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.0041377e
and dword [ebp - 0x14], 0
cmp dword [0x420054], 0
mov dword [ebp - 0x18], eax
jne 0x41602a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4160d2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41af98
push ebx
call edi
test eax, eax
je 0x4160d2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x420054], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x420058], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42005c], eax
call edi
push eax
call esi
mov dword [0x420064], eax
test eax, eax
je 0x41602a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x420060], eax
mov eax, dword [0x420060]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x416083
cmp dword [0x420064], ecx
je 0x416083
push eax
call esi
push dword [0x420064]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x416083
test ebx, ebx
je 0x416083
call edi
test eax, eax
je 0x41607a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41607a
test byte [ebp - 8], 1
jne 0x416083
or dword [ebp + 0x10], 0x200000
jmp 0x4160b6
mov eax, dword [0x420058]
cmp eax, dword [ebp - 0x18]
je 0x4160b6
push eax
call esi
test eax, eax
je 0x4160b6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4160b6
mov eax, dword [0x42005c]
cmp eax, dword [ebp - 0x18]
je 0x4160b6
push eax
call esi
test eax, eax
je 0x4160b6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x420054]
call esi
test eax, eax
je 0x4160d2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4160d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004100fb
leave
ret
Function at 0x5be61d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x5d5204]
add ebx, 0xffffe881
mov dword [0x5d5208], ebx
mov dword [0x5d520c], 0
mov dword [0x5d5210], 0
mov dword [0x5d521c], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x5be7a8
jmp 0x5be6af
mov eax, dword [0x5d520c]
mov ecx, dword [0x5d5210]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x5be6af
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x5d5204], 0x1751
add ecx, 1
mov dword [ebp - 0x38], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
idiv esi
mov dword [0x5d520c], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x3c]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x40], edx
cdq
idiv esi
mov dword [0x5d5210], edx
mov esi, dword [ebp - 0x40]
mov cl, byte [ecx + esi]
mov byte [0x5d5214], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x5d5214]
mov edx, dword [0x5d5210]
mov byte [edi + edx], cl
mov edx, dword [0x5d520c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x5d5210]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x5d5208], 0x26fd
and ebx, 0xff
mov dword [0x5d521c], ebx
mov dword [0x5d5204], 0x267e
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x38]
mov ch, byte [edx + ebx]
mov dl, cl
add dl, byte [0x5d5221]
mov byte [0x5d5220], dl
mov byte [0x5d5221], ch
mov byte [0x5d5222], cl
mov dword [0x5d5208], 0x1b66
xor ch, cl
mov dword [0x5d5204], 0x1174
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x34], ebx
jne 0x5be68a
mov dword [0x5d5208], 0x13b3
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5be7ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x5d5204], 0x260a
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x110
mov edi, edx
add edi, esi
add edi, 0xa8
mov esi, dword [edi]
imul edi, eax, 0x110
add edx, edi
add edx, 0xa4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x12f
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x5be7e9
lea eax, [0x5c0384]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x5d5208], 0x1461
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.005be115
mov dword [0x5d5204], 0x79e
call fcn.005bdf5b
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.005bec7e
mov dword [0x5d5224], eax
mov ecx, dword [0x5d5204]
add ecx, 0xffffe40e
mov dword [0x5d5208], ecx
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x5d5204]
add edx, 0xfffffbd2
mov dword [0x5d5204], edx
mov edx, ecx
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x154], ecx
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
lea edx, section..data
imul esi, eax, 0x110
mov edi, edx
add edi, esi
add edi, 0xa8
mov esi, dword [edi]
imul edi, eax, 0x110
mov ebx, edx
add ebx, edi
add ebx, 0x10
mov edi, dword [ebx]
imul ebx, eax, 0x110
add edx, ebx
add edx, 0xa4
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x14c]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x160], edx
call fcn.005be3c4
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
add eax, ecx
mov edx, dword [ebp - 0x158]
add edx, 1
cmp edx, 0x12f
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], edx
jne 0x5be90d
lea eax, [0x5c0392]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], ecx
call fcn.005bede2
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
mov ecx, dword [ebp - 0x14c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.005be61d
xor eax, eax
mov ecx, dword [0x5d5204]
add ecx, 0x1d8e
mov dword [0x5d5204], ecx
mov ecx, dword [ebp - 0x14c]
add ecx, 0x5b297
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x13e600
mov ecx, dword [ebp - 0x14c]
add ecx, 0x2aac0
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f70
mov ecx, dword [0x5d5204]
add ecx, 0x1a21
mov dword [0x5d5204], ecx
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5bea6b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [0x5d5204], 0x1994
mov dword [ebp - 0x10], eax
call fcn.005be46c
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x5d5204], 0x2010
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x5bebbd
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x5beb3f
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x5beaee
mov al, byte [ebp - 0x42]
test al, 1
jne 0x5beb89
jmp 0x5beb48
mov eax, dword [ebp - 0x30]
add eax, 2
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
setb bl
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x4d], bl
xor eax, eax
mov cl, byte [ebp - 0x4d]
test cl, 1
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
jne 0x5bead4
jmp 0x5bebbd
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov edi, dword [edx + esi + 0x1c]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], edi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x54]
add edx, dword [eax + esi*4]
mov dword [0x5d5208], 0x2690
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5bede2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x5d5210], 0
mov byte [0x5d5214], 0
mov edi, dword [0x5d5204]
add edi, 0xfffffac9
mov dword [0x5d5208], edi
mov dword [0x5d520c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x5d5204], 0x1cb3
mov eax, dword [0x5d520c]
add eax, 1
mov dword [0x5d520c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x5bee2f
mov dword [0x5d5204], 0x1549
xor eax, eax
mov dword [0x5d520c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x5d5218], 0
mov edx, dword [0x5d5210]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x5d5218], edi
mov dword [0x5d5204], 0x15b
mov eax, edi
cdq
idiv ecx
mov dword [0x5d5210], edx
mov dword [0x5d5208], 0xffffff07
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x5d5214], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x5d5208]
add ecx, 0xffffdd45
mov dword [0x5d5204], ecx
mov cl, byte [0x5d5214]
mov edx, dword [0x5d5210]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x5d520c]
add edx, 1
mov dword [0x5d520c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x5bee78
mov dword [0x5d5208], 0x18f5
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5bef43
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x5c0384]
mov esi, 0xe
lea edi, [ebp - 0x2c]
mov dword [0x5d5208], 0x2337
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
call fcn.005be115
mov dword [0x5d5204], 0x79e
call fcn.005bdf5b
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.005bec7e
cmp eax, 0
sete bl
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bl
xor eax, eax
mov cl, byte [ebp - 0x41]
test cl, 1
mov dword [ebp - 0x48], eax
jne 0x5bf07d
jmp 0x5befc9
mov eax, dword [ebp - 0x40]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x5d5208], 0x1985
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c], eax
call fcn.005bf2bc
xor eax, eax
mov ecx, dword [0x5d5204]
mov edx, dword [ebp - 0x4c]
mov word [edx], 0x5a4d
add ecx, 0xffffda01
mov dword [0x5d5204], ecx
mov dword [edx + 0x3c], 0xc0
mov dword [edx + 0xc0], 0x4550
add edx, 0xffc00000
mov dword [0x5d5208], 0x2259
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x44], edx
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 0x40], edx
cmp edx, 0
mov dword [ebp - 0x48], eax
je 0x5bf07d
mov eax, dword [ebp - 0x4c]
add eax, 0x1a19
mov dword [0x5d5204], 0x6f0
mov dword [0x5d5208], 0x23bd
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret