joyce8/EMBER2024-capa huggingface dataset:
Function at 0x96a300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
xor eax, eax
push 0xaa1574
push ecx
mov byte [esp + 0x10], 0
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov byte [esp + 0x19], al
call fcn.00a7932f
mov esi, eax
add esp, 8
test esi, esi
je 0x96a38f
push ebx
push 0xaea084
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
push esi
push edi
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00a799fb
push esi
mov ebx, eax
call fcn.00a79e9e
add esp, 0x14
cmp ebx, edi
pop ebx
jne 0x96a38f
push edi
mov eax, 0xaea084
lea ecx, [esp + 0xc]
call fcn.0094c380
add esp, 4
test eax, eax
jne 0x96a38f
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00a78f21
add esp, 0x10
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x10
ret

Function at 0x96a3b0
Capabilities:
Read file on windows

Disassembly:
push esi
push 0xaa1574
push eax
call fcn.00a7932f
mov esi, eax
add esp, 8
test esi, esi
je 0x96a3e1
push esi
push 0x40
push 1
push edi
call fcn.00a799fb
add esp, 0x10
cmp eax, 0x40
je 0x96a3e5
push esi
call fcn.00a79e9e
add esp, 4
xor eax, eax
pop esi
ret
mov ecx, dword [edi + 0x3c]
push 0
push ecx
push esi
call fcn.00a79da2
push esi
push 0x400
push 1
push edi
call fcn.00a799fb
add esp, 0x1c
push esi
cmp eax, 0x400
jne 0x96a3d9
call fcn.00a79e9e
movzx edx, byte [edi]
push edx
call fcn.00a7c649
add esp, 8
cmp eax, 0x50
jne 0x96a3e1
movzx eax, byte [edi + 1]
push eax
call fcn.00a7c649
add esp, 4
cmp eax, 0x45
jne 0x96a3e1
mov eax, 1
pop esi
ret
Function at 0x96ac50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, eax
test ebp, ebp
jne 0x96ac61
pop edi
xor eax, eax
pop ebp
ret
cmp word [0xbd857c], 0
jne 0x96ac70
call fcn.0096add0
mov eax, 0xaaaaaaab
mul ebp
shr edx, 1
lea eax, [edx + edx*2]
cmp eax, ebp
je 0x96ac81
inc edx
lea eax, [edx*4]
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov byte [eax + edi], 0
mov ecx, edi
test edx, edx
je 0x96ad31
xor edi, edi
push ebx
movzx eax, byte [esi]
sar al, 2
and al, 0x3f
movzx eax, al
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
mov bl, byte [esi]
and bl, 3
inc edi
dec edx
inc ecx
shl bl, 4
inc esi
cmp edi, ebp
jae 0x96accf
mov al, byte [esi]
sar al, 4
and al, 0xf
or bl, al
movzx eax, bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
inc ecx
cmp edi, ebp
jae 0x96ad04
mov bl, byte [esi]
and bl, 0xf
add bl, bl
inc edi
add bl, bl
inc esi
cmp edi, ebp
jae 0x96acf7
mov al, byte [esi]
sar al, 6
and al, 3
or bl, al
movzx eax, bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [ecx], al
jmp 0x96ad07
mov byte [ecx], 0x3d
inc ecx
cmp edi, ebp
jae 0x96ad20
mov bl, byte [esi]
and bl, 0x3f
movzx eax, bl
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
inc esi
inc edi
mov byte [ecx], al
jmp 0x96ad23
mov byte [ecx], 0x3d
inc ecx
test edx, edx
jne 0x96aca2
mov eax, dword [esp + 0x18]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x96c620
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x934
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x92c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x25]
push ebx
push eax
mov byte [esp + 0x2c], bl
call fcn.00a7ffb0
add esp, 0xc
push str.SYSTEMCurrentControlSet_servicesSharedAccessParametersFirewallPolicyFirewallRules
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push ebx
lea eax, [esp + 0x2c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x96c875
push 0x3ff
lea ecx, [esp + 0x53d]
push ebx
push ecx
call fcn.00a7ffb0
add esp, 0xc
push 0x40f
lea edx, [esp + 0x12d]
push ebx
push edx
call fcn.00a7ffb0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x54c]
push eax
push ebx
push ecx
xor edi, edi
mov byte [esp + 0x148], bl
mov byte [esp + 0x558], bl
mov dword [esp + 0x38], 0x400
mov dword [esp + 0x3c], 0x410
call ebp
test eax, eax
jne 0x96c866
jmp 0x96c710
push ebx
lea edx, [esp + 0x12c]
push str.MicroWorld_WebAdmin_Server
push edx
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x96c81b
push ebx
lea eax, [esp + 0x12c]
push str.ProfilePublic
push eax
xor esi, esi
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x96c760
push 0xaa1543
push str.ProfilePublic
lea ecx, [esp + 0x130]
push ecx
jmp 0x96c7bc
push ebx
lea edx, [esp + 0x12c]
push str.ProfilePrivate
push edx
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x96c78f
push 0xaa1543
push str.ProfilePrivate
lea eax, [esp + 0x130]
push eax
jmp 0x96c7bc
push ebx
lea ecx, [esp + 0x12c]
push str.ProfileDomain
push ecx
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x96c7c9
push 0xaa1543
push str.ProfileDomain
lea edx, [esp + 0x130]
push edx
call fcn.0095e130
add esp, 0xc
mov esi, 1
push ebx
lea eax, [esp + 0x12c]
push str.EmbedCtxt
push eax
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x96c7f9
push str.EmbedCtxteScan_Security
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x96c7fd
cmp esi, ebx
je 0x96c81b
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x540]
mov ecx, 0x80000002
call fcn.0094bd00
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54c]
push ecx
inc edi
push edi
push edx
mov byte [esp + 0x148], bl
mov byte [esp + 0x558], bl
mov dword [esp + 0x38], 0x400
mov dword [esp + 0x3c], 0x410
call ebp
test eax, eax
je 0x96c710
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x96c875
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x93c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00a78f21
add esp, 0x934
ret
Function at 0x96ec40
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
mov ebp, dword [esp + 0x224]
push esi
push edi
push 0x103
lea eax, [esp + 0x15]
push 0
push eax
mov byte [esp + 0x1c], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x11d]
push 0
push ecx
mov byte [esp + 0x124], 0
call fcn.00a7ffb0
add esp, 0xc
test ebp, ebp
je 0x96ee23
mov edi, 0x104
lea ecx, [esp + 0x10]
mov byte [ebp], 0
call fcn.00958630
lea esi, [esp + 0x10]
call fcn.00960950
push edi
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea esi, [esp + 0x118]
call fcn.00960950
cmp dword [0xbfc9d0], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
jne 0x96ed0d
mov dword [0xbfc9d0], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x96ed0d
cmp al, 6
jb 0x96ed0d
mov dword [0xbfc9d4], 1
jmp 0x96ed8c
cmp dword [0xbfc9d4], 0
jne 0x96ed8c
lea eax, [esp + 0x10]
push eax
push ebp
call esi
mov ecx, ebp
call fcn.00960910
push str.regedit.com
push ebp
call edi
push 1
push 0
xor edx, edx
mov ecx, ebp
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x96ed5e
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00a78f21
add esp, 0x21c
ret
lea ecx, [esp + 0x118]
push ecx
push ebp
call esi
mov ecx, ebp
call fcn.00960910
push str.regedit.com
push ebp
call edi
push 1
push 0
xor edx, edx
mov ecx, ebp
call fcn.0095a0f0
add esp, 8
test eax, eax
je 0x96ed41
lea edx, [esp + 0x10]
push edx
push ebp
call esi
mov ecx, ebp
call fcn.00960910
push str.regedit.exe
push ebp
call edi
push 1
push 0
xor edx, edx
mov ecx, ebp
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x96eddb
call fcn.00968110
neg eax
sbb eax, eax
neg eax
inc eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00a78f21
add esp, 0x21c
ret
call fcn.00968110
test eax, eax
je 0x96eded
call fcn.00968d70
test eax, eax
jne 0x96ee1f
lea eax, [esp + 0x118]
push eax
push ebp
call esi
mov ecx, ebp
call fcn.00960910
push str.regedit.exe
push ebp
call edi
push 1
push 0
xor edx, edx
mov ecx, ebp
call fcn.0095a0f0
add esp, 8
test eax, eax
je 0x96ed41
mov byte [ebp], 0
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x21c
ret
Function at 0x96fd00
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x730
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x72c], eax
push esi
push edi
push 0x207
lea eax, [esp + 0x1d]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x24], 0
call fcn.00a7ffb0
push 0x207
lea ecx, [esp + 0x53d]
push 0
push ecx
mov byte [esp + 0x544], 0
call fcn.00a7ffb0
push 0x207
lea edx, [esp + 0x341]
push 0
push edx
mov byte [esp + 0x348], 0
call fcn.00a7ffb0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x24
push esi
lea eax, [esp + 0x530]
push eax
mov dword [esp + 0x14], 0
call edi
push esi
lea ecx, [esp + 0x328]
push ecx
call edi
lea edx, [esp + 0x324]
push 0x5c
push edx
call fcn.00a7a2c0
add esp, 8
test eax, eax
je 0x96fdb6
mov byte [eax], 0x2f
inc eax
push 0x5c
push eax
call fcn.00a7a2c0
add esp, 8
test eax, eax
jne 0x96fda3
push ebx
push ebp
lea eax, [esp + 0x32c]
push eax
lea ecx, [esp + 0x24]
push str.SoftwareMicrosoftWindowsCurrentVersionModuleUsage_s
push ecx
call fcn.00a78f30
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
lea eax, [esp + 0x2c]
push eax
push 0x80000002
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call ebx
test esi, esi
jne 0x96fe22
mov ecx, dword [esp + 0x10]
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x80000002
xor eax, eax
lea edi, [esp + 0x24]
call fcn.0095fbe0
lea edx, [esp + 0x20]
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDlls
push edx
call fcn.00a78f30
add esp, 8
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x80000002
call ebp
mov esi, eax
push esi
call ebx
pop ebp
pop ebx
test esi, esi
jne 0x96ff0f
push 0x103
lea edx, [esp + 0x225]
push 0
push edx
mov byte [esp + 0x22c], 0
call fcn.00a7ffb0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x224]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x53c]
push eax
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x96fee7
lea edx, [esp + 0x52c]
lea esi, [eax + 1]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x72c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x730
ret
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x72c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x730
ret
mov ecx, dword [esp + 0x734]
mov eax, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.00a78f21
add esp, 0x730
ret
Function at 0x9705a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov byte [edi], 0
cmp byte [esi], 0
mov dword [esp + 8], 0x103
mov dword [esp + 4], 0
je 0x970675
push str.SOFTWAREMicroWorld
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
call fcn.00960910
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 4]
push edx
push 0x20019
push 0
lea eax, [esp + 0x1c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x970652
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push esi
push str.LoadTimeInSec
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
test esi, esi
je 0x97066a
test eax, eax
je 0x970652
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00a78f21
add esp, 0x118
ret
test eax, eax
je 0x970675
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x118
ret
Function at 0x971d20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x120
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push edi
push 0x103
lea eax, [esp + 0x1d]
push 0
push eax
mov esi, ecx
mov dword [esp + 0x1c], 0x104
mov byte [esp + 0x24], 0
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
push str.softwarekasperskylabcomponents100
push 0x80000002
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
jne 0x971db8
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push str.Folder
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x18], 0
je 0x971dfe
push 1
lea ecx, [esp + 0x1c]
call fcn.00971a10
add esp, 4
test eax, eax
je 0x971dfe
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
call fcn.00960950
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00a78f21
add esp, 0x120
ret
mov ecx, dword [esp + 0x12c]
mov edx, esi
call fcn.00971b50
mov ecx, dword [esp + 0x124]
pop edi
pop esi
xor ecx, esp
call fcn.00a78f21
add esp, 0x120
ret
Function at 0x972700
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x115]
push 0
push ecx
mov byte [esp + 0x11c], 0
call fcn.00a7ffb0
add esp, 0xc
lea edx, [esp + 0x110]
push 0
push edx
xor esi, esi
call fcn.00972a20
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x14]
push str._sWSSPORD.DAT
push ecx
call fcn.00a78f30
add esp, 0x14
push 1
push esi
xor edx, edx
lea ecx, [esp + 0x10]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x9727cf
lea eax, [esp + 8]
call fcn.0095a560
cmp eax, 0xffffffff
je 0x9727b6
test al, 7
je 0x9727b6
push 0x80
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
mov edi, 0x104
lea ecx, [esp + 8]
call fcn.00958630
cmp byte [esp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x97280f
lea eax, [esp + 8]
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x9727f0
lea ecx, [esp + 8]
sub eax, ecx
je 0x97280f
cmp byte [esp + eax + 7], 0x5c
je 0x97280f
push 0xaa1564
mov edx, ecx
push edx
call esi
push str.WSSPORD.DAT
lea eax, [esp + 0xc]
push eax
call esi
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x10]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x97286c
lea eax, [esp + 8]
call fcn.0095a560
cmp eax, 0xffffffff
je 0x972853
test al, 7
je 0x972853
push 0x80
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x972890
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x115]
push 0
push ecx
mov byte [esp + 0x11c], 0
call fcn.00a7ffb0
add esp, 0xc
lea edx, [esp + 0x110]
push 0
push edx
xor esi, esi
call fcn.00972a20
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x14]
push str._sWSSPORDx.DAT
push ecx
call fcn.00a78f30
add esp, 0x14
push 1
push esi
xor edx, edx
lea ecx, [esp + 0x10]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x97295f
lea eax, [esp + 8]
call fcn.0095a560
cmp eax, 0xffffffff
je 0x972946
test al, 7
je 0x972946
push 0x80
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
mov edi, 0x104
lea ecx, [esp + 8]
call fcn.00958630
cmp byte [esp + 8], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x97299f
lea eax, [esp + 8]
mov edi, edi
inc eax
cmp byte [eax], 0
jne 0x972980
lea ecx, [esp + 8]
sub eax, ecx
je 0x97299f
cmp byte [esp + eax + 7], 0x5c
je 0x97299f
push 0xaa1564
mov edx, ecx
push edx
call esi
push str.WSSPORDx.DAT
lea eax, [esp + 0xc]
push eax
call esi
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x10]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x9729fc
lea eax, [esp + 8]
call fcn.0095a560
cmp eax, 0xffffffff
je 0x9729e3
test al, 7
je 0x9729e3
push 0x80
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x973880
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
push edi
test esi, esi
je 0x9739bd
push ebx
lea eax, [esp + 0x10]
mov edi, esi
mov ecx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, 0x80000002
mov dword [esp + 0x10], 0x104
mov byte [esi], 0
call fcn.0094c020
cmp byte [esi], 0
je 0x97393f
mov ecx, esi
call fcn.0095a450
test eax, eax
je 0x97393f
call fcn.00968d70
test eax, eax
je 0x97396f
mov eax, str.Common_AppData
mov ecx, ebx
call fcn.0094c330
test eax, eax
jne 0x97396f
push 0x103
push eax
mov byte [esp + 0x18], al
lea eax, [esp + 0x19]
push eax
call fcn.00a7ffb0
add esp, 0xc
push esi
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
call fcn.00960910
push str.microsoft
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor ecx, ecx
lea edi, [esp + 0x10]
call fcn.0095a6d0
test eax, eax
jne 0x97396f
push esi
push ebx
mov byte [esi], 0
call fcn.00972d50
add esp, 8
cmp byte [esi], 0
je 0x9739bd
mov ecx, esi
call fcn.0095a450
cmp eax, 1
jne 0x97396f
push esi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov edx, ebx
mov ecx, 0x80000002
call fcn.0094bd00
cmp byte [esi], 0
je 0x9739bd
cmp dword [ebp + 8], 0
jne 0x973993
call fcn.00960950
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edi, esi
call fcn.0095a6d0
test eax, eax
jne 0x9739b6
mov byte [esi], al
pop edi
pop esi
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00960910
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
Function at 0x974c00
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
push edi
mov edi, eax
test edi, edi
je 0x974c5f
cmp byte [edi], 0
je 0x974c5f
xor ecx, ecx
call fcn.0095a6d0
test eax, eax
jne 0x974c55
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
lea eax, [esp + 4]
push eax
push edi
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
je 0x974c55
push edi
call fcn.00974cb0
add esp, 4
pop edi
add esp, 0xc
ret
mov eax, 1
pop edi
add esp, 0xc
ret
xor eax, eax
pop edi
add esp, 0xc
ret

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

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x974cea
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x974cdf
test al, 0x10
je 0x974cdf
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 1
ret
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
Function at 0x9751a0
Capabilities:
Manipulate boot configuration
Read .ini file

Disassembly:
mov eax, 0x2a1c
call fcn.00a91950
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x2a14], eax
push ebx
push ebp
push esi
push edi
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call fcn.00a7ffb0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x15]
push 0
push ecx
mov byte [esp + 0x1c], 0
call fcn.00a7ffb0
add esp, 0xc
lea esi, [esp + 0x118]
call fcn.0095e610
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, esi
push edx
lea eax, [esp + 0x14]
push eax
call ebp
cmp byte [esp + 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x975240
lea eax, [esp + 0x10]
inc eax
cmp byte [eax], 0
jne 0x975221
lea ecx, [esp + 0x10]
sub eax, ecx
je 0x975240
cmp byte [esp + eax + 0xf], 0x5c
je 0x975240
push 0xaa1564
mov edx, ecx
push edx
call esi
push str.BOOT.INI
lea eax, [esp + 0x14]
push eax
call esi
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x18]
call fcn.0095a0f0
add esp, 8
test eax, eax
jne 0x975397
call fcn.00968f30
test al, al
jne 0x97527c
call fcn.009685a0
test eax, eax
je 0x975397
lea ecx, [esp + 0x10]
xor edi, edi
mov byte [esp + 0x220], 0
call fcn.0095a310
mov esi, eax
add esi, 0x400
push esi
call fcn.00a7a155
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x975397
push esi
push edi
push ebx
call fcn.00a7ffb0
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push esi
push ebx
push str.operating_systems
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp byte [ebx], 0
je 0x97538e
mov esi, ebx
push esi
lea edx, [esp + 0x224]
push edx
call ebp
push 0
lea eax, [esp + 0x224]
push str._safeboot
push eax
call fcn.0095c8c0
add esp, 0xc
cmp eax, 0xffffffff
je 0x97534e
mov cl, byte [esp + eax + 0x220]
lea edx, [esp + eax + 0x220]
test cl, cl
je 0x975321
jmp 0x975310
cmp cl, 0x20
je 0x975321
mov cl, byte [esp + eax + 0x221]
inc eax
test cl, cl
jne 0x975310
cmp byte [esp + eax + 0x220], 0x20
jne 0x97532c
inc eax
lea ecx, [esp + eax + 0x220]
push ecx
push edx
call ebp
lea edx, [esp + 0x220]
push edx
mov eax, esi
mov edi, 1
call fcn.00975100
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x9752d2
test edi, edi
je 0x97538e
lea eax, [esp + 0x10]
push eax
push ebx
push str.operating_systems
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
test eax, eax
je 0x97538e
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
call fcn.00a78fec
add esp, 4
mov ecx, dword [esp + 0x2a24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00a78f21
add esp, 0x2a1c
ret