joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53cabc
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.0040313c
lea eax, [esp + 0x38]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x53cca8
push 0
push 0x53ccb0
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x53cca8
push 0
push 0x53ccc0
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x53cca8
push 0
push 0x53ccd0
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x53cca8
push 0
push 0x53cce0
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x53cca8
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x53cca8
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x53cca8
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x53cca8
push 0x40
push 0x1000
push 0x1000
push 0
push edi
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
test esi, esi
je 0x53cca8
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x53cc94
inc ebx
push esi
push ebx
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x53cc8a
lea eax, [esp + 0xc]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x53cc8a
test byte [esp + 0x1d], 0xd
jne 0x53cc8a
mov al, byte [esp + 0x1c]
and al, 8
cmp al, 8
je 0x53cc8a
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x53cc8a
cmp dword [esp + 0xc], 0
je 0x53cc8a
mov eax, dword [0x5660f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x53cc8a
push esi
push ebx
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x53cc66
lea eax, [esp + 0xc]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0xc], 0
je 0x53cc94
lea eax, [esp + 0x28]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, dword [esp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
call fcn.0040693c
jmp 0x53cc94
cmp ebx, dword [esp + 4]
jl 0x53cbca
push 0x8000
push 0
push esi
push edi
call sub.kernel32.dll_VirtualFreeEx
push edi
call sub.kernel32.dll_CloseHandle
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x53e1e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x53e251
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x565914]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x53e23b
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0053e1d0
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x53dfd8]
call fcn.0053e278
mov dword [0x565978], eax
mov eax, dword [ebp - 4]
call fcn.0053e180
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53e258
lea eax, [ebp - 8]
call fcn.004060c8
ret

Function at 0x53e430
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
mov eax, esp
xor ecx, ecx
mov edx, 0x160
call fcn.0040313c
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x53e4c8
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x56590c], eax
cmp dword [0x56590c], 0
je 0x53e4c0
cmp dword [0x565910], 0
jne 0x53e4c0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4d2034]
call fcn.004d277c
mov dword [0x565910], eax
mov edx, dword [0x56590c]
mov eax, dword [0x565910]
call fcn.00459074
mov eax, dword [0x565910]
mov byte [eax + 0x42], 1
mov dl, 1
mov eax, dword [0x565910]
call fcn.004d3eb4
push 0xffffffffffffffff
mov eax, dword [0x565910]
call fcn.004590b0
push eax
call sub.comctl32.dll_ImageList_SetBkColor
add esp, 0x160
ret

Function at 0x53f9f0
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.00409668
test al, al
je 0x53fa77
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.0040313c
or esi, 0x100
test esi, esi
jns 0x53fa2b
call fcn.00403674
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404a0c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x53fa77
mov dl, 1
mov eax, dword [0x422ed8]
call fcn.0042b224
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042b630
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x53fa77
mov eax, esp
call fcn.0040ebcc
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x54ac40
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x5684fc
test esi, esi
jne 0x54ac5a
xor eax, eax
jmp 0x54ad5c
cmp dword [ebp], 0
jne 0x54ac65
call fcn.0054abd0
xor ebx, 0xffffffff
cmp edi, 8
jb 0x54ad35
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x54ac71
test edi, edi
jbe 0x54ad57
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x54ad39
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402b50
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3e0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x4231e0
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
jne 0x402c0a
lea eax, [ebp - 0xc10]
push eax
push 0
push 0
push 0x8005
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x402c0a
lea eax, [ebp - 0xc10]
call fcn.00401e30
mov ebx, eax
test ebx, ebx
je 0x402bbe
cmp byte [ebp + ebx - 0xc11], 0x5c
je 0x402bc7
mov byte [ebp + ebx - 0xc10], 0x5c
inc ebx
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x10]
mov eax, 0x4231e0
call fcn.00402b30
mov ecx, dword [ebp - 0xc]
inc ecx
lea edx, [ebp + ebx - 0xc10]
mov eax, dword [ebp - 0x10]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0xc10]
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x402d3e
push 2
push 0
push 0
push esi
call sub.kernel32.dll_SetFilePointer
lea edx, [ebp - 0x410]
mov eax, 0x402d48
mov ecx, 2
call fcn.00402118
mov ebx, eax
mov eax, 0x402d4c
mov ecx, 0x20
mov edx, ebx
call fcn.00402118
mov ebx, eax
lea eax, [ebp - 0xc20]
push eax
call sub.kernel32.dll_GetLocalTime
movzx eax, word [ebp - 0xc20]
mov edx, ebx
call fcn.00402068
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1e]
mov edx, ebx
call fcn.00402068
mov ebx, eax
mov byte [ebx], 0x2f
inc ebx
movzx eax, word [ebp - 0xc1a]
mov edx, ebx
call fcn.00402068
mov ebx, eax
mov byte [ebx], 0x20
inc ebx
movzx eax, word [ebp - 0xc18]
mov edx, ebx
call fcn.00402068
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc16], 0xa
jae 0x402cb3
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc16]
mov edx, ebx
call fcn.00402068
mov ebx, eax
mov byte [ebx], 0x3a
inc ebx
cmp word [ebp - 0xc14], 0xa
jae 0x402cd5
mov byte [ebx], 0x30
inc ebx
movzx eax, word [ebp - 0xc14]
mov edx, ebx
call fcn.00402068
mov ebx, eax
mov eax, 0x402d4c
mov ecx, 0x20
mov edx, ebx
call fcn.00402118
mov ebx, eax
mov eax, 0x402d48
mov ecx, 2
mov edx, ebx
call fcn.00402118
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x410]
sub ebx, eax
push ebx
lea eax, [ebp - 0x410]
push eax
push esi
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push esi
call sub.kernel32.dll_WriteFile
push esi
call sub.kernel32.dll_CloseHandle
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f8
push ebx
mov eax, 0x4231e0
call fcn.00401e4c
mov ebx, eax
test ebx, ebx
jbe 0x402e32
mov eax, dword [0x41f7fc]
call fcn.00401e30
mov ecx, eax
inc ecx
lea edx, [ebx + 0x4231dc]
mov eax, dword [0x41f7fc]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
push 0x3ff
lea eax, [ebp - 0x808]
push eax
push 0x402e38
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x402e32
cmp byte [ebp + ebx - 0x809], 0x5c
je 0x402dfa
mov byte [ebp + ebx - 0x808], 0x5c
inc ebx
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, 0x4231e0
call fcn.00402b30
mov ecx, dword [ebp - 8]
inc ecx
lea edx, [ebp + ebx - 0x808]
mov eax, dword [ebp - 4]
call sub.rtl160.bpl__System_Move_qqrpxvpvi
mov edx, 0x4231e0
lea eax, [ebp - 0x808]
mov ecx, 0x3ff
call sub.rtl160.bpl__System_Move_qqrpxvpvi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405978
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd8
push ebx
xor ebx, ebx
cmp dword [0x423c8c], 0
je 0x405a11
cmp byte [0x423c88], 0
je 0x4059c6
push 0x405a18
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0x400]
mov eax, 0x405a38
call fcn.00401e74
lea edx, [ebp - 0x400]
mov eax, 0x405a18
call fcn.00402164
jmp 0x405a11
call sub.rtl160.bpl__System_IsMemoryManagerSet_qqrv
test al, al
jne 0x405a11
lea eax, [ebp - 0x428]
call sub.rtl160.bpl__System_GetHeapStatus_qqrv
cmp dword [ebp - 0x41c], 0
je 0x405a0f
push 0x405a4c
call sub.kernel32.dll_OutputDebugStringA
lea edx, [ebp - 0x400]
mov eax, 0x405c34
call fcn.00401e74
lea edx, [ebp - 0x400]
mov eax, 0x405a4c
call fcn.00402164
jmp 0x405a11
mov bl, 1
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405f28
Capabilities:
Print debug messages
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
cmp byte [0x423c88], 0
jne 0x4060a9
push 1
push 0x2000
push 0x10000
push 0x80800000
call sub.kernel32.dll_VirtualAlloc
mov dword [0x4235e0], eax
call sub.kernel32.dll_GetCurrentProcessId
mov ebx, eax
xor eax, eax
mov ecx, eax
add ecx, ecx
add ecx, ecx
mov edx, ebx
shr edx, cl
and edx, 0xf
movzx edx, byte [edx + str.0123456789ABCDEF]
mov ecx, 0x18
sub ecx, eax
mov byte [ecx + str.LocalFastMM_PID_________], dl
inc eax
cmp eax, 8
jne 0x405f5f
push str.LocalFastMM_PID_________
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [0x423c84], eax
cmp dword [0x423c84], 0
jne 0x40602d
mov eax, dword [sym.imp.rtl160.bpl__System_IsLibrary]
cmp byte [eax], 0
jne 0x405fe8
push str.LocalFastMM_PID_________
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov dword [0x423c84], eax
push 0
push 0
push 0
push 2
mov eax, dword [0x423c84]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [eax], 0x423c6c
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [0x423c6c], fcn.00403d88
mov dword [0x423c70], 0x403f04
mov dword [0x423c74], 0x403ff0
mov dword [0x423c78], 0x404154
mov dword [0x423c7c], 0x404fe8
mov dword [0x423c80], 0x405038
mov byte [0x423c89], 1
jmp 0x40606f
push 0
push 0
push 0
push 4
mov eax, dword [0x423c84]
push eax
call sub.kernel32.dll_MapViewOfFile
mov edx, dword [eax]
mov esi, edx
mov edi, 0x423c6c
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [0x423c84]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
mov dword [0x423c84], eax
mov byte [0x423c89], 0
mov eax, 0x423c54
call sub.rtl160.bpl__System_GetMemoryManager_qqrr23System_TMemoryManagerEx
mov eax, 0x423c6c
call sub.rtl160.bpl__System_SetMemoryManager_qqrrx23System_TMemoryManagerEx
mov byte [0x423c88], 1
cmp byte [0x423c89], 0
je 0x40609f
push 0x4060b0
call sub.kernel32.dll_OutputDebugStringA
jmp 0x4060a9
push 0x4060cc
call sub.kernel32.dll_OutputDebugStringA
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1029bb98
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ecx, 0
sete dl
cmp eax, 0
sete dh
and dl, dh
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 0x15], dl
mov eax, 0xffffffff
mov cl, byte [ebp - 0x15]
test cl, 1
mov dword [ebp - 0x1c], eax
jne 0x1029bbd5
jmp 0x1029bc18
mov eax, dword [ebp - 0x1c]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
add eax, 0x24
mov dword [0x102b2de4], 0xe77
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x21]
and bh, bl
test bh, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
jne 0x1029bc86
jmp 0x1029bc96
mov dword [0x102b2de8], 0x25ed
mov dword [0x102b2de4], 0x14fc
mov ecx, dword fs:[0x18]
mov dword [0x102b2de4], 0xffffeafc
mov eax, dword [ecx + 0x30]
mov dword [0x102b2de8], 0xffffd3cf
mov eax, dword [eax + 0xc]
add eax, 0x14
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
setne dl
mov esi, eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x21], dl
mov dword [ebp - 0x38], esi
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
cmp eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
je 0x1029bbd5
jmp 0x1029bbe0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x1029bbd5
mov eax, dword [ebp - 0x28]
mov cx, word [eax]
mov dword [0x102b2de4], 0x26b6
shr cx, 1
movzx edx, cx
mov word [ebp - 0x3a], cx
mov dword [ebp - 0x40], edx
xor eax, eax
mov cx, word [ebp - 0x3a]
cmp cx, 0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x44], eax
je 0x1029bc69
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
mov dword [ebp - 0x48], eax
mov word [ebp - 0x4a], dx
mov word [ebp - 0x4c], di
jb 0x1029bcfe
mov ax, word [ebp - 0x4a]
mov word [ebp - 0x4c], ax
mov ax, word [ebp - 0x4c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x48]
cmp word [ecx + edx*2], ax
sete bl
cmp ax, 0
sete bh
mov al, bl
xor al, 1
or bh, al
test bh, 1
mov byte [ebp - 0x4d], bl
jne 0x1029bd40
mov dword [0x102b2de4], 0x667
mov eax, dword [ebp - 0x48]
add eax, 1
mov ecx, dword [ebp - 0x40]
cmp eax, ecx
mov dword [ebp - 0x44], eax
jb 0x1029bcca
mov al, byte [ebp - 0x4d]
test al, 1
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x38], ecx
jne 0x1029bd52
jmp 0x1029bc69
mov dword [0x102b2de8], 0xffffc994
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
jmp 0x1029bbd5
Function at 0x1029c153
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 [0x102b2df0], 0
mov byte [0x102b2df4], 0
mov dword [0x102b2de4], 0x1f87
mov dword [0x102b2dec], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1029c1b5
xor eax, eax
mov dword [0x102b2de4], 0xd51
mov dword [0x102b2dec], 0
mov dword [ebp - 0x20], eax
jmp 0x1029c1dd
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102b2dec]
add eax, 1
mov dword [0x102b2dec], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1029c1b5
jmp 0x1029c19a
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102b2df8], 0
mov dword [0x102b2de4], 0x17de
mov edx, dword [0x102b2df0]
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 [0x102b2df8], edi
mov dword [0x102b2de8], 0x51e
mov dword [0x102b2de4], 0xffffe312
mov eax, edi
cdq
idiv ecx
mov dword [0x102b2df0], edx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102b2df4], cl
mov dword [0x102b2de4], 0x1980
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x102b2de4]
add ecx, 0x1ff7
mov dword [0x102b2de8], ecx
mov cl, byte [0x102b2df4]
mov edx, dword [0x102b2df0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x102b2de4], 0x5e6
mov edx, dword [0x102b2de8]
add edx, 0xfffffd1a
mov dword [0x102b2de8], edx
mov edx, dword [0x102b2dec]
add edx, 1
mov dword [0x102b2dec], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1029c1dd
mov dword [0x102b2de4], 0x1e31
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1029c731
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x102b2de8], 0x26de
mov dword [ebp - 0x10], eax
call fcn.1029bd67
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov dword [0x102b2de8], 0xe73
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1029c781
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov dword [0x102b2de4], 0x16bd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1029c896
jmp 0x1029c803
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
jmp 0x1029c817
mov al, byte [ebp - 0x49]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x50]
add edx, 1
mov ah, byte [ebp - 0x51]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x48], edx
jne 0x1029c817
jmp 0x1029c840
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jmp 0x1029c7bc
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
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 - 0x50], eax
mov byte [ebp - 0x49], bh
mov byte [ebp - 0x51], cl
jne 0x1029c7d8
mov al, byte [ebp - 0x51]
test al, 1
jne 0x1029c873
jmp 0x1029c849
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x3c]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
jb 0x1029c7bc
jmp 0x1029c896
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x102b2de4], 0x22a3
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret