joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412510
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 0x43ebe2
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x44d010]
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], 0x448758
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 0x412632
mov eax, dword [eax]
test eax, eax
je 0x412632
push 0x448750
push eax
call fcn.0041fd1e
add esp, 8
test eax, eax
je 0x412632
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 0x412616
sub eax, dword [ebp - 0x14]
lea ecx, [esi + 0x10]
sar eax, 1
push eax
push edx
call fcn.004071c0
jmp 0x41267f
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00412010
add esp, 8
lea ecx, [esi + 0x10]
push eax
call fcn.004089d0
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x41267f
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x412675
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412697
push ecx
push edx
call fcn.0041e43c
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.004267cc
int3
Function at 0x413800
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x1c]
push 0x448470
call fcn.00406c30
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae 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, 8
jb 0x413878
mov edx, dword [ebp - 0x1c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41386e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41388a
push ecx
push edx
call fcn.0041e43c
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret
call fcn.004267cc
int3
Function at 0x413890
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43edad
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44d010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xf003f
push 0
push 0
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x413a1d
push 0x2e
push edi
call fcn.0041fadb
add esp, 8
test eax, eax
je 0x413900
push 0x44879c
push 0x2e
push edi
call fcn.0041fadb
add esp, 8
push eax
call fcn.004268fd
add esp, 8
push edi
lea ecx, [ebp - 0x28]
call fcn.00406c30
push 0
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 9
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 2
push 0x10
push 0xf003f
push 0x448470
push str.xbbrowser_aiservice
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
jne 0x4139d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4139c4
push 2
push str.xbbrowser_aiservice
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
xor bl, bl
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4139a0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, 1
sete bl
call edi
jmp 0x4139a6
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 2
push str.xbbrowser_aiservice
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4139e4
mov ecx, eax
call fcn.00413800
jmp 0x4139df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4139e4
call fcn.00413800
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
push dword [ebp - 0x2c]
call edi
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x413a1a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413a10
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a3b
push ecx
push edx
call fcn.0041e43c
add esp, 8
push esi
call edi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e3f9
mov esp, ebp
pop ebp
ret
call fcn.004267cc
int3
Function at 0x413a50
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 [0x44d010]
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 0x413b9f
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 0x413b93
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x413b12
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x422
jne 0x413b87
push 2
push str.xbbrowser_aiservice
push ebx
call esi
mov ebx, eax
test ebx, ebx
je 0x413b87
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 ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call ebx
cmp esi, 1
jne 0x413b8d
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x413b8d
jmp 0x413b18
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
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 0x413b8d
cmp dword [ebp - 0x1c], 4
je 0x413b81
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, esi
cmp eax, esi
jb 0x413b5e
cmp ecx, 0x7d0
jb 0x413b68
lea eax, [ecx - 1]
cmp eax, 0x7d0
jae 0x413b8d
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x413b42
jmp 0x413b8d
mov byte [ebp - 0x21], 1
jmp 0x413b8d
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call ebx
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.0041e3f9
mov esp, ebp
pop ebp
ret
Function at 0x413bb0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44d010]
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 0x413c27
push 0x24
push str.xbbrowser_aiservice
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x413c20
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.0041e3f9
mov esp, ebp
pop ebp
ret

Function at 0x413c40
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44d010]
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
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 0x413cbe
push esi
push 4
push str.xbbrowser_aiservice
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x413cb6
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x413caf
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x413cad
cmp eax, 2
jne 0x413caf
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.0041e3f9
mov esp, ebp
pop ebp
ret
Function at 0x418130
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 0x418162
jl 0x418155
test ecx, ecx
jne 0x418162
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 0x418222
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00419490
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x4181ce
jg 0x41818d
test esi, esi
je 0x4181ce
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4181a5
mov eax, dword [esp + 0x10]
jl 0x41819f
cmp eax, esi
jae 0x4181a5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004202f0
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 0x4181ef
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x41820b
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 0x418174
jl 0x41820b
test ecx, ecx
jne 0x418174
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 0x418266
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x418266
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004202f0
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 0x4182d7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x41828c
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 0x4182c2
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00428cf8
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4182d7
cmp edi, eax
ja 0x4182a0
test edi, edi
je 0x4182d7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00428cf8
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 0x41a1a0
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.0x41a1bc
jmp dword [eax*4 + 0x41a34c]
push dword [esi + 4]
mov edx, dword [esi + 0x38]
push ecx
lea ecx, [esi + 0x28]
call fcn.00419c40
add esp, 8
cmp eax, 0x10
ja 0x41a344
test eax, eax
jne 0x41a1f4
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.0041b490
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.00419c40
add esp, 8
cmp eax, 0x10
ja 0x41a344
test eax, eax
jne 0x41a258
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.0041b490
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.0041b490
mov edx, dword [ebp - 4]
test edx, edx
je 0x41a2e7
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 0x41a2d3
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.0041b490
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.004202f0
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 0x41a530
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 0x41a576
push eax
lea eax, [ebx + 0x28]
add eax, ecx
push esi
push eax
call fcn.004202f0
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 0x41a587
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.004202f0
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.0041b490
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 0x41a66e
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.0041b490
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 0x41a610
lea edx, [ebx + 0x28]
push eax
push esi
push edx
call fcn.004202f0
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 0x41a940
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.0x41a95c
jmp dword [eax*4 + 0x41aaf8]
mov eax, dword [esi + 0x38]
test eax, eax
jne 0x41a97c
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 0x41a996
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.0041c2c0
push dword [esi + 4]
mov ecx, ebx
call fcn.00419cb0
mov ecx, eax
add esp, 4
cmp ecx, 0xfffffffd
jne 0x41a9d5
pop edi
pop esi
mov eax, 0x1003
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 0xffffffff
je case.default.0x41a95c
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 0x41a96a
mov edi, dword [ebp + 8]
mov dword [edi], 0x10
cmp eax, 0x10
jne 0x41a98a
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.0041c2c0
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 0x41a9b5
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.0041b490
mov edx, dword [ebp - 4]
test edx, edx
je 0x41aa94
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 0x41aa80
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.0041b490
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.004202f0
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