joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4932c0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x493363
test eax, eax
jbe 0x493363
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x493363
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x49330e
xor esi, esi
jmp 0x493314
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x49333f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00420df0
add esi, eax
push esi
mov ebx, esi
call fcn.00420df0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x493320
pop ebp
test edi, edi
pop edi
jne 0x493363
test ebx, ebx
je 0x493363
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0049ad70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4934a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4935bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4935bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004ad36a
mov esi, eax
test esi, esi
je 0x4935bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4935bd
mov ecx, esi
call fcn.00493410
cmp edi, eax
jge 0x4935bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x493543
mov dword [esp + 0x34], 1
jmp 0x49359e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4935bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004911d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4add54
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4add8c
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.004abd88
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004abd60
jmp 0x4add98
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4af54b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4af58d
call fcn.004b5bd2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4af58d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4af584
xor eax, eax
jmp 0x4af595
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004af59b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b6102
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b6130
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b614e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b6068
jmp 0x4b614e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b614e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b6068
test edi, edi
mov eax, edi
jne 0x4b6138
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41c50b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41c54d
call fcn.004204a8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41c54d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41c544
xor eax, eax
jmp 0x41c555
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041c55b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4214b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4214de
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4214fc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00421416
jmp 0x4214fc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4214fc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00421416
test edi, edi
mov eax, edi
jne 0x4214e6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x527b56
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x435a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push 0x447170
lea ecx, [esp + 8]
call fcn.0054ea8a
xor ebx, ebx
push 0x447170
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], ebx
call fcn.0054ea8a
push 0x447170
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.0054ea8a
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x2c]
push 4
lea ecx, [esp + 0x14]
push 4
push ecx
push 0x447250
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], 0x800
mov dword [esp + 0x2c], 0x21
mov dword [esp + 0x30], eax
call fcn.00527ae6
add esp, 0x18
cmp eax, ebx
jne 0x527beb
mov byte [esp + 0x24], 1
lea ecx, [esp + 8]
jmp 0x527c47
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0x18]
push 4
push eax
push 0x447240
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00527ae6
add esp, 0x18
cmp eax, ebx
jne 0x527c1a
mov byte [esp + 0x24], 1
lea ecx, [esp + 8]
jmp 0x527c47
mov eax, dword [esp + 4]
push 4
lea edx, [esp + 0x1c]
push 4
push edx
push 0x447164
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00527ae6
add esp, 0x18
cmp eax, ebx
mov byte [esp + 0x24], 1
lea ecx, [esp + 8]
jne 0x527c7c
call fcn.0054ea1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.0054ea1c
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0054ea1c
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
call fcn.0054ea1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.0054ea1c
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0054ea1c
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x52c6e6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4364b8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x52c723
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
call fcn.00538cd3
mov ecx, dword [0x448478]
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], ecx
push 0x447834
lea edx, [esp + 0xc]
mov ebx, 1
push esi
push edx
mov byte [esp + 0x3c], bl
call fcn.0054ecb1
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call fcn.0054eb55
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call fcn.0054ea1c
mov eax, dword [esp + 0x38]
push 0
push eax
lea ecx, [esp + 0x14]
call fcn.00538d96
test eax, eax
jne 0x52c7b8
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], al
call fcn.0054ea1c
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00538d10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov esi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x10]
call fcn.00538fb6
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00538f7d
test eax, eax
jne 0x52c839
mov edx, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [edx + 0x38]
test eax, eax
je 0x52c80d
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
call fcn.00539085
push esi
push eax
mov byte [esp + 0x3c], 3
call fcn.0052c6e6
add esp, 8
mov byte [esp + 0x34], bl
lea ecx, [esp + 0x40]
jmp 0x52c834
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00539085
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x3c], 4
call fcn.0054e056
mov byte [esp + 0x34], bl
lea ecx, [esp + 0xc]
call fcn.0054ea1c
test edi, edi
jne 0x52c7bd
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0054ea1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00538d10
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x52d876
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4366b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
push 0x44715c
lea eax, [esp + 0x1c]
push 0x44a64c
push eax
call fcn.0054ecb1
mov eax, dword [eax]
push eax
push 0x447a10
call dword [0x4392a8]
lea ecx, [esp + 0x18]
call fcn.0054ea1c
mov eax, dword [0x448478]
mov dword [esp + 0xc], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call fcn.0054de4e
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x20]
mov bl, 3
push ecx
push edx
mov byte [esp + 0x44], bl
call fcn.0052c6e6
mov eax, dword [esp + 0x30]
add esp, 8
xor esi, esi
test eax, eax
jle 0x52da15
mov edi, dword [0x4392c0]
mov eax, dword [esp + 0x24]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x10]
call fcn.0054eb55
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0054d568
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 4
call fcn.0054eb55
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], bl
call fcn.0054ea1c
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.0054eb55
lea ecx, [esp + 0xc]
call fcn.0054eee3
mov edx, dword [esp + 0xc]
push 0x447a08
push edx
call fcn.0053fc6b
add esp, 8
test eax, eax
je 0x52d998
mov eax, dword [esp + 0xc]
push 0x447a00
push eax
call fcn.0053fc6b
add esp, 8
test eax, eax
jne 0x52da08
mov ecx, dword [esp + 0x24]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x10]
push edx
call fcn.0054eb55
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0054d621
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0054d58b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 5
call fcn.0054eb55
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], bl
call fcn.0054ea1c
mov ecx, dword [esp + 0x10]
push ecx
call edi
push esi
lea ecx, [esp + 0x24]
call fcn.0052da66
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0054e791
call fcn.0052da76
add esp, 4
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x52d90f
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 2
call fcn.0054de81
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 1
call fcn.0054ea1c
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 0
call fcn.0054ea1c
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0054ea1c
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret
Function at 0x52f046
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x436910
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x52f083
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
call fcn.00538cd3
mov ecx, dword [0x448478]
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], ecx
push 0x447834
lea edx, [esp + 0xc]
mov ebx, 1
push esi
push edx
mov byte [esp + 0x3c], bl
call fcn.0054ecb1
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 2
call fcn.0054eb55
lea ecx, [esp + 8]
mov byte [esp + 0x30], bl
call fcn.0054ea1c
mov eax, dword [esp + 0x38]
push 0
push eax
lea ecx, [esp + 0x14]
call fcn.00538d96
test eax, eax
jne 0x52f118
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], al
call fcn.0054ea1c
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00538d10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov esi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x10]
call fcn.00538fb6
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.00538f7d
test eax, eax
jne 0x52f184
mov edx, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [edx + 0x38]
test eax, eax
je 0x52f184
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push eax
call fcn.00539085
lea ecx, [esp + 0x40]
push esi
push ecx
mov byte [esp + 0x3c], 3
call fcn.0052f046
mov eax, dword [esi + 8]
add esp, 8
lea edx, [esp + 0x40]
mov ecx, esi
push edx
push eax
call fcn.0054e056
lea ecx, [esp + 0x40]
mov byte [esp + 0x34], bl
call fcn.0054ea1c
test edi, edi
jne 0x52f11d
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 0
call fcn.0054ea1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.00538d10
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x5303a6
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436b10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0054de4e
mov edi, dword [esp + 0x30]
lea ecx, [esp + 8]
push edi
mov dword [esp + 0x2c], 0
call fcn.0054ea8a
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.0052c6e6
mov eax, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test eax, eax
jle 0x530419
mov edx, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
push eax
call fcn.0052f9d6
mov eax, dword [esp + 0x18]
add esp, 4
inc esi
cmp esi, eax
jl 0x530400
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
call fcn.0054dee1
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.0052f046
mov eax, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test eax, eax
jle 0x53045b
mov edx, dword [esp + 0x10]
mov eax, dword [edx + esi*4]
push eax
call fcn.0052f9f6
mov eax, dword [esp + 0x18]
add esp, 4
inc esi
cmp esi, eax
jl 0x530442
push edi
call fcn.0052f9f6
add esp, 4
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.0054ea1c
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0054de81
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x533176
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0
call fcn.00538cd3
lea eax, [esp]
mov byte [esp + 0x4c], 1
push eax
call fcn.0052ea96
add esp, 4
push 0x448408
lea ecx, [esp + 4]
mov byte [esp + 0x50], 2
call fcn.0054edf8
lea ecx, [esp]
push ecx
lea ecx, [esp + 0x10]
call fcn.0054e791
push 0x448400
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 3
call fcn.0054edf8
mov edx, dword [esp + 0xc]
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.00538d96
test eax, eax
jne 0x533245
lea ecx, [esp + 0xc]
mov byte [esp + 0x4c], 2
call fcn.0054ea1c
lea ecx, [esp]
mov byte [esp + 0x4c], 1
call fcn.0054ea1c
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 0
call fcn.00538d10
lea ecx, [esp + 0x54]
mov dword [esp + 0x4c], 0xffffffff
call fcn.0054ea1c
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
push esi
lea ecx, [esp + 0x18]
call fcn.0054de4e
lea eax, [esp + 0x18]
lea ecx, [esp + 4]
push eax
push ecx
mov byte [esp + 0x58], 4
call fcn.0052c6e6
add esp, 8
lea edx, [esp + 0x58]
lea ecx, [esp + 0x14]
push edx
call fcn.0054e791
mov eax, dword [esp + 0x20]
xor esi, esi
test eax, eax
jle 0x53330d
mov eax, dword [0x448478]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x50], 7
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x10]
call fcn.0054eb55
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.0054eb55
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 4]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.0054d405
lea edx, [esp + 8]
push edx
call fcn.0052c8e6
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
call fcn.0052f996
add esp, 0x10
lea ecx, [esp + 8]
mov byte [esp + 0x50], 6
call fcn.0054ea1c
lea ecx, [esp + 0xc]
mov byte [esp + 0x50], 5
call fcn.0054ea1c
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x533282
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 4
call fcn.0054ea1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 3
call fcn.0054de81
lea ecx, [esp + 0x10]
mov byte [esp + 0x50], 2
call fcn.0054ea1c
lea ecx, [esp + 4]
mov byte [esp + 0x50], 1
call fcn.0054ea1c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], 0
call fcn.00538d10
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], 0xffffffff
call fcn.0054ea1c
mov ecx, dword [esp + 0x48]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret
Function at 0x5980cd
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 1
jl 0x5980de
cmp esi, 9
jle 0x5980e9
push 0x10022208
call fcn.0059bd9d
pop ecx
mov edi, 0x10000
xor ebx, ebx
push edi
push ebx
push 0x10034ca0
mov dword [0x100249c8], esi
call fcn.005a03b6
mov eax, esi
add esp, 0xc
shl eax, 3
cmp esi, 1
movzx ecx, word [eax + 0x100221ba]
mov dword [0x100249cc], ecx
movzx ecx, word [eax + 0x100221b8]
mov dword [0x100249c4], ecx
movzx ecx, word [eax + 0x100221bc]
movzx eax, word [eax + 0x100221be]
mov dword [0x100249c0], ecx
mov dword [0x100249d0], eax
jne 0x59814b
mov eax, dword [esp + 0x14]
or byte [eax], 4
jmp 0x598157
cmp esi, 9
jne 0x598157
mov eax, dword [esp + 0x14]
or byte [eax], 2
push edi
push 0x10044ca0
mov dword [0x100249e0], ebx
mov dword [0x100249ec], ebx
call dword [0x100249a0]
pop ecx
cmp eax, ebx
pop ecx
mov dword [0x100249d4], eax
je 0x5981cb
cmp eax, 0xffffffff
je 0x5981cb
mov esi, 0x106
mov dword [0x100249d8], ebx
cmp eax, esi
jae 0x5981a3
cmp dword [0x100249d8], ebx
jne 0x5981a3
call fcn.0059831c
cmp dword [0x100249d4], esi
jb 0x59818e
xor eax, eax
xor ecx, ecx
movzx edx, byte [ecx + 0x10044ca0]
and eax, 0x3ff
and edx, 0x7fff
shl eax, 5
xor eax, edx
inc ecx
cmp ecx, 2
jb 0x5981a7
mov dword [0x100249e8], eax
jmp 0x5981db
mov dword [0x100249d8], 1
mov dword [0x100249d4], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5983fa
Capabilities:
Encode data using xor

Disassembly:
push ecx
and dword [esp], 0
cmp dword [0x100249c8], 3
push edi
push 2
pop edi
jg 0x598417
call fcn.0059867c
jmp 0x598679
cmp dword [0x100249d4], 0
je 0x598651
mov ecx, dword [0x100249e0]
push ebx
push ebp
push esi
mov esi, 0x7fff
mov ebp, 0x3ff
movzx eax, byte [ecx + 0x10044ca2]
mov edx, dword [0x100249e8]
and eax, esi
and edx, ebp
mov ebx, ecx
shl edx, 5
xor eax, edx
and ebx, esi
movzx edx, word [eax*2 + 0x10034ca0]
mov dword [0x100249e8], eax
lea eax, [eax*2 + 0x10034ca0]
mov word [ebx*2 + 0x10024ca0], dx
mov ebx, dword [0x100249dc]
mov word [eax], cx
mov eax, edi
push 2
mov dword [0x100249e4], eax
test edx, edx
pop edi
je 0x5984c8
cmp eax, dword [0x100249cc]
jae 0x5984c8
mov eax, ecx
sub eax, edx
cmp eax, 0x7efa
ja 0x5984c8
push edx
call fcn.005981df
mov edi, eax
mov eax, dword [0x100249d4]
cmp edi, eax
pop ecx
jbe 0x5984ab
mov edi, eax
mov ecx, dword [0x100249e0]
cmp edi, 3
jne 0x5984c8
mov eax, ecx
sub eax, dword [0x100249dc]
cmp eax, 0x1000
jbe 0x5984c8
push 2
pop edi
mov eax, dword [0x100249e4]
cmp eax, 3
jb 0x598592
cmp edi, eax
ja 0x598592
sub ecx, ebx
add eax, 0xfffffffd
dec ecx
push eax
push ecx
call fcn.0059ae19
pop ecx
pop ecx
push 1
pop ecx
sub ecx, dword [0x100249e4]
add dword [0x100249d4], ecx
sub dword [0x100249e4], 2
mov ecx, dword [0x100249e0]
movzx edx, byte [ecx + 0x10044ca3]
mov edi, dword [0x100249e8]
inc ecx
and edi, ebp
and edx, esi
shl edi, 5
xor edx, edi
mov edi, ecx
mov dword [0x100249e8], edx
and edi, esi
mov bx, word [edx*2 + 0x10034ca0]
dec dword [0x100249e4]
lea edx, [edx*2 + 0x10034ca0]
mov word [edi*2 + 0x10024ca0], bx
mov word [edx], cx
jne 0x598509
and dword [esp + 0x10], 0
push 2
inc ecx
pop edi
test eax, eax
mov dword [0x100249e0], ecx
je 0x598600
mov eax, dword [0x100249ec]
test eax, eax
jl 0x598574
lea edx, [eax + 0x10044ca0]
jmp 0x598576
xor edx, edx
sub ecx, eax
push 0
push ecx
push edx
call fcn.0059a620
mov ecx, dword [0x100249e0]
add esp, 0xc
mov dword [0x100249ec], ecx
jmp 0x598600
cmp dword [esp + 0x10], 0
je 0x5985eb
movzx eax, byte [ecx + 0x10044c9f]
push eax
push 0
call fcn.0059ae19
pop ecx
test eax, eax
pop ecx
je 0x5985e3
mov eax, dword [0x100249ec]
test eax, eax
jl 0x5985bf
lea ecx, [eax + 0x10044ca0]
jmp 0x5985c1
xor ecx, ecx
mov edx, dword [0x100249e0]
push 0
sub edx, eax
push edx
push ecx
call fcn.0059a620
mov ecx, dword [0x100249e0]
add esp, 0xc
mov dword [0x100249ec], ecx
jmp 0x5985f3
mov ecx, dword [0x100249e0]
jmp 0x5985f3
mov dword [esp + 0x10], 1
inc ecx
dec dword [0x100249d4]
mov dword [0x100249e0], ecx
mov ebx, 0x106
cmp dword [0x100249d4], ebx
jae 0x598629
cmp dword [0x100249d8], 0
jne 0x598629
call fcn.0059831c
cmp dword [0x100249d4], ebx
mov ecx, dword [0x100249e0]
jb 0x59860d
cmp dword [0x100249d4], 0
jne 0x598437
cmp dword [esp + 0x10], 0
pop esi
pop ebp
pop ebx
je 0x598657
movzx eax, byte [ecx + 0x10044c9f]
push eax
push 0
call fcn.0059ae19
pop ecx
pop ecx
mov ecx, dword [0x100249e0]
mov edx, dword [0x100249ec]
test edx, edx
jl 0x598669
lea eax, [edx + 0x10044ca0]
jmp 0x59866b
xor eax, eax
sub ecx, edx
push 1
push ecx
push eax
call fcn.0059a620
add esp, 0xc
pop edi
pop ecx
ret