joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push 0
push eax
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Best_Application
push str.Clariot
push 0
mov dword [0x403186], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x4017f7
pop esi
pop ebp
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
pop ebp
ret

Function at 0x40180f
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402540
push 0x401dbc
push eax
mov eax, dword [0x403e84]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x403e80]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.00401db0
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x403e7c]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4020b8
push 0x4020b4
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4018aa
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x4018a2
cmp al, 0x22
jne 0x401897
cmp byte [esi], 0x22
jne 0x4018b4
inc esi
jmp 0x4018b4
cmp al, 0x20
jbe 0x4018b4
inc esi
cmp byte [esi], 0x20
ja 0x4018ae
cmp byte [esi], 0
je 0x4018c4
cmp byte [esi], 0x20
ja 0x4018c4
inc esi
cmp byte [esi], 0
jne 0x4018b9
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4018e4
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x401920
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x28166dd9
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x38745184
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406a60
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x410058]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
xor edi, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406a80
sub eax, edx
sar eax, 1
lea ebx, [esi + eax*2]
mov ecx, 0x40d1c8
mov edx, ebx
sub edx, ecx
jmp 0x406aa0
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x406aa0
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
mov dword [ebp - 0x258], eax
mov word [ebx], cx
cmp eax, 0xffffffff
jne 0x406af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407775
mov esp, ebp
pop ebp
ret
mov ecx, 0x40d1c4
lea eax, [ebp - 0x228]
jmp 0x406b00
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406b26
test dx, dx
je 0x406b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406b26
add eax, 4
add ecx, 4
test dx, dx
jne 0x406b00
xor eax, eax
jmp 0x406b2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406bdf
mov ecx, 0x40d1bc
lea eax, [ebp - 0x228]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406b66
test dx, dx
je 0x406b62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406b66
add eax, 4
add ecx, 4
test dx, dx
jne 0x406b40
xor eax, eax
jmp 0x406b6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406bdf
lea eax, [ebp - 0x228]
mov edx, ebx
mov ecx, eax
sub edx, ecx
jmp 0x406b80
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x406b80
test byte [ebp - 0x254], 0x10
je 0x406bbf
lea edi, [esi - 2]
jmp 0x406ba0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x406ba0
mov edx, dword [0x40d1b8]
push esi
mov dword [edi], edx
call fcn.00406a60
add esp, 4
jmp 0x406bd9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406bdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jne 0x406c0a
mov ecx, dword [ebp - 0x258]
lea eax, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
jne 0x406c0a
xor edi, edi
mov eax, dword [ebp - 0x258]
xor edx, edx
push eax
mov word [ebx], dx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x406c33
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x406c33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407775
mov esp, ebp
pop ebp
ret
Function at 0x407775
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410058]
jne 0x40777f
repz ret
jmp fcn.004088ad

Function at 0x40ae2c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410058]
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.004094e3
and dword [ebp - 0x14], 0
cmp dword [0x4117f0], 0
mov dword [ebp - 0x18], eax
jne 0x40aedf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40af87
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40af87
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4117f0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4117f4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4117f8], eax
call edi
push eax
call esi
mov dword [0x411800], eax
test eax, eax
je 0x40aedf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4117fc], eax
mov eax, dword [0x4117fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40af38
cmp dword [0x411800], ecx
je 0x40af38
push eax
call esi
push dword [0x411800]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40af38
test ebx, ebx
je 0x40af38
call edi
test eax, eax
je 0x40af2f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40af2f
test byte [ebp - 8], 1
jne 0x40af38
or dword [ebp + 0x10], 0x200000
jmp 0x40af6b
mov eax, dword [0x4117f4]
cmp eax, dword [ebp - 0x18]
je 0x40af6b
push eax
call esi
test eax, eax
je 0x40af6b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40af6b
mov eax, dword [0x4117f8]
cmp eax, dword [ebp - 0x18]
je 0x40af6b
push eax
call esi
test eax, eax
je 0x40af6b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4117f0]
call esi
test eax, eax
je 0x40af87
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40af89
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407775
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40152b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edx, dword [0x40c050]
mov ebx, eax
or edx, eax
mov eax, 0x40c054
call fcn.00401461
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x401f53
push edx
sub edi, fcn.0040171e
push edi
xor eax, eax
push fcn.0040171e
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401595
mov eax, fcn.0040171e
mov ebx, esi
mov edx, edi
call fcn.00401461
mov edx, 0x1ba00
mov eax, 0x40c054
mov ebx, esi
call fcn.00401360
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x40165c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x144, 0
xor eax, eax
push eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0x7f00
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x24], 6
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.DLL_LoadIconA]
push 0x7f00
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassW]
push 0
push 0
call dword [sym.imp.USER32.DLL_LoadAcceleratorsA]
push 0
call dword [sym.imp.OLE32.DLL_CoInitialize]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x144], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
movzx eax, byte [ebp - 0x18]
lea ebx, [eax - 0x47]
call dword [sym.imp.OLE32.DLL_CoUninitialize]
mov eax, dword [ebp - 4]
add eax, ebx
leave
pop edx
pop ecx
pop ebx
ret
Function at 0x423a50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f11b
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.00481d24
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x423ad2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047f7da
mov eax, dword [eax]
push 0x526244
push eax
call fcn.004722e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00481faf
test bl, bl
je 0x423ad2
push 0x526244
lea ecx, [esp + 0xc]
call fcn.0048238b
push 0x529da8
lea ecx, [esp + 0xc]
call fcn.0048238b
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 0x423b0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00481faf
jmp 0x423bd9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [int.004935b0]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x423b92
lea edx, [esp + 0x7c]
push 0x529da4
push edx
call fcn.004722e4
add esp, 8
test eax, eax
je 0x423b92
lea eax, [esp + 0x7c]
push 0x529da0
push eax
call fcn.004722e4
add esp, 8
test eax, eax
je 0x423b92
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 0x423b22
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.00481faf
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 0x4243d0
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 [int.00493008]
mov esi, eax
test esi, esi
jne 0x424432
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 [int.0049301c]
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 [int.00493000]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x424440
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f19b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x531120]
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 0x424578
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4244a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00481faf
xor eax, eax
jmp 0x4245ef
push 0x529de8
lea ecx, [esp + 0xc]
call fcn.00482138
push esi
lea ecx, [esp + 0xc]
call fcn.004823c7
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x529de0
push 0
call dword [fcn.00493438]
mov esi, eax
cmp esi, 0x20
ja 0x4245cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0x529dd8
push 0x80000000
call fcn.004243d0
test eax, eax
jne 0x4245cd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0x529dc4
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push 0x80000000
mov ecx, edi
call fcn.004243d0
test eax, eax
jne 0x4245cd
lea eax, [esp + 0x14]
push 0x529dbc
push eax
call fcn.00473490
mov esi, eax
add esp, 8
test esi, esi
jne 0x4245ac
lea ecx, [esp + 0x14]
push 0x529db8
push ecx
call fcn.00473410
mov esi, eax
add esp, 8
test esi, esi
jne 0x4245ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4245af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004820e8
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4244be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00481faf
xor eax, eax
jmp 0x4245ef
mov byte [esi], 0
push 0x529db4
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.00481faf
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 0x434ed0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [0x493490]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x434f3e
cmp si, 0x69
ja 0x434f3e
add esi, 0xffd0
cmp si, 0x11
je 0x434f0e
push 0x11
call edi
test ax, ax
jge 0x434f0e
or esi, 0x2000
cmp si, 0x10
je 0x434f23
push 0x10
call edi
test ax, ax
jge 0x434f23
or esi, 0x4000
cmp si, 0x12
je 0x434f38
push 0x12
call edi
test ax, ax
jge 0x434f38
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x434f4b
mov esi, 0xbd
jmp 0x434eff
cmp si, 0x6e
jne 0x434f58
mov esi, 0xbe
jmp 0x434eff
cmp si, 0x6f
jne 0x434ef9
mov esi, 0xbf
jmp 0x434eff

Function at 0x436700
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x541f88]
xor edx, edx
cmp eax, edx
jne 0x436726
xor eax, eax
mov byte [eax + 0x541e88], al
inc eax
cmp eax, 0x100
jl 0x43670e
mov dword [0x541f88], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x541e88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4367b7
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 0x43678a
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 0x436758
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x436830
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 0x436883
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 0x43686a
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
Function at 0x43ab20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x43ad41
cmp eax, 8
jg 0x43ad41
cmp dword [esp + 0x8c], 2
jl 0x43ad41
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x43ad41
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x43ad41
mov eax, dword [esp + 0x80]
test eax, eax
je 0x43aba7
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x43ad2a
mov ebp, dword [int.00493534]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x43abd9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x43ad11
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x43abf9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [int.00493514]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x43ac38
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.00493518]
lea ecx, [esp + 0x28]
push ecx
call dword [int.00493568]
test eax, eax
jne 0x43acf8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0043a130
cmp eax, 1
jne 0x43ad22
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0043a9e0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x43abed
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x43ad2a
jmp 0x43abc4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00439d30
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c