joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509490
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
mov ebx, ecx
push ebp
push esi
push edi
test byte [ebx + 0x18], 3
mov dword [esp + 0x18], ebx
jne 0x509520
mov esi, dword [esp + 0x24]
xor eax, eax
mov edx, esi
mov edi, 7
ror eax, 0x19
lea edx, [edx + 4]
xor eax, dword [edx - 4]
sub edi, 1
jne 0x5094b0
xor edx, edx
mov dword [esp + 0x10], edi
div dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
lea ebp, [eax + edx*4]
mov edx, dword [ebp]
mov dword [esp + 0x1c], ebp
test edx, edx
je 0x509520
mov ecx, dword [esi + 8]
nop dword [eax + eax]
cmp dword [edx + 0xc], ecx
jne 0x509514
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0xc]
jne 0x509514
mov eax, dword [edx + 0x14]
cmp eax, dword [esi + 0x10]
jne 0x509514
mov eax, dword [edx + 0x18]
cmp eax, dword [esi + 0x14]
jne 0x509514
mov eax, dword [edx + 0x1c]
cmp eax, dword [esi + 0x18]
jne 0x509514
mov eax, dword [edx + 4]
cmp eax, dword [esi]
jne 0x509514
mov eax, dword [edx + 8]
cmp eax, dword [esi + 4]
je 0x50952f
mov edi, edx
mov dword [esp + 0x10], edx
mov edx, dword [edx]
test edx, edx
jne 0x5094e0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x24], ecx
cmp eax, ecx
je 0x509603
test eax, eax
je 0x509603
nop dword [eax]
mov ebx, dword [eax]
xor esi, esi
mov edi, dword [eax + 8]
cmp ebx, ecx
cmove ebx, esi
mov dword [esp + 0x14], ebx
test edi, edi
je 0x5095ed
mov ecx, dword [eax + 0xc]
cmp ecx, edx
jne 0x5095e9
test ecx, ecx
je 0x5095be
mov ecx, dword [ecx]
mov ebp, edi
mov dword [eax + 0xc], ecx
test ecx, ecx
jne 0x5095b4
mov esi, dword [eax + 0x10]
inc esi
mov dword [eax + 0x10], esi
cmp esi, dword [edi + 0x10]
jae 0x5095b0
mov ebx, edi
nop dword [eax]
mov ecx, dword [edi + 0x14]
mov ebp, edi
mov ecx, dword [ecx + esi*4]
mov dword [eax + 0xc], ecx
test ecx, ecx
jne 0x5095ac
inc esi
mov ebp, ebx
mov dword [eax + 0x10], esi
mov edi, ebx
cmp esi, dword [ebx + 0x10]
jb 0x509590
mov ebx, dword [esp + 0x14]
test ecx, ecx
je 0x5095ba
mov byte [eax + 0x14], 1
jmp 0x5095e9
test ebp, ebp
je 0x5095e9
mov esi, dword [eax + 4]
test esi, esi
je 0x5095c9
mov ecx, dword [eax]
mov dword [esi], ecx
mov esi, dword [eax]
test esi, esi
je 0x5095d5
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov ecx, dword [esp + 0x24]
mov eax, ebx
test ebx, ebx
jne 0x509550
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov eax, dword [edx]
test edi, edi
je 0x50960d
mov dword [edi], eax
jmp 0x509610
mov dword [ebp], eax
dec dword [ebx + 0xc]
lea ecx, [ebx + 4]
push ecx
push ecx
mov ecx, dword [ecx]
push edx
call fcn.00509d70
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 4
Function at 0x50e570
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63a284
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 1
mov dword [ebp - 4], 0
mov dword [esi], vtable.CVpnRsaKeys.0
push 0x10c
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x100
mov dword [esi + 0x10], 0x80
mov dword [esi + 0x14], 0x108
call fcn.00606f0f
mov ecx, dword [esi + 0x14]
add ecx, 4
mov dword [esi + 8], eax
push ecx
push 0
push eax
call fcn.00608810
add dword [esi + 8], 4
mov byte [ebp - 4], 1
push 0x10c
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0x100
mov dword [esi + 0x20], 0x80
mov dword [esi + 0x24], 0x108
call fcn.00606f0f
mov ecx, dword [esi + 0x24]
add ecx, 4
mov dword [esi + 0x18], eax
push ecx
push 0
push eax
call fcn.00608810
add dword [esi + 0x18], 4
mov byte [ebp - 4], 2
push 0x20c
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0x200
mov dword [esi + 0x30], 0x100
mov dword [esi + 0x34], 0x208
call fcn.00606f0f
mov ecx, dword [esi + 0x34]
add ecx, 4
mov dword [esi + 0x28], eax
push ecx
push 0
push eax
call fcn.00608810
add dword [esi + 0x28], 4
mov byte [ebp - 4], 3
push 0x20c
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0x200
mov dword [esi + 0x40], 0x100
mov dword [esi + 0x44], 0x208
call fcn.00606f0f
mov ecx, dword [esi + 0x44]
add ecx, 4
mov dword [esi + 0x38], eax
push ecx
push 0
push eax
call fcn.00608810
add dword [esi + 0x38], 4
add esp, 0x40
mov byte [ebp - 4], 4
push 0x20c
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x200
mov dword [esi + 0x50], 0x100
mov dword [esi + 0x54], 0x208
call fcn.00606f0f
mov ecx, dword [esi + 0x54]
add ecx, 4
mov dword [esi + 0x48], eax
push ecx
push 0
push eax
call fcn.00608810
add dword [esi + 0x48], 4
mov byte [ebp - 4], 5
push 0x20c
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0x200
mov dword [esi + 0x60], 0x100
mov dword [esi + 0x64], 0x208
call fcn.00606f0f
mov ecx, dword [esi + 0x64]
add ecx, 4
mov dword [esi + 0x58], eax
push ecx
push 0
push eax
call fcn.00608810
mov eax, dword [ebp + 8]
add esp, 0x20
add dword [esi + 0x58], 4
mov dword [esi + 0x6c], eax
mov eax, esi
mov byte [esi + 0x70], 0
mov dword [esi + 0x68], 0x651eaf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x51fdc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63b3a5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6a6040]
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 ebx, ecx
mov dword [ebp - 0x28], ebx
mov edi, dword [0x6ac16c]
xor esi, esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x18], 0
push 0xffffffffffffffff
mov dword [ebp - 4], 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x51fe1f
mov dword [edi + 8], esi
jmp 0x51fe23
test eax, eax
jne 0x51fe34
inc dword [edi + 0xc]
mov esi, 1
inc dword [edi + 8]
inc dword [edi + 4]
mov dword [ebp - 0x1c], esi
cmp dword [0x6a6bfc], 0xfffffffc
je 0x51ffa7
cmp byte [0x6ac56d], 0
jne 0x51ffa7
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
jns 0x51fed2
cmp dword [0x6ac5fc], 0
jle 0x51ffa7
call ebx
sub eax, dword [0x6ac600]
cmp eax, 0x2710
jl 0x51ffa7
mov eax, dword [0x6ad360]
push ecx
mov ecx, esp
test eax, eax
je 0x51fe89
lock inc dword [eax]
jmp 0x51fe8b
xor eax, eax
mov dword [ecx], eax
call fcn.00471db0
add esp, 4
test eax, eax
je 0x51febf
mov eax, dword [eax + 0x26]
test eax, eax
je 0x51febf
cmp eax, dword [0x6ad35c]
jne 0x51fed2
lea ecx, [ebp - 0x20]
mov dword [0x6ac5fc], 0
call fcn.0041d900
jmp 0x51ffbf
dec dword [0x6ac5fc]
lea ecx, [ebp - 0x20]
call fcn.0041d900
jmp 0x51ffbf
lea ecx, [ebp - 0x20]
call fcn.0041d900
mov eax, dword [0x6ad360]
test eax, eax
je 0x51feeb
lock inc dword [eax]
mov dword [ebp - 0x14], eax
jmp 0x51fef2
mov dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x28]
mov ecx, 0x651eaf
test esi, esi
mov byte [ebp - 4], 3
mov eax, str._next_try...
cmovns eax, ecx
push eax
lea eax, [ebp - 0x14]
push eax
push str.___Updating_IP_address_for_vpn_adaper__S_s_n
push 0x6a6e70
call fcn.0042abc0
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esp
test eax, eax
je 0x51ff2d
lock inc dword [eax]
jmp 0x51ff2f
xor eax, eax
mov dword [ecx], eax
call fcn.004b74b0
add esp, 4
lea ecx, [ebp - 0x14]
test al, al
mov edx, str.___Updating_IP_address_for_vpn_adaper__S___service_is_started_normally_n
push ecx
mov ecx, str.___Updating_IP_address_for_vpn_adaper__S___service_starting_is_failed_n
cmovne ecx, edx
push ecx
push 0x6a6e70
call fcn.0042abc0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.0041d970
test esi, esi
jle 0x51ff70
call ebx
mov dword [0x6ac5fc], esi
jmp 0x51ff81
mov eax, dword [0x6ac5fc]
test eax, eax
jle 0x51ff86
dec eax
mov dword [0x6ac5fc], eax
call ebx
mov dword [0x6ac600], eax
lea ecx, [ebp - 0x20]
call fcn.0041d900
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x51ffbf
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x51ffbf
push ecx
call fcn.005a47b0
jmp 0x51ffbf
test esi, esi
jg 0x51ffb4
cmp dword [0x6ac6c4], 0
jne 0x51ffbf
dec esi
mov ecx, edi
mov dword [ebp - 0x1c], esi
call fcn.005e0810
lea ecx, [ebp - 0x20]
call fcn.0041d9b0
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.00606a47
mov esp, ebp
pop ebp
ret
Function at 0x536f60
Capabilities:
Encode data using xor

Disassembly:
push ecx
test byte [0x6ae208], 3
push ebx
push esi
push edi
jne 0x536fdd
mov edi, dword [esp + 0x14]
xor eax, eax
mov ecx, edi
mov edx, 3
nop word [eax + eax]
ror eax, 0x19
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
sub edx, 1
jne 0x536f80
div dword [0x6ae200]
mov eax, dword [0x6ae204]
mov esi, dword [eax + edx*4]
lea ebx, [eax + edx*4]
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], edx
test esi, esi
je 0x536fdd
mov ecx, dword [edi]
nop
cmp dword [esi + 4], ecx
jne 0x536fd1
mov eax, dword [esi + 8]
cmp eax, dword [edi + 4]
jne 0x536fd1
mov ax, word [esi + 0xc]
cmp ax, word [edi + 8]
jne 0x536fd1
mov ax, word [esi + 0xe]
cmp ax, word [edi + 0xa]
je 0x536fe9
mov edx, esi
mov dword [esp + 0x14], esi
mov esi, dword [esi]
test esi, esi
jne 0x536fb0
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 4
mov eax, dword [0x6ae20c]
cmp eax, 0x6ae20c
je 0x53709c
test eax, eax
je 0x53709c
push ebp
mov ebp, dword [eax]
xor ecx, ecx
mov edi, dword [eax + 8]
cmp ebp, 0x6ae20c
mov ebx, ebp
cmove ebx, ecx
test edi, edi
je 0x537089
mov ecx, dword [eax + 0xc]
cmp ecx, esi
jne 0x537089
test ecx, ecx
je 0x537060
mov ecx, dword [ecx]
mov dword [eax + 0xc], ecx
test ecx, ecx
jne 0x53705a
mov edx, dword [eax + 0x10]
inc edx
mov dword [eax + 0x10], edx
cmp edx, dword [edi + 0x10]
jae 0x537060
nop dword [eax + eax]
mov ecx, dword [edi + 0x14]
mov ecx, dword [ecx + edx*4]
mov dword [eax + 0xc], ecx
test ecx, ecx
jne 0x53705a
inc edx
mov dword [eax + 0x10], edx
cmp edx, dword [edi + 0x10]
jb 0x537040
test ecx, ecx
je 0x537060
mov byte [eax + 0x14], 1
jmp 0x537089
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x537069
mov dword [ecx], ebp
mov edx, dword [eax]
test edx, edx
je 0x537075
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov eax, ebx
test ebx, ebx
jne 0x537002
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
pop ebp
mov eax, dword [esi]
test edx, edx
je 0x5370a6
mov dword [edx], eax
jmp 0x5370a8
mov dword [ebx], eax
dec dword [0x6ae1fc]
push ecx
mov ecx, dword [0x6ae1f4]
push 0x6ae1f4
push esi
call fcn.004b31d0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4

Function at 0x537e50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
mov ecx, 3
nop dword [eax + eax]
ror eax, 0x19
xor eax, dword [edx]
add edx, 4
sub ecx, 1
jne 0x537e60
push esi
lea esi, [ecx + 2]
movzx ecx, byte [edx]
lea edx, [edx + 1]
ror eax, 0x19
xor eax, ecx
sub esi, 1
jne 0x537e71
pop esi
ret 4
Function at 0x53a300
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov edx, ecx
xor eax, eax
mov ecx, 3
nop dword [eax]
ror eax, 0x19
xor eax, dword [edx]
add edx, 4
sub ecx, 1
jne 0x53a310
push esi
lea esi, [ecx + 2]
movzx ecx, byte [edx]
lea edx, [edx + 1]
ror eax, 0x19
xor eax, ecx
sub esi, 1
jne 0x53a321
pop esi
ret
Function at 0x53a510
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63c4a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
push 0
push 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push 0
mov dword [esi], vtable.CMaaThread.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x18], 0xaa5555aa
mov dword [ebp - 4], 0
lea edi, [esi + 0x4c]
mov dword [esi], vtable.CDhcp6Server.0
lea ebx, [esi + 0x5c]
mov dword [esi + 0x1c], 0
lea eax, [esi + 0x6c]
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov byte [eax + 8], 0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x82], 0
mov dword [esi + 0x86], 0
lea eax, [esi + 0x8a]
mov ecx, 2
nop dword [eax]
mov dword [eax], 0
lea eax, [eax + 0x10]
mov dword [eax - 0xc], 0
mov dword [eax - 8], 0
mov dword [eax - 4], 0
sub ecx, 1
jne 0x53a640
lea eax, [esi + 0xaa]
mov ecx, 4
nop
mov dword [eax], 0
lea eax, [eax + 0x10]
mov dword [eax - 0xc], 0
mov dword [eax - 8], 0
mov dword [eax - 4], 0
sub ecx, 1
jne 0x53a670
mov dword [esi + 0xea], ecx
push 0
sub esp, 8
mov byte [ebp - 4], 4
lea ecx, [esi + 0xee]
push 0
push 0x10
call fcn.0055bd80
push 0
sub esp, 8
mov byte [ebp - 4], 5
lea ecx, [esi + 0x113]
push 0
push 0x10
call fcn.004a9090
push 0
call fcn.0060cd03
add esp, 4
mov dword [esi + 0x7d], eax
mov byte [esi + 0x81], 0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ecx
mov dword [esi + 0x75], eax
or edx, 0xffffffff
mov dword [esi + 0x79], 0
mov ecx, str.ff02::1:2
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
push 0x651eaf
push edi
mov dword [esi + 0x138], 0x2a300
mov dword [esi + 0x13c], 0x278d0
mov dword [esi + 0x140], 0x15180
mov dword [esi + 0x144], 0x24ea0
call fcn.005d2060
add esp, 8
or edx, 0xffffffff
mov ecx, str.ff05::1:3
push 0x651eaf
push ebx
call fcn.005d2060
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x5e0ec0
push 0
push 0
call fcn.0061408e
mov dword [esi + 0xc], eax
add esp, 0x24
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x573a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629ce0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [0x6ac16c]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x573ada
mov dword [esi + 8], 0
jmp 0x573ade
test eax, eax
jne 0x573ae7
inc dword [esi + 0xc]
inc dword [esi + 8]
inc dword [esi + 4]
test byte [ebx + 0x24], 3
mov cx, word [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], cx
jne 0x573b47
lea edx, [ebp - 0x14]
mov esi, 2
movzx ecx, byte [edx]
lea edx, [edx + 1]
ror eax, 0x19
xor eax, ecx
sub esi, 1
jne 0x573b03
xor edx, edx
xor edi, edi
div dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
mov esi, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov dword [ebp - 0x10], eax
test esi, esi
je 0x573b47
mov eax, dword [ebp + 8]
nop dword [eax]
cmp dword [esi + 4], eax
jne 0x573b3f
mov cx, word [ebp + 0xc]
cmp word [esi + 8], cx
je 0x573b6a
mov edi, esi
mov esi, dword [esi]
test esi, esi
jne 0x573b30
xor ebx, ebx
mov ecx, dword [0x6ac16c]
call fcn.005e0810
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
lea ecx, [ebx + 0xc]
call fcn.0042a1d0
mov eax, dword [esi]
test edi, edi
je 0x573b7d
mov dword [edi], eax
jmp 0x573b82
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
dec dword [ebx + 0x18]
lea eax, [ebx + 0x10]
push ecx
mov ecx, dword [eax]
push eax
push esi
call fcn.004bfbf0
mov ebx, 1
jmp 0x573b49
Function at 0x573ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x629cc0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x6ac16c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
jne 0x573beb
mov dword [esi + 8], 0
jmp 0x573bef
test eax, eax
jne 0x573bf8
inc dword [esi + 0xc]
inc dword [esi + 8]
inc dword [esi + 4]
cmp dword [ebp + 0x10], 0
mov bx, word [ebp + 0xc]
mov dword [ebp - 0x14], edi
mov word [ebp - 0x10], bx
je 0x573c89
test byte [0x6ad884], 3
jne 0x573c57
mov eax, edi
lea edx, [ebp - 0x10]
mov esi, 2
movzx ecx, byte [edx]
lea edx, [edx + 1]
ror eax, 0x19
xor eax, ecx
sub esi, 1
jne 0x573c20
xor edx, edx
div dword [0x6ad87c]
mov eax, dword [0x6ad880]
lea eax, [eax + edx*4]
mov eax, dword [eax]
test eax, eax
je 0x573c57
cmp dword [eax + 4], edi
jne 0x573c51
cmp word [eax + 8], bx
je 0x573c7a
mov eax, dword [eax]
test eax, eax
jne 0x573c46
xor ebx, ebx
mov ecx, dword [0x6ac16c]
call fcn.005e0810
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xa]
mov dword [ecx], eax
mov ebx, 1
jmp 0x573c59
test byte [0x6ad884], 3
jne 0x573c57
mov eax, edi
lea edx, [ebp - 0x10]
mov esi, 2
nop dword [eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
ror eax, 0x19
xor eax, ecx
sub esi, 1
jne 0x573ca0
xor edx, edx
div dword [0x6ad87c]
mov eax, dword [0x6ad880]
lea eax, [eax + edx*4]
mov eax, dword [eax]
test eax, eax
je 0x573c57
cmp dword [eax + 4], edi
jne 0x573cd1
cmp word [eax + 8], bx
je 0x573c82
mov eax, dword [eax]
test eax, eax
jne 0x573cc6
jmp 0x573c57
Function at 0x577be0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
push esi
push edi
test byte [ebx + 0x18], 3
mov dword [esp + 0x14], ebx
jne 0x577c5d
mov edi, dword [esp + 0x20]
xor eax, eax
mov edx, edi
mov esi, 3
ror eax, 0x19
lea edx, [edx + 4]
xor eax, dword [edx - 4]
sub esi, 1
jne 0x577c00
xor edx, edx
div dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + edx*4]
lea ebp, [eax + edx*4]
xor edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edx
test esi, esi
je 0x577c5d
mov ecx, dword [edi]
nop dword [eax]
cmp dword [esi + 4], ecx
jne 0x577c51
mov eax, dword [esi + 8]
cmp eax, dword [edi + 4]
jne 0x577c51
mov ax, word [esi + 0xc]
cmp ax, word [edi + 8]
jne 0x577c51
mov ax, word [esi + 0xe]
cmp ax, word [edi + 0xa]
je 0x577c6c
mov edx, esi
mov dword [esp + 0x10], esi
mov esi, dword [esi]
test esi, esi
jne 0x577c30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x20], ecx
cmp eax, ecx
je 0x577d23
test eax, eax
je 0x577d23
mov ebp, dword [eax]
xor edx, edx
mov edi, dword [eax + 8]
cmp ebp, ecx
mov ebx, ebp
cmove ebx, edx
test edi, edi
je 0x577d0d
mov ecx, dword [eax + 0xc]
cmp ecx, esi
jne 0x577d09
test ecx, ecx
je 0x577ce0
mov ecx, dword [ecx]
mov dword [eax + 0xc], ecx
test ecx, ecx
jne 0x577cda
mov edx, dword [eax + 0x10]
inc edx
mov dword [eax + 0x10], edx
cmp edx, dword [edi + 0x10]
jae 0x577ce0
nop dword [eax + eax]
mov ecx, dword [edi + 0x14]
mov ecx, dword [ecx + edx*4]
mov dword [eax + 0xc], ecx
test ecx, ecx
jne 0x577cda
inc edx
mov dword [eax + 0x10], edx
cmp edx, dword [edi + 0x10]
jb 0x577cc0
test ecx, ecx
je 0x577ce0
mov byte [eax + 0x14], 1
jmp 0x577d09
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x577ce9
mov dword [ecx], ebp
mov edx, dword [eax]
test edx, edx
je 0x577cf5
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov ecx, dword [esp + 0x20]
mov eax, ebx
test ebx, ebx
jne 0x577c86
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov eax, dword [esi]
test edx, edx
je 0x577d2d
mov dword [edx], eax
jmp 0x577d30
mov dword [ebp], eax
dec dword [ebx + 0xc]
lea ecx, [ebx + 4]
push ecx
push ecx
mov ecx, dword [ecx]
push esi
call fcn.0057b8b0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
Function at 0x578580
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
mov ebx, ecx
push ebp
push esi
push edi
test byte [ebx + 0x18], 3
mov dword [esp + 0x14], ebx
jne 0x5785fd
mov edi, dword [esp + 0x20]
xor eax, eax
mov edx, edi
mov esi, 3
ror eax, 0x19
lea edx, [edx + 4]
xor eax, dword [edx - 4]
sub esi, 1
jne 0x5785a0
xor edx, edx
div dword [ebx + 0x10]
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + edx*4]
lea ebp, [eax + edx*4]
xor edx, edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], edx
test esi, esi
je 0x5785fd
mov ecx, dword [edi]
nop dword [eax]
cmp dword [esi + 4], ecx
jne 0x5785f1
mov eax, dword [esi + 8]
cmp eax, dword [edi + 4]
jne 0x5785f1
mov ax, word [esi + 0xc]
cmp ax, word [edi + 8]
jne 0x5785f1
mov ax, word [esi + 0xe]
cmp ax, word [edi + 0xa]
je 0x57860c
mov edx, esi
mov dword [esp + 0x10], esi
mov esi, dword [esi]
test esi, esi
jne 0x5785d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x20], ecx
cmp eax, ecx
je 0x5786c3
test eax, eax
je 0x5786c3
mov ebp, dword [eax]
xor edx, edx
mov edi, dword [eax + 8]
cmp ebp, ecx
mov ebx, ebp
cmove ebx, edx
test edi, edi
je 0x5786ad
mov ecx, dword [eax + 0xc]
cmp ecx, esi
jne 0x5786a9
test ecx, ecx
je 0x578680
mov ecx, dword [ecx]
mov dword [eax + 0xc], ecx
test ecx, ecx
jne 0x57867a
mov edx, dword [eax + 0x10]
inc edx
mov dword [eax + 0x10], edx
cmp edx, dword [edi + 0x10]
jae 0x578680
nop dword [eax + eax]
mov ecx, dword [edi + 0x14]
mov ecx, dword [ecx + edx*4]
mov dword [eax + 0xc], ecx
test ecx, ecx
jne 0x57867a
inc edx
mov dword [eax + 0x10], edx
cmp edx, dword [edi + 0x10]
jb 0x578660
test ecx, ecx
je 0x578680
mov byte [eax + 0x14], 1
jmp 0x5786a9
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x578689
mov dword [ecx], ebp
mov edx, dword [eax]
test edx, edx
je 0x578695
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov ecx, dword [esp + 0x20]
mov eax, ebx
test ebx, ebx
jne 0x578626
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov eax, dword [esi]
test edx, edx
je 0x5786cd
mov dword [edx], eax
jmp 0x5786d0
mov dword [ebp], eax
dec dword [ebx + 0xc]
lea ecx, [ebx + 4]
push ecx
push ecx
mov ecx, dword [ecx]
push esi
call fcn.0057b350
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4