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

Disassembly:
push ecx
push ebx
push ebp
mov ebx, ecx
xor al, al
push esi
push edi
mov edi, dword [esp + 0x18]
cmp dword [ebx + 0xfc], 0
mov byte [esp + 0x13], al
je 0x50b8be
cmp dword [edi + 0x14], 8
lea eax, [ebx + 0xf4]
mov ebp, dword [edi + 0x10]
mov esi, edi
jb 0x50b821
mov esi, dword [edi]
xor edx, edx
mov ecx, 0x811c9dc5
add ebp, ebp
je 0x50b847
nop dword [eax]
movzx eax, byte [edx + esi]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebp
jb 0x50b830
lea eax, [ebx + 0xf4]
push ecx
push edi
mov ecx, eax
call fcn.0050ce90
mov esi, eax
cmp esi, dword [ebx + 0xf8]
je 0x50b8be
mov ebp, dword [esp + 0x24]
nop
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
mov edx, edi
jb 0x50b86d
mov edx, dword [edi]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x50b878
mov ecx, dword [ecx]
cmp eax, dword [edi + 0x10]
jne 0x50b8b3
push eax
call fcn.00407330
add esp, 4
test eax, eax
jne 0x50b8b3
push ebp
push dword [esp + 0x24]
lea eax, [esi + 0x20]
push ecx
push eax
push edi
mov ecx, ebx
call fcn.0050a070
mov esi, dword [esi]
mov byte [esp + 0x13], 1
cmp esi, dword [ebx + 0xf8]
jne 0x50b860
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esp + 0x13], 0
jne 0x50b9c1
cmp dword [ebx + 0x11c], 0
je 0x50b97d
cmp dword [edi + 0x14], 8
lea eax, [ebx + 0x114]
mov ebp, dword [edi + 0x10]
mov esi, edi
jb 0x50b8de
mov esi, dword [edi]
xor edx, edx
mov ecx, 0x811c9dc5
add ebp, ebp
je 0x50b907
nop dword [eax]
movzx eax, byte [edx + esi]
inc edx
xor eax, ecx
imul ecx, eax, 0x1000193
cmp edx, ebp
jb 0x50b8f0
lea eax, [ebx + 0x114]
push ecx
push edi
mov ecx, eax
call fcn.0050ce90
mov esi, eax
cmp esi, dword [ebx + 0x118]
je 0x50b97d
nop word [eax + eax]
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
mov edx, edi
jb 0x50b92d
mov edx, dword [edi]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x50b938
mov ecx, dword [ecx]
cmp eax, dword [edi + 0x10]
jne 0x50b976
push eax
call fcn.00407330
add esp, 4
test eax, eax
jne 0x50b976
push dword [esp + 0x24]
lea eax, [esi + 0x20]
push dword [esp + 0x24]
push ecx
push eax
push edi
mov ecx, ebx
call fcn.0050a070
mov esi, dword [esi]
mov byte [esp + 0x13], 1
cmp esi, dword [ebx + 0x118]
jne 0x50b920
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
cmp byte [esp + 0x13], 0
jne 0x50b9c1
cmp byte [esp + 0x24], 0
jne 0x50b9c1
mov eax, dword [edi + 0x10]
test eax, eax
je 0x50b9c1
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x50b995
mov ecx, dword [edi]
cmp eax, 0xd
jne 0x50b9ac
push eax
mov edx, str.ExecuteAction
call fcn.00407330
add esp, 4
test eax, eax
je 0x50b9c1
push 1
push dword [ebx + 0xc4]
mov ecx, edi
push dword [ebx + 0xc0]
call fcn.00508500
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x50bd70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
cmp dword [ebx + 8], 0
je 0x50be87
mov edx, dword [esp + 0x10]
mov edi, edx
push ebp
cmp dword [edx + 0x14], 8
mov ebp, dword [edx + 0x10]
jb 0x50bd93
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebp, ebp
je 0x50bdb1
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebp
jb 0x50bda0
push esi
push edx
mov ecx, ebx
call fcn.0050ce90
pop ebp
cmp eax, dword [ebx + 4]
je 0x50be87
mov edi, dword [esp + 0x14]
lea esi, [eax + 0x20]
cmp edi, esi
je 0x50bde4
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x50bdd9
mov eax, dword [esi]
push dword [esi + 0x10]
mov ecx, edi
push eax
call fcn.00407c60
lea eax, [esi + 0x18]
lea ecx, [edi + 0x18]
cmp ecx, eax
je 0x50be00
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x50bdf9
mov eax, dword [eax]
push edx
push eax
call fcn.00407c60
lea eax, [esi + 0x30]
lea ecx, [edi + 0x30]
cmp ecx, eax
je 0x50be1c
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x50be15
mov eax, dword [eax]
push edx
push eax
call fcn.00407c60
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [edi + 0x48], eax
lea eax, [esi + 0x50]
mov dword [edi + 0x4c], ecx
lea ecx, [edi + 0x50]
cmp ecx, eax
je 0x50be44
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x50be3d
mov eax, dword [eax]
push edx
push eax
call fcn.00407c60
lea eax, [esi + 0x68]
lea ecx, [edi + 0x68]
cmp ecx, eax
je 0x50be60
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
jb 0x50be59
mov eax, dword [eax]
push edx
push eax
call fcn.00407c60
sub esi, 0xffffff80
lea ecx, [edi + 0x80]
cmp ecx, esi
je 0x50be7f
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x50be78
mov esi, dword [esi]
push eax
push esi
call fcn.00407c60
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
ret 0xc
Function at 0x50ccc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573540
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 8], 0x1642c85
je 0x50ce83
lea eax, [ebx + 4]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0xb8
mov dword [ebp - 0x1c], 0
call fcn.0052227d
mov esi, dword [ebp + 0xc]
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
lea eax, [edi + 8]
push esi
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00406c50
mov byte [ebp - 4], 1
lea eax, [esi + 0x18]
lea ecx, [edi + 0x20]
push eax
call fcn.0050c4d0
mov dword [ebp - 4], 3
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
mov edx, dword [eax + 0x10]
mov dword [ebp + 0xc], eax
jb 0x50cd63
mov ecx, dword [eax]
mov dword [ebp + 0xc], ecx
xor ecx, ecx
mov esi, 0x811c9dc5
add edx, edx
je 0x50cd85
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x50cd71
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 8]
movss xmm3, dword [ebx]
inc eax
mov ebx, dword [ebx + 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x59d870]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x59d870]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x50ce08
divss xmm0, xmm3
call fcn.0040ae00
call fcn.0053fdb0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x50cdfb
cmp ebx, 0x200
jae 0x50cdf9
shl ebx, 3
cmp ebx, ecx
jae 0x50cdfb
mov ebx, ecx
push ebx
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.0050d090
jmp 0x50ce0b
mov ebx, dword [ebp - 0x10]
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0040ad70
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
mov ecx, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x50ce4d
mov dword [ecx + eax*8], edi
jmp 0x50ce5f
cmp esi, edx
jne 0x50ce56
mov dword [ecx + eax*8], edi
jmp 0x50ce63
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x50ce63
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.005205c5
int3
Function at 0x51aea0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575c95
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x4c], ebx
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x54], 0x586f90
mov dword [ebp - 0x38], eax
jb 0x51af10
mov ecx, dword [ecx]
cmp dword [edx + 0x10], 0
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x58], 0
mov eax, dword [ecx]
jne 0x51af29
xor edx, edx
jmp 0x51af31
cmp dword [edx + 0x14], 8
jb 0x51af31
mov edx, dword [edx]
lea edi, [ebp - 0x54]
push edi
push edx
push 0
lea edx, [ebp - 0x5c]
push edx
push esi
call dword [eax + 4]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edi
cmp esi, edi
je 0x51b00a
mov edx, dword [esi]
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x51afff
cmp dword [edx + 0x14], 8
lea eax, [ebx + 0x34]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x30], edx
jb 0x51af72
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
lea eax, [ecx + ecx]
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 0x40], eax
test eax, eax
je 0x51af9e
mov edx, dword [ebp - 0x30]
mov edi, eax
movzx eax, byte [ecx + edx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, edi
jb 0x51af88
mov edi, dword [ebp - 0x44]
mov edx, dword [esi]
push ebx
mov ebx, dword [ebp - 0x48]
lea eax, [ebp - 0x64]
push edx
push eax
mov ecx, ebx
call fcn.0040ad70
mov eax, dword [eax + 4]
test eax, eax
jne 0x51afb8
mov eax, dword [ebx + 4]
mov ebx, dword [ebp - 0x4c]
cmp eax, dword [ebx + 0x38]
jne 0x51afff
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
mov ecx, ebx
call fcn.0051c490
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00407f30
add esi, 0xc
cmp esi, edi
jne 0x51af51
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0042e0c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052223b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51b7e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575de6
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5d6024]
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 dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
xor eax, eax
mov esi, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edi, [ecx + 2]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51b845
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00407c60
mov dword [ebp - 4], 1
lea edi, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
mov edx, 0x811c9dc5
cmp dword [ebp - 0x14], 8
cmovae edi, dword [ebp - 0x28]
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x51b892
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x51b881
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push edx
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebx + 0x34]
call fcn.0040ad70
mov edi, dword [eax + 4]
test edi, edi
jne 0x51b8b0
mov edi, dword [ebx + 0x38]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00407f30
mov eax, ebx
cmp edi, dword [eax + 0x38]
jne 0x51b8d8
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x51b8e3
lea eax, [edi + 0x20]
mov ecx, esi
push eax
call fcn.00406c50
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 1
mov eax, esi
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.0052223b
mov esp, ebp
pop ebp
ret 8
Function at 0x51c680
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5760bd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 8
mov eax, dword [edx + 0x10]
jb 0x51c6ba
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
je 0x51c6db
mov edx, eax
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x51c6c7
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040ad70
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51c70c
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x4924924
je 0x51c857
lea eax, [ebx + 4]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x38
mov dword [ebp - 0x10], 0
call fcn.0052227d
add esp, 4
mov edi, eax
mov dword [ebp - 0x10], edi
push dword [ebp + 0xc]
lea ecx, [edi + 8]
call fcn.00427e90
mov dword [ebp - 4], 1
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0x1c]
inc ecx
movss xmm3, dword [ebx]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
movd xmm1, eax
addsd xmm0, qword [ecx*8 + 0x59d870]
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x59d870]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x51c7e7
divss xmm0, xmm3
call fcn.0040ae00
call fcn.0053fdb0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x51c7cb
cmp eax, 0x200
jae 0x51c7c9
shl eax, 3
cmp eax, ecx
jae 0x51c7cb
mov eax, ecx
push eax
mov ecx, ebx
call fcn.004272c0
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ad70
mov edx, dword [eax]
jmp 0x51c7ea
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [ebx + 8], eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov dword [ecx], edi
mov dword [edx + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
and eax, esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], 0
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x51c81d
mov dword [ecx + eax*8], edi
jmp 0x51c82f
cmp esi, edx
jne 0x51c826
mov dword [ecx + eax*8], edi
jmp 0x51c833
mov edx, dword [ebp + 0xc]
cmp dword [ecx + eax*8 + 4], edx
jne 0x51c833
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.005205c5
int3
Function at 0x51ca50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55af5d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
call fcn.004092f0
mov ecx, eax
test ecx, ecx
je 0x51cba5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
or esi, 0xffffffff
mov edx, dword [ebx]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x51cafc
lea ecx, [eax - 1]
test ecx, ecx
js 0x51cbaf
cmp ecx, eax
jg 0x51cbaf
cmp word [edx + ecx*2], 0x5c
jne 0x51cafc
push ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0040d0a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push eax
call fcn.00478ba0
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51cb05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x51cb05
push ebx
lea ecx, [ebp - 0x10]
call fcn.00478ba0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, dword [ecx - 0xc]
jge 0x51cb74
push 0x5c
push ecx
call fcn.00523c99
add esp, 8
test eax, eax
jne 0x51cb26
or eax, 0xffffffff
jmp 0x51cb2a
sub eax, dword [edi]
sar eax, 1
push eax
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0040d0a0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x51cb56
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.0051ca50
mov byte [ebp - 4], 1
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x51cb74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x51cb93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00408fc0
push 0x80070057
call fcn.00408fc0
int3
Function at 0x51e0a0
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x20
mov eax, dword [0x5d6024]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x51e0d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0052223b
add esp, 0x20
ret
push esi
push 0x14
push 0x59b7d0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x51e134
lea eax, [esp + 8]
mov dword [esp + 0x20], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x10], xmm0
movq qword [esp + 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x51e131
cmp dword [esp + 0xc], 4
je 0x51e14b
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x51e14b
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0052223b
add esp, 0x20
ret
push esi
call edi
mov ecx, dword [esp + 0x24]
xor eax, eax
pop esi
pop edi
xor ecx, esp
call fcn.0052223b
add esp, 0x20
ret

Function at 0x521629
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x52164e
xor eax, eax
jmp 0x5216aa
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x52167b
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x52167b
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x521731
cmp dword [edi + 0x4c], 0
je 0x5216a4
mov ecx, edi
call fcn.0052130c
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x5216ba
push dword [edi + 0x4c]
push ebx
call fcn.00520f3a
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x5216a9
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0052223b
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x5782b0]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x521704
sub eax, 1
je 0x521704
dec eax
sub eax, 1
jne 0x5216a4
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x521696
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x521721
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.0052ff45
add esp, 0x10
cmp esi, eax
jne 0x5216a4
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x5216a4
mov ax, bx
jmp 0x5216a9

Function at 0x5399ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053969e
Function at 0x5399f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00539828

Function at 0x56f3bd
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x56f3f8
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x56f3df
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x56f3f0
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x56f3fa
inc edi
add eax, 0x28
cmp edi, esi
jb 0x56f3d5
xor eax, eax
pop edi
pop esi
ret
Function at 0x40ab30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40ab5c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40ab7e
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40ab80
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x40ac05
jg 0x40ab95
test esi, esi
je 0x40ac05
test ecx, ecx
jl 0x40abe8
jg 0x40ab9f
test eax, eax
je 0x40abe8
cmp edi, ecx
jg 0x40abb3
jl 0x40aba9
cmp esi, eax
jae 0x40abb3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x40ac05
jg 0x40abeb
test esi, esi
je 0x40ac05
jmp 0x40abeb
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x40ac05
push eax
push esi
push 1
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc