joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4125a0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f832
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x44e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov dword [esi + 4], 0x449620
mov dword [esi + 0x50], vtable.refer.0
mov dword [esi + 0x54], 1
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov dword [esi], vtable.cmd_line.1.0
mov dword [ebp - 0x18], 1
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.cmd_line.0
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x4c]
mov dword [ecx + esi], eax
xor eax, eax
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 7
mov word [esi + 0x10], ax
mov dword [ebp - 4], 1
movups xmmword [esi + 0x28], xmm0
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 7
mov word [esi + 0x28], ax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
lea eax, [esi + 8]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4126c2
mov eax, dword [eax]
test eax, eax
je 0x4126c2
push 0x449618
push eax
call fcn.0042093e
add esp, 8
test eax, eax
je 0x4126c2
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x14], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4126a6
sub eax, dword [ebp - 0x14]
lea ecx, [esi + 0x10]
sar eax, 1
push eax
push edx
call fcn.00407160
jmp 0x41270f
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00412070
add esp, 8
lea ecx, [esi + 0x10]
push eax
call fcn.004088f0
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x41270f
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412705
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412727
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004273ec
int3
Function at 0x413960
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x22
mov esi, ecx
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0x449490
lea ecx, [ebp - 0x1c]
movups xmmword [ebp - 0x1c], xmm0
call fcn.00407540
cmp dword [ebp - 8], 7
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [ebp - 8]
cmp eax, 1
sete bl
cmp ecx, 7
jbe 0x4139ef
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4139e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a01
push ecx
push edx
call fcn.0041eebc
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ee79
mov esp, ebp
pop ebp
ret
call fcn.004273ec
int3
Function at 0x413a10
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f9fd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xf003f
push 0
push 0
mov byte [ebp - 0x2d], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x413be2
push 0x2e
push esi
call fcn.004206fb
add esp, 8
test eax, eax
je 0x413a95
push 0x449664
push 0x2e
push esi
call fcn.004206fb
add esp, 8
push eax
call fcn.0042751d
add esp, 8
mov ecx, esi
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413ab0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00407540
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
cmova eax, dword [ebp - 0x2c]
push eax
push 0
push 2
push 0x10
push 0xf003f
push 0x449490
push str.xbbrowser_aiservice
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ecx, eax
mov dword [ebp - 0x34], ecx
test ecx, ecx
jne 0x413b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x413b87
push 2
push str.xbbrowser_aiservice
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x2d], 0
test eax, eax
je 0x413b63
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, 1
sete byte [ebp - 0x2d]
call esi
jmp 0x413b69
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 2
push str.xbbrowser_aiservice
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x413ba9
mov ecx, eax
call fcn.00413960
jmp 0x413ba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x413ba9
call fcn.00413960
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x2d], 1
push dword [ebp - 0x34]
call esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x413bdf
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413bd5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413c03
push ecx
push edx
call fcn.0041eebc
add esp, 8
push edi
call esi
mov al, byte [ebp - 0x2d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041ee79
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004273ec
int3
Function at 0x413c10
Capabilities:
Check for time delay via gettickcount
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
xor al, al
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x21], al
test ebx, ebx
je 0x413d55
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
push 0x14
push str.xbbrowser_aiservice
push ebx
call esi
mov edi, eax
test edi, edi
je 0x413d49
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x413cce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x413d3f
push 2
push str.xbbrowser_aiservice
push ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x413d3f
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push ebx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 1
jne 0x413d3f
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x413d3f
xorps xmm0, xmm0
mov dword [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x413d3f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop
cmp dword [ebp - 0x1c], 4
je 0x413d3b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x413d1c
mov ecx, eax
sub ecx, esi
cmp ecx, 0x7d0
jb 0x413d26
sub eax, esi
dec eax
cmp eax, 0x7d0
jae 0x413d3f
push 0x32
call ebx
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x413d00
jmp 0x413d3f
mov byte [ebp - 0x21], 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [ebp - 0x28]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, byte [ebp - 0x21]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041ee79
mov esp, ebp
pop ebp
ret

Function at 0x413d70
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
xor bl, bl
test edi, edi
je 0x413de7
push 0x24
push str.xbbrowser_aiservice
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x413de0
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 0
push ecx
xorps xmm0, xmm0
push 1
push eax
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [ebp - 0x24]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
pop esi
setne bl
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ee79
mov esp, ebp
pop ebp
ret
Function at 0x413e00
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x10
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 8], 0
xorps xmm0, xmm0
xor bl, bl
movq qword [ebp - 0x10], xmm0
movups xmmword [ebp - 0x20], xmm0
test edi, edi
je 0x413e7b
push esi
push 4
push str.xbbrowser_aiservice
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x413e73
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x413e6c
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x413e6a
cmp eax, 2
jne 0x413e6c
mov bl, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
xor ecx, ebp
pop ebx
call fcn.0041ee79
mov esp, ebp
pop ebp
ret
Function at 0x418b20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x418b52
jl 0x418b45
test ecx, ecx
jne 0x418b52
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x418c12
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00419eb0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x418bbe
jg 0x418b7d
test esi, esi
je 0x418bbe
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x418b95
mov eax, dword [esp + 0x10]
jl 0x418b8f
cmp eax, esi
jae 0x418b95
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00420f10
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x418bdf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x418bfb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x418b64
jl 0x418bfb
test ecx, ecx
jne 0x418b64
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x418c56
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x418c56
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00420f10
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x418cc7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x418c7c
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x418cb2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00429918
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x418cc7
cmp edi, eax
ja 0x418c90
test edi, edi
je 0x418cc7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00429918
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ac30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov eax, dword [esi]
dec eax
cmp eax, 3
ja case.default.0x41ac4c
jmp dword [eax*4 + 0x41addc]
push dword [esi + 4]
mov edx, dword [esi + 0x38]
push ecx
lea ecx, [esi + 0x28]
call fcn.0041a6d0
add esp, 8
cmp eax, 0x10
ja 0x41add4
test eax, eax
jne 0x41ac84
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x3c]
mov dword [ebx], eax
mov edx, ebx
mov eax, dword [esi + 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0xc], eax
call fcn.0041bf20
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
mov edx, dword [esi + 0x38]
push ecx
lea ecx, [esi + 0x28]
call fcn.0041a6d0
add esp, 8
cmp eax, 0x10
ja 0x41add4
test eax, eax
jne 0x41ace8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x3c]
xor eax, dword [esi + 0x18]
mov edx, ebx
mov dword [ebx], eax
mov eax, dword [esi + 0x2c]
xor eax, dword [esi + 0x1c]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x30]
xor eax, dword [esi + 0x20]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x34]
xor eax, dword [esi + 0x24]
mov dword [ebx + 0xc], eax
call fcn.0041bf20
mov eax, dword [ebx]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 8]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
lea edi, [esi + 0x18]
mov dword [ebp - 4], eax
lea ecx, [esi + 0x3c]
mov eax, dword [ebp + 8]
mov edx, edi
mov dword [eax], 0x10
call fcn.0041bf20
mov edx, dword [ebp - 4]
test edx, edx
je 0x41ad77
mov ecx, edx
mov al, byte [edi + 0x10]
lea edi, [edi + 1]
xor al, byte [edi - 1]
lea ebx, [ebx + 1]
mov byte [ebx - 1], al
sub ecx, 1
jne 0x41ad63
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x18]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x3c]
mov edx, edi
mov dword [ebp - 4], eax
mov dword [ebx], eax
call fcn.0041bf20
mov eax, dword [esi + 0x28]
xor dword [edi], eax
mov eax, dword [esi + 0x2c]
xor dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
xor dword [esi + 0x20], eax
mov eax, dword [esi + 0x34]
xor dword [esi + 0x24], eax
mov esi, dword [ebp - 4]
push esi
push edi
push dword [ebp - 8]
call fcn.00420f10
add esp, 0xc
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x1001
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41afc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, edx
mov ecx, dword [ebx + 0x38]
lea edx, [ecx + eax]
mov dword [ebp - 4], edx
mov dword [edi], edx
cmp edx, 0x10
ja 0x41b006
push eax
lea eax, [ebx + 0x28]
add eax, ecx
push esi
push eax
call fcn.00420f10
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx + 0x38], eax
xor eax, eax
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], esi
jne 0x41b017
pop edi
pop esi
mov eax, 0x1001
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x10
lea eax, [ebx + 0x28]
sub edi, ecx
add eax, ecx
push edi
push esi
push eax
call fcn.00420f10
mov ecx, dword [ebp - 4]
lea edx, [ebx + 0x18]
add ecx, 0xfffffff0
add esp, 0xc
mov dword [ebp + 8], ecx
add esi, edi
lea ecx, [ebx + 0x3c]
call fcn.0041bf20
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x18]
xor eax, dword [ebx + 0x28]
lea edx, [ebx + 0x28]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [ebx + 0x2c]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x30]
xor eax, dword [ebx + 0x20]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0x34]
xor eax, dword [ebx + 0x24]
mov dword [edi + 0xc], eax
add edi, 0x10
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 8]
cmp eax, 0x10
jbe 0x41b0fe
add eax, 0xffffffef
shr eax, 4
inc eax
mov dword [ebp - 4], eax
nop dword [eax + eax]
mov edx, ecx
lea ecx, [ebx + 0x3c]
call fcn.0041bf20
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 0x18]
xor eax, dword [esi]
lea edi, [edi + 0x10]
mov dword [edi - 0x10], eax
mov eax, dword [ebx + 0x1c]
xor eax, dword [esi + 4]
mov dword [edi - 0xc], eax
mov eax, dword [ebx + 0x20]
xor eax, dword [esi + 8]
mov dword [edi - 8], eax
mov eax, dword [ebx + 0x24]
xor eax, dword [esi + 0xc]
mov dword [edi - 4], eax
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0xc]
add esi, 0x10
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 8]
sub eax, 0x10
sub dword [ebp - 4], 1
mov dword [ebp + 8], eax
jne 0x41b0a0
lea edx, [ebx + 0x28]
push eax
push esi
push edx
call fcn.00420f10
mov eax, dword [ebx + 0x38]
add esp, 0xc
mov ecx, dword [ebp + 8]
and eax, 0xf0000000
add eax, ecx
mov dword [ebx + 0x38], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
sub dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41b3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov eax, dword [esi]
dec eax
cmp eax, 3
ja case.default.0x41b3ec
jmp dword [eax*4 + 0x41b588]
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x41b40c
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov dword [edi], 0x10
cmp eax, 0x10
je 0x41b426
pop edi
pop esi
mov eax, 0x1005
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x3c]
mov dword [ebx], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0xc], eax
call fcn.0041cd40
push dword [esi + 4]
mov ecx, ebx
call fcn.0041a740
mov ecx, eax
add esp, 4
cmp ecx, 0xfffffffd
jne 0x41b465
pop edi
pop esi
mov eax, 0x1003
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xffffffff
je case.default.0x41b3ec
mov eax, 0x10
sub eax, ecx
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
test eax, eax
je 0x41b3fa
mov edi, dword [ebp + 8]
mov dword [edi], 0x10
cmp eax, 0x10
jne 0x41b41a
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x3c]
mov dword [ebx], eax
mov eax, dword [esi + 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0xc], eax
call fcn.0041cd40
mov eax, dword [esi + 0x18]
xor dword [ebx], eax
mov eax, dword [esi + 0x1c]
xor dword [ebx + 4], eax
mov eax, dword [esi + 0x20]
xor dword [ebx + 8], eax
mov eax, dword [esi + 0x24]
xor dword [ebx + 0xc], eax
mov eax, dword [esi + 0x28]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x34]
mov dword [esi + 0x24], eax
jmp 0x41b445
mov ecx, dword [ebp + 8]
lea edi, [esi + 0x18]
mov eax, dword [esi + 0x38]
mov edx, edi
mov dword [ebp - 4], eax
mov dword [ecx], eax
lea ecx, [esi + 0x3c]
call fcn.0041bf20
mov edx, dword [ebp - 4]
test edx, edx
je 0x41b524
mov ecx, edx
nop dword [eax]
mov al, byte [edi + 0x10]
lea edi, [edi + 1]
xor al, byte [edi - 1]
lea ebx, [ebx + 1]
mov byte [ebx - 1], al
sub ecx, 1
jne 0x41b510
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], edx
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 8]
lea edi, [esi + 0x18]
mov eax, dword [esi + 0x38]
lea ecx, [esi + 0x3c]
mov edx, edi
mov dword [ebp - 4], eax
mov dword [ebx], eax
call fcn.0041bf20
mov eax, dword [esi + 0x28]
xor dword [edi], eax
mov eax, dword [esi + 0x2c]
xor dword [esi + 0x1c], eax
mov eax, dword [esi + 0x30]
xor dword [esi + 0x20], eax
mov eax, dword [esi + 0x34]
xor dword [esi + 0x24], eax
mov esi, dword [ebp - 4]
push esi
push edi
push dword [ebp - 8]
call fcn.00420f10
add esp, 0xc
mov dword [ebx], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1001
pop ebx
mov esp, ebp
pop ebp
ret