joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4103b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x42675b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push ebp
push esi
push edi
mov dword [esp + 0x220], 0
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.00412dc0
mov byte [eax + 1], 0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x42f3b0]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x234]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s__s
push eax
mov byte [esp + 0x238], 2
call fcn.0041e3cc
mov ecx, dword [esp + 0x244]
push 0x432af0
push ecx
call fcn.00411964
mov ebp, dword [esp + 0x24c]
mov edx, dword [esp + 0x250]
add esp, 0x20
lea ecx, [esp + 0x114]
neg eax
sbb eax, eax
and eax, ebp
neg edx
sbb edx, edx
and edx, 5
push edx
push ecx
lea edx, [esp + 0x18]
push eax
push edx
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x220], 1
call fcn.0041ef82
lea ecx, [esp + 0x228]
mov byte [esp + 0x220], 0
call fcn.0041ef82
lea ecx, [esp + 0x22c]
mov dword [esp + 0x220], 0xffffffff
call fcn.0041ef82
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x4202df
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x420317
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041f3dd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041f3b5
jmp 0x420323
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x401168
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x440f38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call fcn.0043a8eb
mov eax, dword [esp + 0x40]
mov ecx, esi
push eax
mov dword [esp + 0x3c], 0
call fcn.00437cb5
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0043a98d
mov edi, eax
test edi, edi
je 0x4011a2
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0xc]
call fcn.0043a9a2
lea eax, [esi + 0x68]
test eax, eax
je 0x4011bd
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
push eax
push edx
call fcn.0043aacd
mov ecx, dword [esi + 0x6c]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
neg eax
sbb eax, eax
mov ecx, dword [edi + 4]
push 0xcc0020
and eax, edx
mov edx, dword [esp + 0x24]
push 0
push 0
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.0043aa0a
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x40688d
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x441188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x803a2c]
push esi
mov esi, ecx
push edi
mov ecx, dword [eax*4 + 0x4bac30]
push ecx
mov ecx, esi
call fcn.00437dda
mov edx, dword [0x803a2c]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
mov eax, dword [edx*4 + 0x4bac40]
push eax
call fcn.00438781
push 0x414
mov ecx, esi
call fcn.00406730
mov edx, dword [0x803a2c]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
mov eax, dword [edx*4 + 0x4bac50]
push eax
call fcn.00438781
push 0x416
mov ecx, esi
call fcn.00406730
mov edx, dword [0x803a2c]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
mov eax, dword [edx*4 + 0x4bac60]
push eax
call fcn.00438781
push 0x41b
mov ecx, esi
call fcn.00406730
mov edx, dword [0x803a2c]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
mov eax, dword [edx*4 + 0x4bac70]
push eax
call fcn.00438781
push 1
mov ecx, esi
call fcn.00406730
mov edx, dword [0x803a2c]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
mov eax, dword [edx*4 + 0x4bac80]
push eax
call fcn.00438781
push 2
mov ecx, esi
call fcn.00406730
mov ecx, dword [esi + 0x5c]
push ecx
push 0x416
mov ecx, esi
call fcn.00406840
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x406973
push 0
jmp 0x406975
push 1
push 0x41d
mov ecx, esi
call fcn.004067c0
mov edx, dword [0x4bb484]
mov dword [esp + 8], edx
mov eax, 0x10624dd3
mov dword [esp + 0x38], 0
mul dword [esi + 0x60]
mov edi, edx
lea eax, [esp + 0x10]
shr edi, 6
push edi
push 0x44e17c
push eax
call fcn.00425c19
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.0043889c
push ecx
lea edx, [esp + 0xc]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.004384cc
push 0x41d
mov ecx, esi
call fcn.00406730
push edi
push 0x41d
mov ecx, esi
call fcn.004067e0
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.00438757
mov ecx, dword [esp + 0x30]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x34
ret
Function at 0x407080
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x441248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
call fcn.004121f0
mov dword [0x803a2c], eax
mov eax, dword [eax*4 + 0x4bada4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00438781
mov esi, eax
push 0x4bf0f4
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
call fcn.00438781
mov edi, eax
mov ecx, dword [0x803a2c]
mov byte [esp + 0x24], 1
mov edx, dword [ecx*4 + 0x4badb4]
lea ecx, [esp + 0x10]
push edx
call fcn.00438781
push edi
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x2c], 2
push eax
call fcn.00438942
push esi
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x30], 3
call fcn.00438942
mov ecx, dword [esp + 0x2c]
push eax
mov byte [esp + 0x28], 4
call fcn.0043884c
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.00438757
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.00438757
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.00438757
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00438757
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.00438757
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x407180
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4412a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
call fcn.004121f0
push 0x4bf0f4
lea ecx, [esp + 0x10]
mov dword [0x803a2c], eax
call fcn.00438781
mov esi, eax
push str.V4.11
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00438781
push esi
push eax
lea eax, [esp + 0xc]
mov byte [esp + 0x34], 1
push eax
call fcn.00438942
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 4
call fcn.00438757
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.00438757
mov ecx, dword [0x803a2c]
mov edx, dword [ecx*4 + 0x4bada4]
lea ecx, [esp + 0x20]
push edx
call fcn.00438781
push 0x44e178
push eax
lea eax, [esp + 0x24]
mov byte [esp + 0x34], 5
push eax
call fcn.004389a8
push 0x44e20c
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x38], 6
call fcn.004389a8
lea edx, [esp + 4]
mov byte [esp + 0x2c], 7
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00438942
push 0x44e208
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x38], 8
call fcn.004389a8
mov ecx, dword [esp + 0x34]
push eax
mov byte [esp + 0x30], 9
call fcn.0043884c
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 8
call fcn.00438757
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 7
call fcn.00438757
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 6
call fcn.00438757
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 5
call fcn.00438757
mov byte [esp + 0x2c], 3
lea ecx, [esp + 0x20]
call fcn.00438757
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00438757
mov ecx, dword [esp + 0x24]
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4081f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4414c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0043a8eb
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x34], 0
test eax, eax
jne 0x408246
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call fcn.0043aa0a
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov eax, dword [esp + 0x3c]
push edi
push eax
mov ecx, esi
call fcn.00437cb5
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0043a98d
mov edi, eax
test edi, edi
je 0x40826c
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0xc]
call fcn.0043a9a2
lea eax, [esi + 0x19c]
test eax, eax
je 0x40828a
mov eax, dword [eax + 4]
mov edx, dword [esp + 0xc]
push eax
push edx
call fcn.0043aacd
mov ecx, dword [esi + 0x1a0]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
neg eax
sbb eax, eax
mov ecx, dword [edi + 4]
push 0xcc0020
and eax, edx
mov edx, dword [esp + 0x24]
push 0
push 0
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call fcn.0043aa0a
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 4
Function at 0x408420
Capabilities:
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44152c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push ebp
push esi
lea eax, [esp + 0x198]
push edi
push eax
mov esi, ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 0x19c]
push str.ICconfig.ini
push ecx
lea edx, [esp + 0xa0]
push str._s_s
push edx
call fcn.00425c19
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x98]
lea ecx, [esp + 0x18]
push eax
push 0x80
push ecx
push str.Ads.bmp
push str.FILENAME
push str.S_ADS
call edi
lea edx, [esp + 0x18]
lea ecx, [esp + 0x10]
push edx
call fcn.00438781
push eax
lea ecx, [esi + 0xe4]
mov dword [esp + 0x2ac], 0
call fcn.0043884c
or ebp, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], ebp
call fcn.00438757
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea eax, [esp + 0x98]
push eax
push 0
push str.DSPCLOSE
push str.S_ADS
call ebx
lea ecx, [esp + 0x98]
mov dword [esi + 0x200], eax
push ecx
push 0x1388
push str.DSPTIME
push str.S_ADS
call ebx
lea edx, [esp + 0x98]
mov dword [esi + 0x204], eax
push edx
lea eax, [esp + 0x1c]
push 0x80
push eax
push str.Logo.bmp
push str.FILENAME
push str.S_LOGO
call edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00438781
push eax
lea ecx, [esi + 0x208]
mov dword [esp + 0x2ac], 1
call fcn.0043884c
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], ebp
call fcn.00438757
lea edx, [esp + 0x98]
lea eax, [esp + 0x18]
push edx
push 0x80
push eax
push str.iCreate_Technologies_Corporation
push str.NAME
push str.S_COMPANY
call edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.00438781
push eax
lea ecx, [esi + 0x20c]
mov dword [esp + 0x2ac], 2
call fcn.0043884c
lea ecx, [esp + 0x10]
mov dword [esp + 0x2a8], ebp
call fcn.00438757
lea edx, [esp + 0x98]
lea eax, [esp + 0x18]
push edx
push 0x80
push eax
push str.http:__www.icreate.com.tw
push str.E_MAIL
push str.S_COMPANY
call edi
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x18]
call fcn.00438781
push eax
lea ecx, [esi + 0x210]
mov dword [esp + 0x2ac], 3
call fcn.0043884c
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a8], ebp
call fcn.00438757
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret
Function at 0x40a0f0
Capabilities:
Delete file

Disassembly:
sub esp, 0x28
push ebx
mov bl, byte [0x4b64e8]
neg bl
sbb bl, bl
push esi
and bl, 3
push 0x44e770
push 0x44e76c
lea eax, [esp + 0x18]
inc bl
push str._s._s
push eax
mov byte [esp + 0x1c], bl
call fcn.00425c19
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call esi
mov al, byte [0x803b84]
mov byte [esp + 8], 0
test al, al
jbe 0x40a1de
push ebp
push edi
test bl, bl
jbe 0x40a1c4
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edi, 1
and ebp, 0xff
mov al, byte [0x4b64e8]
push 0x44e770
test al, al
je 0x40a18e
mov edx, esi
push edi
and edx, 0xff
lea eax, [esp + 0x20]
inc edx
push edx
push str.XBBT
push str._s_d_d._s
push eax
call fcn.00425c19
add esp, 0x18
jmp 0x40a1af
mov ecx, esi
lea edx, [esp + 0x1c]
and ecx, 0xff
inc ecx
push ecx
push str.XBBT
push str._s_d._s
push edx
call fcn.00425c19
add esp, 0x14
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc edi
dec ebp
jne 0x40a15c
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [esp + 0x10]
mov cl, byte [0x803b84]
inc al
cmp al, cl
mov byte [esp + 0x10], al
jb 0x40a145
pop edi
pop ebp
mov al, byte [0x5c726c]
xor bl, bl
test al, al
mov byte [esp + 8], bl
jbe 0x40a22b
mov ecx, dword [esp + 8]
push 0x44e770
and ecx, 0xff
lea edx, [esp + 0x14]
inc ecx
push ecx
push str.PBBT
push str._s_d._s
push edx
call fcn.00425c19
add esp, 0x14
lea eax, [esp + 0x10]
push eax
call esi
mov al, byte [0x5c726c]
inc bl
cmp bl, al
mov byte [esp + 8], bl
jb 0x40a1ed
push 0x44e770
push str.RBBT
lea ecx, [esp + 0x18]
push str._s._s
push ecx
call fcn.00425c19
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call esi
push 0x44e770
push str.RSVD
lea eax, [esp + 0x18]
push str._s._s
push eax
call fcn.00425c19
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
call esi
push 0x44e770
push str.SECR
lea edx, [esp + 0x18]
push str._s._s
push edx
call fcn.00425c19
add esp, 0x10
lea eax, [esp + 0x10]
push eax
call esi
push 0x44e770
push str.UBBT
lea ecx, [esp + 0x18]
push str._s._s
push ecx
call fcn.00425c19
add esp, 0x10
lea edx, [esp + 0x10]
push edx
call esi
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x40a480
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
mov eax, dword [esi]
lea edx, [eax + ecx]
mov cx, word [0x803b7c]
mov dword [esp + 0x10], edx
mov di, cx
xor edx, edx
div edi
test edx, edx
je 0x40a4db
sub cx, dx
test cx, cx
jbe 0x40a4db
and ecx, 0xffff
mov edi, ecx
push 0
push 1
lea eax, [esp + 0x18]
push 0xff
push eax
call fcn.004119b0
mov ecx, dword [esi]
and eax, 0xff
add esp, 0x10
add ecx, eax
dec edi
mov dword [esi], ecx
jne 0x40a4b7
pop edi
pop esi
ret
Function at 0x40dc80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov al, byte [0x7e1742]
sub esp, 0x108
cmp al, 3
push ebx
push esi
push edi
jb 0x40dd1f
cmp al, 0x82
je 0x40dd1f
mov ecx, dword [0x6d7fe4]
xor esi, esi
mov si, word [0x803b7c]
mov eax, ecx
xor edx, edx
div esi
test edx, edx
jne 0x40dcc0
sub ecx, 8
mov dword [0x6d7fe4], ecx
lea eax, [ecx + 0x6d7fe4]
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dl, byte [eax]
mov byte [eax], 0xff
mov eax, dword [esp + 0xc]
mov byte [esp + ecx + 0x10], dl
inc eax
inc ecx
cmp ecx, 4
mov dword [esp + 0xc], eax
jb 0x40dccc
mov esi, dword [0x6d7fe4]
xor ecx, ecx
mov cx, word [0x803b7c]
mov eax, esi
xor edx, edx
div ecx
lea eax, [ecx - 8]
mov edi, edx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
and edx, 0xffff
cmp edx, eax
jge 0x40dd17
sub eax, edx
lea esi, [eax + esi - 4]
jmp 0x40dd23
sub ecx, edx
lea esi, [ecx + esi - 0xc]
jmp 0x40dd23
mov esi, dword [esp + 0x10]
push 0x6d7fe4
push 0x6d7fe8
call fcn.0040a480
mov al, byte [0x7e1742]
add esp, 8
cmp al, 3
jb 0x40dd67
cmp al, 0x82
je 0x40dd67
lea eax, [esi + 0x6d7fe8]
mov dword [esp + 0xc], eax
xor eax, eax
mov edx, dword [esp + 0xc]
mov cl, byte [esp + eax + 0x10]
mov byte [edx], cl
mov esi, dword [esp + 0xc]
inc esi
inc eax
cmp eax, 4
mov dword [esp + 0xc], esi
jb 0x40dd4e
call fcn.0040ded0
mov ecx, dword [0x6d7fe4]
xor ebx, ebx
mov bx, word [0x803b7e]
xor edx, edx
mov dx, word [0x803b7c]
lea eax, [ecx + 0x6d7fe8]
imul ebx, edx
mov dword [esp + 0xc], eax
mov eax, dword [0x5c726c]
and eax, 0xff
imul eax, ebx
sub eax, ecx
je 0x40ddb5
mov ecx, dword [esp + 0xc]
mov byte [ecx], 0xff
mov edx, dword [esp + 0xc]
inc edx
dec eax
mov dword [esp + 0xc], edx
jne 0x40dda2
mov eax, dword [0x5c726c]
xor ecx, ecx
mov cx, word [0x803b7e]
and eax, 0xff
imul eax, ecx
xor edx, edx
xor esi, esi
mov dx, word [0x803b7c]
add edx, 0x6d7fe3
test eax, eax
mov dword [esp + 0xc], edx
jbe 0x40de25
push 0
push 2
lea edx, [esp + 0x14]
push esi
push edx
call fcn.004119b0
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ax, word [0x803b7c]
add esp, 0x10
inc esi
lea edx, [ecx + eax - 2]
mov eax, dword [0x5c726c]
xor ecx, ecx
and eax, 0xff
mov cx, word [0x803b7e]
mov dword [esp + 0xc], edx
imul eax, ecx
cmp esi, eax
jb 0x40dde4
mov edx, dword [0x6d7fe4]
lea eax, [edx + 0x6d7fe8]
mov dword [esp + 0xc], eax
xor eax, eax
cmp word [0x7e0410], ax
jbe 0x40de66
mov edx, dword [esp + 0xc]
mov cl, byte [eax + 0x7e0412]
mov byte [edx], cl
mov ecx, dword [esp + 0xc]
inc ecx
inc eax
mov dword [esp + 0xc], ecx
mov ecx, dword [0x7e0410]
and ecx, 0xffff
cmp eax, ecx
jb 0x40de40
mov al, byte [0x5c726c]
xor esi, esi
test al, al
jbe 0x40debb
mov edi, 0x6d7fe8
inc esi
push 0x44e770
push esi
push str.PBBT
lea edx, [esp + 0x20]
push str._s_d._s
push edx
call fcn.00425c19
push 0x200
push ebx
lea eax, [esp + 0x30]
push edi
push eax
mov dword [esp + 0x30], edi
call fcn.00411ce0
mov ecx, dword [0x5c726c]
add esp, 0x24
and ecx, 0xff
add edi, ebx
cmp esi, ecx
jb 0x40de76
pop edi
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x4108f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov al, byte [0x4b64e8]
sub esp, 0xc
test al, al
je 0x410917
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call fcn.00411600
add esp, 0xc
add esp, 0xc
ret
mov eax, dword [esp + 0x10]
push ebx
and eax, 0xff
push ebp
shl eax, 5
add eax, 0x7e1758
push esi
xor esi, esi
push edi
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], esi
movzx bx, byte [eax + 0xa]
mov eax, dword [esp + 0x24]
test ecx, ecx
mov edx, dword [eax]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], edx
mov ebp, dword [eax]
mov dword [esp + 0x10], ebp
jbe 0x4109d7
mov edi, ecx
push 0
lea ecx, [esp + 0x18]
push 2
push ecx
call fcn.00411aa0
push 0
push 2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.004119b0
mov cl, al
mov eax, dword [esp + 0x3c]
and ecx, 0xff
xor esi, esi
add eax, ecx
mov cx, word [0x803b7c]
mov si, cx
xor edx, edx
mov dword [esp + 0x3c], eax
sub cx, 8
div esi
add esp, 0x1c
cmp dx, cx
jne 0x4109d0
mov esi, 4
push 0
push 2
lea edx, [esp + 0x18]
push 0xffff
push edx
call fcn.004119b0
mov ecx, dword [esp + 0x30]
and eax, 0xff
add esp, 0x10
add ecx, eax
dec esi
mov dword [esp + 0x20], ecx
jne 0x4109a8
dec edi
jne 0x410958
mov esi, dword [esp + 0x20]
cmp bx, 3
jb 0x410a4d
cmp bx, 0x82
je 0x410a4d
xor ecx, ecx
mov eax, esi
mov cx, word [0x803b7c]
xor edx, edx
div ecx
test edx, edx
jne 0x4109fe
sub esi, 8
mov dword [esp + 0x20], esi
lea eax, [esi + ebp - 4]
xor ecx, ecx
mov dl, byte [eax]
mov byte [eax], 0xff
mov byte [esp + ecx + 0x18], dl
inc eax
inc ecx
cmp ecx, 4
jb 0x410a04
mov esi, dword [esp + 0x20]
xor ecx, ecx
mov cx, word [0x803b7c]
mov eax, esi
xor edx, edx
div ecx
lea eax, [ecx - 8]
mov edi, edx
cdq
sub eax, edx
mov edx, edi
sar eax, 1
and edx, 0xffff
cmp edx, eax
jge 0x410a45
sub eax, edx
lea esi, [eax + esi - 4]
jmp 0x410a51
sub ecx, edx
lea esi, [ecx + esi - 0xc]
jmp 0x410a51
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.0040a480
add esp, 8
cmp bx, 3
jb 0x410a75
cmp bx, 0x82
je 0x410a75
mov ecx, dword [esp + 0x18]
lea eax, [esi + ebp]
mov dword [eax], ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax], edx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp]
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
Function at 0x411330
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x34
mov cx, word [0x803b7e]
mov ax, word [0x803b7c]
push edi
mov di, cx
mov word [esp + 0x14], ax
imul di, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], str.iCreate_XBBT0
add eax, 0xfffffff0
mov dword [esp + 0x2c], str.iCreate_XBBT1
imul ax, cx
mov dword [esp + 0x30], str.iCreate_XBBT2
mov dword [esp + 0x34], str.iCreate_XBBT3
lea ecx, [eax*4 + 0xffc0]
mov al, byte [0x803b84]
test al, al
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ecx
mov byte [esp + 0xc], 0
jbe 0x41151f
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x18]
push ebp
call fcn.0041d3b0
xor esi, esi
add esp, 4
shr eax, 3
xor ebx, ebx
cmp word [esp + 0x24], si
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
jbe 0x4114f9
mov ecx, edi
mov dword [esp + 0x14], esi
and ecx, 0xffff
mov dword [esp + 0x28], ecx
jmp 0x4113dd
mov ecx, dword [esp + 0x28]
mov eax, esi
and eax, 0xffff
cdq
idiv ecx
test dx, dx
jne 0x411436
test si, si
je 0x4113f5
inc dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ecx, ebp
and ecx, 0xff
and edx, 0xffff
mov eax, ecx
mov edi, 0x10
mov edx, dword [esp + edx*4 + 0x34]
shl eax, 5
add eax, ecx
mov ecx, edx
shl eax, 0xd
mov bl, byte [ecx]
mov edx, esi
and edx, 0xffff
inc esi
inc ecx
dec edi
mov byte [edx + eax + 0x5c7be0], bl
jne 0x41141c
mov ebx, dword [esp + 0x1c]
cmp bx, word [esp + 0x2c]
jae 0x411480
cmp byte [esp + 0x48], 1
jne 0x41145b
mov ecx, dword [esp + 0x14]
mov eax, ebp
and eax, 0xff
shl eax, 0xd
mov dl, byte [eax + ecx + 0x803b88]
jmp 0x41145f
mov dl, byte [esp + 0x4c]
mov eax, ebp
and eax, 0xff
mov ecx, eax
shl ecx, 5
add ecx, eax
mov eax, esi
shl ecx, 0xd
and eax, 0xffff
mov byte [eax + ecx + 0x5c7be0], dl
jmp 0x4114a1
mov eax, ebp
mov edx, esi
and eax, 0xff
mov ecx, eax
shl ecx, 5
add ecx, eax
shl ecx, 0xd
and edx, 0xffff
mov byte [edx + ecx + 0x5c7be0], 0xff
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x20]
inc esi
inc ebx
mov eax, esi
inc edx
and eax, 0xffff
mov dword [esp + 0x14], edx
cdq
and edi, 0xffff
mov dword [esp + 0x1c], ebx
idiv edi
add edi, 0xfffffff0
and edx, 0xffff
cmp edx, edi
jne 0x4114ea
mov eax, 0x10
mov edx, esi
and edx, 0xffff
inc esi
dec eax
mov byte [edx + ecx + 0x5c7be0], 0xff
jne 0x4114d6
cmp bx, word [esp + 0x24]
jb 0x4113d9
mov edi, dword [esp + 0x30]
mov cl, byte [esp + 0x18]
mov al, byte [0x803b84]
and esi, 0xffff
inc cl
cmp cl, al
mov dword [0x5c7bdc], esi
mov byte [esp + 0x18], cl
jb 0x41139c
pop esi
pop ebp
pop ebx
shl al, 2
mov byte [0x5c7228], al
pop edi
add esp, 0x34
ret