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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x10
mov eax, dword [ebp + 8]
lea edi, [esp + 0x1c]
cdq
and edx, 7
lea esi, [ebp + 0x18]
add eax, edx
mov ebx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
sar ebx, 3
call fcn.0040cf20
cmp eax, 0x40
mov ecx, esi
jbe 0x449594
call fcn.0040f5f0
test eax, eax
je 0x4495c5
mov ecx, esi
call fcn.0040f5f0
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
jmp 0x4495c5
call fcn.0040f5f0
test eax, eax
je 0x4495c5
mov ecx, esi
call fcn.0040cf20
mov ecx, esi
mov edi, eax
call fcn.0040f5f0
mov esi, eax
mov eax, edi
lea edi, [esp + 0x1c]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, dword [ebp]
mov edx, dword [eax + 0x46f068]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x4495c7
xor eax, eax
mov ecx, 0x100
mov edx, dword [ebp + 4]
mov esi, dword [eax + 0x46f0b0]
mov dword [edx + eax], esi
add eax, 4
dec ecx
jne 0x4495e2
cmp eax, 0x1000
jl 0x4495dd
xor esi, esi
xor edi, edi
mov eax, dword [ebp]
lea ecx, [edi + eax]
lea eax, [esi + 1]
cdq
idiv ebx
mov dword [esp + 0x18], ecx
xor ecx, ecx
lea eax, [esi + 2]
add edi, 4
mov cl, byte [esp + edx + 0x1c]
cdq
idiv ebx
mov ch, byte [esp + esi + 0x1c]
xor eax, eax
shl ecx, 8
mov al, byte [esp + edx + 0x1c]
or ecx, eax
lea eax, [esi + 3]
cdq
idiv ebx
xor eax, eax
shl ecx, 8
mov al, byte [esp + edx + 0x1c]
or ecx, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, ecx
mov dword [eax], edx
lea eax, [esi + 4]
cdq
idiv ebx
cmp edi, 0x48
mov esi, edx
jl 0x4495ff
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.00448d40
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov edx, dword [ebp]
mov eax, dword [esp + 0x14]
mov dword [esi + edx + 4], eax
add esi, 8
cmp esi, 0x48
jl 0x44965f
mov esi, 4
mov edi, 0x80
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.00448d40
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax - 4], ecx
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx], eax
add esi, 8
dec edi
jne 0x449697
cmp esi, 0x1004
jl 0x449692
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x44a9e0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0x44abc0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [esp + 0x18]
test ebx, ebx
jne 0x44abd5
mov eax, dword [esp + 0x1c]
xor edi, eax
mov ebp, 4
mov ecx, edi
shr ecx, 0x18
mov byte [esp + 0x10], cl
mov al, cl
mov edx, dword [esp + 0x10]
and al, 0x80
and edx, 0xff
neg al
sbb eax, eax
mov esi, edx
and eax, 0x14d
and esi, 0x7f
and eax, 0xff
and cl, 1
shl esi, 1
xor esi, eax
mov eax, edx
neg cl
sbb ecx, ecx
and ecx, 0xa6
shr eax, 1
xor ecx, eax
xor ecx, esi
mov eax, ecx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
xor eax, edi
shl eax, 8
xor eax, edx
dec ebp
mov edi, eax
jne 0x44abdc
inc ebx
cmp ebx, 2
jl 0x44abc9
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x44ac50
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x472d28
mov dl, byte [edi + 0x4700e8]
mov al, dl
mov cl, dl
and al, 2
mov bl, dl
neg al
sbb al, al
and cl, 1
and eax, 0xb4
mov byte [esp + 0xd], cl
neg cl
sbb cl, cl
and ecx, 0x5a
shr bl, 2
xor bl, cl
mov byte [esp + 0xe], cl
xor bl, al
mov cl, dl
xor bl, dl
shr cl, 1
mov byte [esp + 0x10], bl
mov bl, byte [esp + 0xd]
xor cl, dl
shr cl, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor cl, bl
mov bl, byte [esp + 0xe]
xor cl, bl
mov bl, byte [edi + 0x4701e8]
xor cl, al
mov al, bl
and al, 2
xor cl, dl
neg al
sbb al, al
and eax, 0xb4
mov byte [esp + 0xd], al
mov al, bl
and al, 1
mov byte [esp + 0xe], al
neg al
sbb al, al
and eax, 0x5a
shr bl, 2
mov byte [esp + 0xf], al
xor bl, al
mov al, byte [esp + 0xd]
xor bl, al
mov al, byte [edi + 0x4701e8]
xor bl, al
mov byte [esp + 0x13], al
mov byte [esp + 0x11], bl
mov bl, byte [esp + 0x13]
shr al, 1
xor al, bl
mov bl, byte [esp + 0xe]
shr al, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor al, bl
mov bl, byte [esp + 0xf]
xor al, bl
mov bl, byte [esp + 0xd]
xor al, bl
mov bl, byte [edi + 0x4701e8]
xor al, bl
mov byte [esp + 0x14], bl
mov bl, byte [esp + 0x11]
mov byte [esp + 0x16], al
mov byte [esp + 0x15], bl
mov byte [esp + 0x17], al
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x14], cl
mov dword [esi - 0x400], ebx
mov bl, byte [esp + 0x10]
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], dl
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x15], al
mov dword [esi], ebx
mov bl, byte [esp + 0x11]
mov byte [esp + 0x14], bl
mov bl, byte [edi + 0x4701e8]
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x15], dl
mov dword [esi + 0x400], eax
mov al, byte [esp + 0x10]
mov byte [esp + 0x14], al
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
add esi, 4
mov ecx, dword [esp + 0x14]
inc edi
mov dword [esi + 0x7fc], ecx
cmp esi, 0x473128
jl 0x44ac5d
pop edi
pop esi
mov dword [0x4702e8], 0
pop ebx
add esp, 0xc
ret
Function at 0x4371c4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4374f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00406f88
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
call fcn.00406ec0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.0042adf8
test al, al
jne 0x437269
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x48]
mov eax, 0x16
call fcn.0042a644
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x54]
xor ecx, ecx
pop eax
call fcn.004077cc
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
mov eax, dword [0x43bc6c]
mov eax, dword [eax]
call fcn.00423504
mov edx, dword [ebp - 0x48]
mov eax, 0x43750c
call fcn.0042b108
jmp 0x4374c8
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x14]
call fcn.00416ed0
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x24
mov ecx, dword [ebp - 0x10]
call fcn.004038a4
lea ecx, [ebp - 0x48]
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00406e2c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.00403630
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
mov edx, 0x20
call fcn.00406b08
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x437406
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetFileSize_1
mov edi, eax
cmp edi, 0x10000
jle 0x4372db
mov edi, 0x10000
mov eax, edi
call fcn.004025b0
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x437391
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
xor eax, eax
mov dword [ebp - 0x20], eax
mov edx, edi
neg edx
mov ecx, 2
mov eax, dword [ebp - 0xc]
call fcn.00406bc4
mov edx, dword [ebp - 0x18]
mov ecx, edi
mov eax, dword [ebp - 0xc]
call fcn.00406b6c
mov esi, edi
sub esi, 6
cmp esi, 0
jl 0x43737b
mov eax, 0x437524
mov al, byte [eax]
call fcn.00402884
mov edx, dword [ebp - 0x18]
cmp al, byte [edx + esi]
jne 0x437375
mov byte [ebp - 0x19], 1
mov ebx, 1
mov eax, 0x437524
mov al, byte [eax + ebx]
call fcn.00402884
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x18]
cmp al, byte [ecx + edx]
je 0x43735f
mov byte [ebp - 0x19], 0
jmp 0x437365
inc ebx
cmp ebx, 6
jne 0x437341
cmp byte [ebp - 0x19], 0
je 0x437375
sub edi, esi
sub edi, 6
mov dword [ebp - 0x20], edi
jmp 0x43737b
dec esi
cmp esi, 0xffffffff
jne 0x437324
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437398
mov eax, dword [ebp - 0x18]
call fcn.004025c8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4374f7
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.00403600
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403600
ret
Function at 0x44baf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x44bb37
cmp edx, 0x10
jl 0x44bb23
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x44bb10
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x44bb37
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x44bb2f
and edx, 3
cmp edx, 3
jne 0x44bb4b
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x44bb50
cmp edx, 2
jne 0x44bb5c
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x44bb61
cmp edx, 1
jne 0x44bb67
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x56e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x56e38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x597074
push ecx
mov edi, eax
call fcn.00582198
mov esi, eax
add esp, 8
test esi, esi
jne 0x56e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0058202e
push esi
call fcn.00581fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x571850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5718ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x59c720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5718ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005821e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5718ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x59c720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x57192a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00583082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x571957
mov word [eax], si
add eax, 2
push eax
call fcn.00583030
add esp, 4
jmp 0x571959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5718ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5718b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x571ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x572080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5720c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x597458
push ecx
call fcn.005821e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005821e1
add esp, 0x10
jmp 0x5720d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0058220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00581dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00572050
mov eax, dword [0x59c728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x57213b
push esi
call fcn.00571fb0
add esp, 4
mov dword [0x59c728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x57214c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00571ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x575440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5754b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x57548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x575471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x57547e
add edx, ecx
cmp ebx, edx
jb 0x57548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x575467
xor ecx, ecx
jmp 0x5754a2
test eax, eax
jne 0x575492
xor ecx, ecx
jmp 0x5754a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005753c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5758f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x575921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x575946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x57596e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x575993
push ecx
push esi
call fcn.005754c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x576c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x576c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x576c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x576c38
add edx, eax
cmp ebx, edx
jb 0x576c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x576c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x576c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x576c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x576cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x576c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x576ca8
add edx, ecx
cmp ebx, edx
jb 0x576cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x576c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x576f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00583145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x576ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x576fdd
lea eax, [esp + 0x18]
push eax
jmp 0x576fe2
push 0x59c720
call fcn.00582fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x576fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x576f40
push 4
push ecx
push eax
call fcn.0058343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x577310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00583145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5773ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x57738d
lea eax, [esp + 0x18]
push eax
jmp 0x577392
push 0x59c720
call fcn.00582fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x577360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x576f40
push 4
push ecx
push eax
call fcn.0058343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x578f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x578fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x578fcf
push ebx
push edi
push 0x59c770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x578fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x59c770
push esi
call ebx
test eax, eax
je 0x578fae
mov ebp, 3
cmp dword [0x59c774], ebp
jne 0x578faa
push 0x3e8
call edi
push 0x59c770
push esi
call ebx
test eax, eax
jne 0x578f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x578fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x578fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x57ce00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5928f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x57ced2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.005797a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x57ce61
mov edx, dword [eax]
jmp 0x57ce63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0057b050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x57cebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x57cebf
cmp esi, edi
je 0x57cebf
mov ecx, esi
call fcn.00574a00
push esi
call fcn.005821c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00579990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x57cef5
mov eax, dword [eax]
jmp 0x57cef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00578640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x57cf25
mov eax, dword [eax]
jmp 0x57cf27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x57cf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x57cf76
cmp esi, edi
je 0x57cf76
mov eax, dword [esi]
cmp eax, edi
je 0x57cf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x57cf6d
push eax
call fcn.005821c8
add esp, 4
push esi
call fcn.005821c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret