joyce8/EMBER2024-capa huggingface dataset:
Function at 0x537660
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov dword [ebp - 0x38], esi
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x53768f
xor ecx, ecx
jmp 0x5376ac
cmp byte [edi], 0
jne 0x537698
xor ecx, ecx
jmp 0x5376ac
mov ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5376a0
sub ecx, esi
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x1c]
mov dword [edx + 4], ecx
push eax
call fcn.004f52d0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x5376c3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.004163e0
test ebx, ebx
jne 0x5376ed
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x537799
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
add esp, 4
mov esi, eax
push ebx
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x537739
cmp byte [edi], 0
jne 0x537728
xor edi, edi
jmp 0x537739
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x537730
sub edi, ecx
lea eax, [ebp - 0x1c]
mov dword [edx + 4], edi
push eax
call fcn.004f52d0
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x537750
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x1c]
call fcn.004163e0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00416b10
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.004f51d0
mov ecx, dword [ebp - 0x38]
push eax
call fcn.004c2a70
lea ecx, [ebp - 0x34]
call fcn.00414d60
lea ecx, [ebp - 0x1c]
call fcn.004163e0
test esi, esi
je 0x537799
push esi
call fcn.00545b61
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret 8

Function at 0x537900
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x40
push esi
push edi
mov esi, 0x6ba2d8
mov byte [ebp - 1], 0
mov edi, ebx
mov dword [ebx + 0x200], 1
mov dword [ebx + 0x204], 1
mov word [ebx + 0x208], 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x10]
xor esi, esi
nop
xor edx, edx
mov cl, byte [esi + ebx]
mov eax, esi
div edi
mov eax, dword [ebp + 0xc]
movzx eax, byte [edx + eax]
mov dl, byte [ebp - 1]
add al, cl
add dl, al
mov byte [ebp - 1], dl
movzx edx, dl
movzx eax, byte [edx + ebx]
mov byte [esi + ebx], al
inc esi
mov byte [edx + ebx], cl
cmp esi, 0x100
jb 0x537940
lea edi, [ebx + 0x100]
mov esi, ebx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x537990
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x200]
sub edx, eax
mov bh, byte [edi + 0x208]
add ecx, eax
sub esi, eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0x10], esi
cmp eax, ecx
jae 0x5379f8
sub edx, esi
mov dword [ebp + 0xc], edx
movzx esi, al
mov bl, byte [esi + edi]
add bh, bl
movzx edx, bh
movzx ecx, byte [edx + edi]
mov byte [esi + edi], cl
mov byte [edx + edi], bl
movzx ecx, byte [esi + edi]
mov edx, dword [ebp + 0x10]
add cl, bl
mov esi, dword [ebp + 0xc]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + edi]
xor cl, byte [esi + edx]
mov byte [edx], cl
cmp eax, dword [ebp + 8]
jb 0x5379c3
mov byte [edi + 0x208], bh
mov dword [edi + 0x200], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x537a10
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x204]
lea esi, [edi + 0x100]
mov bh, byte [edi + 0x209]
add ecx, eax
mov dword [ebp - 4], esi
sub edx, eax
mov esi, dword [ebp + 0x10]
sub esi, eax
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x10], esi
cmp eax, ecx
jae 0x537a8a
sub edx, esi
mov edi, edx
nop dword [eax]
mov edx, dword [ebp - 4]
movzx esi, al
add esi, edx
mov bl, byte [esi]
add bh, bl
movzx ecx, bh
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx ecx, byte [esi]
mov edx, dword [ebp + 0x10]
add cl, bl
mov esi, dword [ebp - 4]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + esi]
xor cl, byte [edi + edx]
mov byte [edx], cl
cmp eax, dword [ebp + 0x14]
jb 0x537a50
mov edi, dword [ebp + 8]
mov byte [edi + 0x209], bh
mov dword [edi + 0x204], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x538220
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov ebx, ecx
lea esi, [edx + 1]
push edi
mov dword [ebp - 0x24], ebx
xor edi, edi
nop word [eax + eax]
movzx edx, byte [esi - 1]
lea esi, [esi + 4]
movzx eax, byte [esi - 4]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 3]
shl edx, 8
or edx, eax
movzx eax, byte [esi - 2]
shl edx, 8
or edx, eax
mov dword [ebp + edi*4 - 0x128], edx
inc edi
cmp edi, 0x10
jb 0x538240
cmp edi, 0x40
jae 0x5382bf
mov ebx, 0x40
lea eax, [ebp + edi*4 - 0x130]
sub ebx, edi
mov edx, dword [eax]
lea eax, [eax + 4]
mov esi, dword [eax - 0x38]
mov edi, edx
mov ecx, edx
rol edi, 0xf
rol ecx, 0xd
xor edi, ecx
shr edx, 0xa
xor edi, edx
mov ecx, esi
mov edx, esi
ror ecx, 7
rol edx, 0xe
xor edx, ecx
shr esi, 3
xor edx, esi
add edi, edx
add edi, dword [eax - 0x3c]
add edi, dword [eax - 0x18]
mov dword [eax + 4], edi
sub ebx, 1
jne 0x538282
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x50]
xor edx, edx
mov dword [ebp - 0x28], eax
mov edi, eax
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x64]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x6c]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
nop dword [eax]
mov esi, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror esi, 0xb
not ecx
and ecx, dword [ebp - 0xc]
xor esi, eax
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, dword [ebp - 8]
and eax, ebx
xor ecx, eax
mov eax, edi
add esi, ecx
rol eax, 0xa
add esi, dword [edx + 0x6a9f10]
add esi, dword [ebp + edx - 0x128]
mov edx, edi
add esi, dword [ebp - 0x1c]
ror edx, 0xd
xor edx, eax
mov eax, edi
ror eax, 2
xor edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
and eax, edi
xor ecx, edi
and ecx, dword [ebp - 4]
xor ecx, eax
mov eax, dword [ebp - 0xc]
add edx, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x14]
lea edi, [edx + esi]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x20]
add ebx, esi
mov eax, dword [ebp - 4]
add edx, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
cmp edx, 0x100
jb 0x538300
mov eax, dword [ebp - 0x28]
add eax, edi
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x24]
pop edi
pop esi
add dword [ebx + 0x54], ecx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 4]
add dword [ebx + 0x58], eax
mov eax, dword [ebp - 0x14]
add dword [ebx + 0x5c], eax
mov eax, dword [ebp - 0x18]
add dword [ebx + 0x60], eax
mov eax, dword [ebp - 8]
add dword [ebx + 0x64], eax
mov eax, dword [ebp - 0xc]
add dword [ebx + 0x68], eax
mov eax, dword [ebp - 0x1c]
add dword [ebx + 0x6c], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5383d0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
lea eax, [ebp - 0x210]
push esi
mov esi, ecx
push 0x104
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x5383ff
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
push 0x6ba43c
push eax
call fcn.005fdb64
add esp, 8
test eax, eax
je 0x53841d
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x5383f8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x538460
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65d0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x18], ecx
push 0x100
mov dword [ebp - 0x24], edi
call fcn.00545b74
add esp, 4
mov ebx, eax
mov esi, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 0x80
mov dword [ebp - 0x14], 0x44
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x18]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x538552
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x538550
cmp dword [ebp - 0x14], 0x44
jbe 0x5384ee
xor bl, bl
jmp 0x538555
mov eax, dword [ebp - 0x10]
cmp eax, 0x80
jbe 0x53852f
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0xe
mov dword [ebp - 0x1c], esi
test ebx, ebx
je 0x53852b
push ebx
mov byte [ebp - 4], 0xe
call fcn.00545b61
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x18]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
setne bl
mov dword [ebp - 4], 0x19
test esi, esi
je 0x53856d
push esi
mov byte [ebp - 4], 0x19
call fcn.00545b61
add esp, 4
pop edi
mov dword [ebp - 4], 0xffffffff
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x53b0c0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65d545
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x18]
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
push eax
push 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x13], 0
mov byte [ebp - 0xf], 0
mov dword [ebp - 0x18], 0
call ebx
mov esi, dword [ebp - 0x18]
push esi
call fcn.00545b74
mov edi, eax
add esp, 4
test edi, edi
je 0x53b12f
push esi
push 0
push edi
call fcn.005e0dd0
add esp, 0xc
mov byte [edi], 0
jmp 0x53b131
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 2
test edi, edi
je 0x53b195
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
push edi
call ebx
test eax, eax
jne 0x53b195
mov byte [ebp - 4], 0xc
mov esi, edi
mov byte [ebp - 4], 2
mov ebx, dword [ebp - 0x14]
lea ecx, [esi + 8]
call fcn.0053add0
mov ecx, eax
cmp ecx, 1
je 0x53b175
test ecx, ecx
jne 0x53b18d
mov ax, word [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0x14], ebx
mov word [ebp - 0x10], ax
test ecx, ecx
je 0x53b198
mov esi, dword [esi]
test esi, esi
jne 0x53b162
jmp 0x53b198
mov ebx, dword [ebp - 0x14]
push 0x200
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005e0dd0
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [ebp - 0x10]
push eax
mov eax, ebx
shr eax, 0x18
push eax
mov eax, ebx
shr ebx, 8
shr eax, 0x10
movzx eax, al
push eax
movzx eax, bl
push eax
movzx eax, byte [ebp - 0x14]
push eax
lea eax, [ebp - 0x220]
push str._02X__02X__02X__02X__02X__02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 8]
xor eax, eax
add esp, 0x2c
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x220], ax
jne 0x53b20d
xor ecx, ecx
jmp 0x53b225
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x53b216
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x220]
mov ecx, esi
push eax
call fcn.004169e0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xf
test edi, edi
je 0x53b253
push edi
mov byte [ebp - 4], 0xf
call fcn.00545b61
add esp, 4
mov byte [ebp - 4], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5417c2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push accept
call dword [0x661fbc]
test eax, eax
jne 0x541886
push edi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x110], 1
push eax
lea eax, [ebp - 0x108]
mov edi, 0x104
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], edi
push eax
push ebx
push ebx
push dword [ebp - 0x10c]
call dword [0x661fd8]
test eax, eax
jne 0x541875
cmp dword [ebp - 0x110], 2
lea eax, [ebp - 0x108]
mov byte [ebp - 5], bl
jne 0x541866
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb ebx, ebx
inc ebx
jmp 0x541875
push eax
push edi
push esi
call fcn.0054189a
xor ebx, ebx
test eax, eax
setns bl
push dword [ebp - 0x10c]
call dword [0x661fb8]
mov eax, ebx
pop edi
jmp 0x541888
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret 4

Function at 0x543275
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.005e0dd0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x5432ac
mov esi, dword [esi]
push esi
push dword [0x6dc068]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x210], ebx
lea eax, [ebp - 0x210]
push ebx
push eax
push ebx
push 0x2000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_accept
call dword [0x661fc8]
test eax, eax
jne 0x543317
mov esi, str.UserChoice
push esi
push dword [ebp - 0x210]
call fcn.00544455
pop ecx
pop ecx
push esi
push dword [ebp - 0x210]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
neg eax
sbb al, al
lea ebx, [eax + 1]
cmp dword [ebp - 0x210], 0
je 0x54332c
push dword [ebp - 0x210]
call dword [0x661fb8]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret 4
Function at 0x543340
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.005e0dd0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x543377
mov esi, dword [esi]
push esi
push dword [0x6dc068]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [0x661fc8]
lea eax, [ebp - 0x244]
add esp, 0xc
mov dword [ebp - 0x244], ebx
push ebx
push eax
push ebx
push 0x2000000
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20c]
push eax
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x54353f
push 1
push str.SeBackupPrivilege
call fcn.00543568
pop ecx
pop ecx
test eax, eax
je 0x54353f
push 1
push 0x6ab544
call fcn.00543568
pop ecx
pop ecx
test eax, eax
je 0x54353f
lea ecx, [ebp - 0x23c]
call fcn.004e91c0
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call fcn.0054471e
pop ecx
pop ecx
test eax, eax
je 0x543534
xor eax, eax
mov dword [ebp - 0x210], 7
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
push eax
push reloc.WS2_32.dll_bind
call fcn.00543ecf
add esp, 0xc
test eax, eax
je 0x5434b7
cmp dword [ebp - 0x210], 8
lea ecx, [ebp - 0x240]
push ebx
push ecx
push ebx
push 0x2000000
push ebx
push ebx
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], ebx
cmovae eax, dword [ebp - 0x224]
push ebx
push eax
push reloc.WS2_32.dll_bind
call esi
test eax, eax
jne 0x5434a3
mov esi, str.UserChoice
push esi
push dword [ebp - 0x240]
call fcn.00544455
pop ecx
pop ecx
push esi
push dword [ebp - 0x240]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp dword [ebp - 0x240], ebx
je 0x5434b7
push dword [ebp - 0x240]
call dword [0x661fb8]
cmp dword [ebp - 0x210], 8
lea eax, [ebp - 0x224]
cmovae eax, dword [ebp - 0x224]
push eax
push reloc.WS2_32.dll_bind
call fcn.005457a3
cmp dword [ebp - 0x228], 8
lea eax, [ebp - 0x23c]
push 8
cmovae eax, dword [ebp - 0x23c]
push eax
push dword [ebp - 0x244]
call fcn.0054563d
mov esi, eax
lea eax, [ebp - 0x23c]
push ebx
push eax
call fcn.004f7530
push ebx
push str.SeBackupPrivilege
call fcn.00543568
push ebx
push 0x6ab544
call fcn.00543568
add esp, 0x2c
lea ecx, [ebp - 0x224]
test esi, esi
sete bl
push 0
push 1
call fcn.004168d0
lea ecx, [ebp - 0x23c]
call fcn.004e9240
cmp dword [ebp - 0x244], 0
je 0x543554
push dword [ebp - 0x244]
call dword [0x661fb8]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00545b50
mov esp, ebp
pop ebp
ret 4
Function at 0x544638
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
mov dword [ebp - 0x210], 0x208
lea eax, [ebp - 0x210]
mov dword [ebp - 0x214], 1
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x5446b3
xor al, al
jmp 0x5446de
cmp dword [ebp - 0x210], 0
je 0x5446af
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00416ae0
pop ecx
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x218]
call fcn.004169e0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545b50
mov esp, ebp
pop ebp
ret

Function at 0x544ca3
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6dc0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.005e0dd0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x544cd8
mov esi, dword [esi]
push esi
push dword [0x6dc068]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
mov esi, reloc.WS2_32.dll_accept
push str.Progid
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
test eax, eax
jne 0x544d0f
xor al, al
jmp 0x544d1f
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00545b50
mov esp, ebp
pop ebp
ret 4
Function at 0x54b778
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x54b79b
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x54b838
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.0054b346
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x54b7be
push ebx
call fcn.005f0691
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x54b814
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x6dc108]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x54b7e9
call fcn.005f0691
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x54b814
push esi
push 1
push eax
call fcn.005f45d2
push ebx
mov esi, eax
call fcn.005f0691
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x54b81d
push dword [ebp - 4]
call dword [0x6dc10c]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x54b837
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0054b723
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x561ab5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x561b1d
mov ecx, esi
call fcn.00561b22
push 0
push dword [esi + 0x248]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3ac]
test ecx, ecx
je 0x561af8
push 0
call fcn.005576b8
and dword [esi + 0x3ac], 0
mov ecx, dword [0x6e1920]
lea ecx, [ecx + 8]
call fcn.0057a133
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x561b1d
pop esi
mov ecx, dword [ecx + 0x174]
pop ebp
jmp fcn.00562906
pop esi
pop ebp
ret 4

Function at 0x565352
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
lea eax, [esi + 0x170]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, esi
test eax, eax
jne 0x565378
call fcn.00557327
jmp 0x5653a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005567cd
mov eax, dword [esi + 0x180]
xor ecx, ecx
cmp dword [eax - 8], ecx
je 0x5653a4
push 1
push ecx
push ecx
push eax
push 0x6add70
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop esi
pop ebp
ret 0xc

Function at 0x56787b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x6b9d50
push dword [ebp + 8]
call fcn.005f4af4
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5678d8
push ebx
push edi
push esi
call fcn.005e3b02
push eax
call fcn.005fbacd
mov edi, eax
pop ecx
pop ecx
cmp edi, dword [ebp + 0x10]
jbe 0x5678b7
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x5678cd
push esi
push edi
push 1
push dword [ebp + 0xc]
call fcn.005f45d2
xor ebx, ebx
add esp, 0x10
cmp edi, eax
sete bl
push esi
call fcn.005f0691
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret