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

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, 0x4dbc08
mov edi, 0x4dbc00
xor ebx, ebx
mov dword [0x4dbc04], 2
jmp 0x484fc9
mov edx, dword [0x4a2b28]
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [edx + eax + 2]
mov edx, dword [edi]
shl edx, 5
xor ecx, edx
and ecx, 0x7fff
mov dword [edi], ecx
mov ecx, dword [0x4dbbf0]
mov edx, dword [edi]
movzx ebp, word [ecx + edx*2]
and eax, 0x7fff
mov edx, dword [0x4a2b2c]
mov word [edx + eax*2], bp
mov eax, dword [0x4dbbf0]
mov ecx, dword [edi]
mov dx, word [esi]
mov word [eax + ecx*2], dx
test ebp, ebp
je 0x484ec1
mov eax, dword [esi]
sub eax, ebp
cmp eax, 0x7efa
ja 0x484ec1
mov eax, ebp
call fcn.0048522c
mov ebx, eax
mov eax, dword [0x4dbc14]
cmp ebx, eax
jbe 0x484ec1
mov ebx, eax
cmp ebx, 3
jb 0x484f6b
mov edx, ebx
sub edx, 3
mov eax, dword [esi]
sub eax, dword [0x4dbc0c]
call fcn.00486e4c
sub dword [0x4dbc14], ebx
cmp ebx, dword [0x4dbc1c]
ja 0x484f3d
dec ebx
inc dword [esi]
mov ecx, dword [0x4a2b28]
mov edx, dword [esi]
movzx ecx, byte [ecx + edx + 2]
mov edx, dword [edi]
shl edx, 5
xor ecx, edx
and ecx, 0x7fff
mov dword [edi], ecx
mov ecx, dword [0x4dbbf0]
mov edx, dword [edi]
movzx ebp, word [ecx + edx*2]
mov edx, dword [esi]
and edx, 0x7fff
mov ecx, dword [0x4a2b2c]
mov word [ecx + edx*2], bp
mov edx, dword [0x4dbbf0]
mov ecx, dword [edi]
mov bp, word [esi]
mov word [edx + ecx*2], bp
dec ebx
jne 0x484eeb
inc dword [esi]
jmp 0x484f85
add dword [esi], ebx
xor ebx, ebx
mov ecx, dword [esi]
mov edx, dword [0x4a2b28]
movzx edx, byte [edx + ecx]
mov dword [edi], edx
mov ebp, dword [esi]
mov ecx, dword [0x4a2b28]
shl edx, 5
movzx ecx, byte [ecx + ebp + 1]
xor ecx, edx
and ecx, 0x7fff
mov dword [edi], ecx
jmp 0x484f85
mov eax, dword [0x4a2b28]
mov edx, dword [esi]
movzx edx, byte [eax + edx]
xor eax, eax
call fcn.00486e4c
dec dword [0x4dbc14]
inc dword [esi]
test eax, eax
je 0x484fb8
mov edx, dword [esi]
sub edx, dword [0x4dbbf8]
cmp dword [0x4dbbf8], 0
jl 0x484fa7
mov eax, dword [0x4a2b28]
add eax, dword [0x4dbbf8]
jmp 0x484fa9
xor eax, eax
xor ecx, ecx
call fcn.00486c70
mov edx, dword [esi]
mov dword [0x4dbbf8], edx
cmp dword [0x4dbc14], 0x106
jae 0x484fc9
call fcn.00484d08
cmp dword [0x4dbc14], 0
jne 0x484e58
mov edx, dword [esi]
sub edx, dword [0x4dbbf8]
cmp dword [0x4dbbf8], 0
jl 0x484ff4
mov eax, dword [0x4a2b28]
add eax, dword [0x4dbbf8]
jmp 0x484ff6
xor eax, eax
mov ecx, 1
call fcn.00486c70
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x485008
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov ebx, eax
mov esi, 0x4dbc00
cmp ebx, 1
jl 0x48501f
cmp ebx, 9
jle 0x485029
mov eax, 0x4a2b80
call fcn.004888f8
xor edx, edx
mov dword [0x4dbbfc], edx
cmp dword [0x4dbbf4], 0
jne 0x48504e
mov dword [0x4dbbfc], 1
mov dword [0x4dbbf4], 0x10000
cmp dword [0x4a2b28], 0
jne 0x48508b
push 2
push 0x8000
call fcn.0048bd30
add esp, 8
mov edi, eax
mov dword [0x4a2b28], edi
test edi, edi
jne 0x48508b
mov eax, 0x4a6984
call fcn.00429614
mov edx, 0x4a2b80
mov eax, 4
call fcn.004887bc
cmp dword [0x4a2b2c], 0
jne 0x4850ee
push 2
push 0x8000
call fcn.0048bd30
add esp, 8
mov dword [0x4a2b2c], eax
push 2
push 0x8000
call fcn.0048bd30
add esp, 8
mov dword [0x4dbbf0], eax
cmp dword [0x4a2b2c], 0
je 0x4850ce
cmp dword [0x4dbbf0], 0
jne 0x4850ee
mov eax, 0x1ff
call fcn.004116e0
push eax
call fcn.0044a170
pop ecx
mov edx, 0x4a2b80
mov eax, 4
call fcn.004887bc
mov eax, dword [0x4dbbf0]
mov word [eax + 0xfffe], 0
push 0xfffe
push 0
push eax
call fcn.0048d5d8
movzx edx, word [ebx*8 + 0x4a2b32]
mov dword [0x4dbc1c], edx
add esp, 0xc
movzx ecx, word [ebx*8 + 0x4a2b30]
mov dword [0x4dbc20], ecx
cmp ebx, 2
movzx eax, word [ebx*8 + 0x4a2b34]
mov dword [0x4dbc24], eax
movzx edx, word [ebx*8 + 0x4a2b36]
mov dword [0x4dbc18], edx
jg 0x48514f
or word [ebp], 4
jmp 0x485159
cmp ebx, 8
jl 0x485159
or word [ebp], 2
xor ecx, ecx
xor eax, eax
mov dword [0x4dbc08], ecx
mov ebx, 0x8000
add ebx, ebx
mov dword [0x4dbbf8], eax
mov eax, dword [0x4a2b28]
mov edx, ebx
call dword [0x4a2f10]
mov dword [0x4dbc14], eax
mov eax, dword [0x4dbc14]
test eax, eax
je 0x48518f
cmp eax, 0xffffffff
jne 0x4851a3
mov dword [0x4dbc10], 1
xor edx, edx
mov dword [0x4dbc14], edx
jmp 0x4851e1
xor ecx, ecx
mov dword [0x4dbc10], ecx
cmp dword [0x4dbc14], 0x106
jae 0x4851bc
call fcn.00484d08
xor eax, eax
xor ebx, ebx
mov dword [esi], eax
mov edx, dword [0x4a2b28]
mov eax, dword [esi]
shl eax, 5
xor ecx, ecx
mov cl, byte [edx + ebx]
inc ebx
xor eax, ecx
and eax, 0x7fff
cmp ebx, 2
mov dword [esi], eax
jb 0x4851c2
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48cf94
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x48e840
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x48e85c
call fcn.0048ffa4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x48e878
test bl, 1
je 0x48e878
call fcn.00493f88
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x48ea5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.0048fb60
test byte [ebp + 0xd], 0xc0
jne 0x48ea80
mov eax, dword [0x4a3ac8]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x48ea8d
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x48eaba
je 0x48eacc
sub ecx, 0x100
je 0x48eada
sub ecx, 0x100
je 0x48eae1
sub ecx, 0x100
je 0x48ead3
jmp 0x48eae8
sub ecx, 0x600
je 0x48eae1
sub ecx, 0x100
je 0x48eacc
jmp 0x48eae8
mov edi, 1
jmp 0x48eaed
mov edi, 2
jmp 0x48eaed
mov edi, 4
jmp 0x48eaed
mov edi, 5
jmp 0x48eaed
mov edi, 3
test byte [ebp + 0xd], 1
je 0x48eb14
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4a3540]
test al, 0x80
je 0x48eb0d
mov ebx, 0x80
jmp 0x48eb26
mov ebx, 1
jmp 0x48eb26
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x48eb26
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x48eb38
je 0x48eb41
dec eax
je 0x48eb4a
jmp 0x48eb53
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x48eb62
mov dword [ebp - 4], 0x40000000
jmp 0x48eb62
mov dword [ebp - 4], 0xc0000000
jmp 0x48eb62
push 1
call fcn.0048ff38
pop ecx
mov ebx, eax
jmp 0x48ec52
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x48eb7e
sub eax, 0x10
je 0x48eb85
sub eax, 0x10
je 0x48eb8e
sub eax, 0x10
je 0x48eb97
jmp 0x48eb97
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x48eb9e
mov dword [ebp - 8], 1
jmp 0x48eb9e
mov dword [ebp - 8], 2
jmp 0x48eb9e
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x48ec0b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x48ec00
test byte [ebp + 0xd], 1
je 0x48ebfb
mov ebx, 0x50
jmp 0x48ec00
mov ebx, 2
push ebx
call fcn.0048ff38
pop ecx
mov ebx, eax
jmp 0x48ec52
mov edi, esi
push edi
call fcn.0048e9c0
pop ecx
test eax, eax
je 0x48ec1f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x48ec2b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0048fc60
add esp, 8
mov ebx, eax
inc eax
jne 0x48ec52
push 4
call fcn.0048ff38
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0048fb94
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48f15c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x48f178
call fcn.0048ffa4
jmp 0x48f1e7
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x48f194
call fcn.0048ffa4
jmp 0x48f1e7
cmp dword [0x4dfb28], 1
je 0x48f1e5
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00493e5c
pop ecx
cmp al, 0x41
jl 0x48f1e5
cmp al, 0x5a
jg 0x48f1e5
cmp byte [ebp - 0x107], 0x3a
jne 0x48f1e5
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x48f1e5
call fcn.0048ffa4
jmp 0x48f1e7
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x493f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x493f82
call fcn.00493ed0
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0048d788
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0048d788
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x494000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4a4a20], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4940da
cmp dword [0x4a4a1c], 0
jne 0x4940da
cmp dword [0x4a4c48], 0
je 0x494094
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00493e04
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49407a
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00493e04
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49407a
lea ebx, [ebp - 0x84]
jmp 0x49407b
inc ebx
call fcn.00493fbc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x494115
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4a4a24
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0048d788
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4a4a27
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x494115
cmp dword [0x4a4a1c], 0
je 0x4940f4
cmp dword [0x4a4a1c], 0xffffffff
je 0x494115
push esi
call dword [0x4a4a1c]
pop ecx
mov eax, dword [0x4a4a20]
test eax, eax
je 0x494115
cmp dword [0x4a4a20], 0xffffffff
je 0x494115
cmp byte [eax], 0
je 0x494115
push esi
push eax
call fcn.00493f20
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4958a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
jge 0x4958ca
test esi, esi
je 0x4958ca
call fcn.00493f88
mov dword [eax], 0x13
or eax, 0xffffffff
jmp 0x49593c
call fcn.004955bc
mov ebx, eax
test eax, eax
jne 0x4958e5
call fcn.00493f88
mov dword [eax], 8
or eax, 0xffffffff
jmp 0x49593c
mov edx, dword [ebp + 0x10]
mov dword [ebx + 4], edx
lea edx, [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x14], ecx
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x54], eax
push edx
mov ecx, dword [ebp + 0x18]
push ecx
push ebx
push 0x495800
push esi
mov eax, dword [ebp + 0x14]
push eax
call sub.KERNEL32.DLL_CreateThread
test eax, eax
jne 0x495930
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x718
jne 0x495929
push 0x59
call fcn.0048ff38
pop ecx
jmp 0x49593c
call fcn.0048ffa4
jmp 0x49593c
mov dword [ebx + 8], eax
test edi, edi
je 0x49593c
mov edx, dword [ebp - 4]
mov dword [edi], edx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x54e370
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 0x54e38e
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 0x577074
push ecx
mov edi, eax
call fcn.00562198
mov esi, eax
add esp, 8
test esi, esi
jne 0x54e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0056202e
push esi
call fcn.00561fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x551850
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 0x5518ae
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 0x57c720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5518ba
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.005621e1
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 0x5518ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x57c720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x55192a
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.00563082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x551957
mov word [eax], si
add eax, 2
push eax
call fcn.00563030
add esp, 4
jmp 0x551959
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 0x5518ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5518b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x551ff0
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 0x552080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5520c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x577458
push ecx
call fcn.005621e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005621e1
add esp, 0x10
jmp 0x5520d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0056220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00561dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00552050
mov eax, dword [0x57c728]
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 0x55213b
push esi
call fcn.00551fb0
add esp, 4
mov dword [0x57c728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x55214c
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.00551ff0
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 0x555440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5554b7
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 0x55548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x555471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x55547e
add edx, ecx
cmp ebx, edx
jb 0x55548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x555467
xor ecx, ecx
jmp 0x5554a2
test eax, eax
jne 0x555492
xor ecx, ecx
jmp 0x5554a2
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.005553c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5558f0
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 0x555921
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 0x555946
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 0x55596e
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 0x555993
push ecx
push esi
call fcn.005554c0
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 0x556c00
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 0x556c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x556c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x556c38
add edx, eax
cmp ebx, edx
jb 0x556c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x556c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x556c50
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 0x556c70
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 0x556cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x556c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x556ca8
add edx, ecx
cmp ebx, edx
jb 0x556cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x556c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x556f60
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.00563145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x556ffb
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 0x556fdd
lea eax, [esp + 0x18]
push eax
jmp 0x556fe2
push 0x57c720
call fcn.00562fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x556fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x556f40
push 4
push ecx
push eax
call fcn.0056343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x557310
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.00563145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5573ab
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 0x55738d
lea eax, [esp + 0x18]
push eax
jmp 0x557392
push 0x57c720
call fcn.00562fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x557360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x556f40
push 4
push ecx
push eax
call fcn.0056343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x558f20
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 0x558fd7
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 0x558fcf
push ebx
push edi
push 0x57c770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x558fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x57c770
push esi
call ebx
test eax, eax
je 0x558fae
mov ebp, 3
cmp dword [0x57c774], ebp
jne 0x558faa
push 0x3e8
call edi
push 0x57c770
push esi
call ebx
test eax, eax
jne 0x558f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x558fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x558fbb
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