joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bd2e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d3a43
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.004bfa30
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp + 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.0049f560
sub esp, 0x48
lea eax, [ebp + 8]
mov esi, esp
mov ecx, esi
mov dword [ebp - 0x44], esi
push eax
call fcn.0048d880
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.0048d880
lea eax, [ebp + 0x38]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x30]
call fcn.0048d880
call fcn.004bd480
mov edi, eax
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
push eax
push edi
mov byte [ebp - 0x40], 0
call sym.AGMService.exe_AGDServiceConvertAGDStatusTypeEnumToString
add esp, 0x50
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
lea edx, [ebp - 0x40]
lea ecx, [ebp + 8]
cmovae esi, dword [ebp - 0x28]
lea eax, [ebp + 0x20]
cmp dword [ebp - 0x2c], 0x10
push 0
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp + 0x1c], 0x10
push esi
cmovae ecx, dword [ebp + 8]
cmp dword [ebp + 0x34], 0x10
push edx
cmovae eax, dword [ebp + 0x20]
push ecx
push eax
call sym.AGMService.exe_RSDServiceRecordStatus
mov edx, dword [ebp - 0x2c]
add esp, 0x14
cmp edx, 0x10
jb 0x4bd3ff
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bd3f5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bd478
push edx
push ecx
call fcn.0066c54d
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x4bd441
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4bd437
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4bd478
push edx
push ecx
call fcn.0066c54d
add esp, 8
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004a0440
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
call fcn.0068bce4
int3
Function at 0x4bf6c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4bf706
mov ax, word [ebp + 0xc]
test ax, ax
je 0x4bf706
push edi
movzx edi, ax
push edi
push esi
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jbe 0x4bf705
cmp eax, edi
jae 0x4bf705
push edi
add eax, esi
push eax
push 0x5a
push 0x400
mov byte [eax - 1], 0x5f
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop edi
pop esi
pop ebp
ret

Function at 0x4bf860
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa30], ecx
test eax, eax
je 0x4bfa15
push 0x20a
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00682620
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa28], ax
lea eax, [ebp - 0xa28]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x1fe
ja 0x4bfa15
mov eax, dword [0x72d98c]
movzx ecx, word [ebp - 0xa28]
push esi
mov dword [ebp - 0xc], eax
mov ax, word [0x72d990]
push edi
mov word [ebp - 8], ax
lea edi, [ebp - 0xa28]
nop dword [eax]
push 0x104
lea eax, [ebp - 0x420]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4bf9f6
lea esi, [ebp - 0x420]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bf920
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x4bf9f6
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0xa2c]
call fcn.00697fe5
add esp, 0xc
add esi, esi
test eax, eax
mov eax, dword [ebp - 0xa2c]
jne 0x4bf96b
cmp word [esi + eax], 0x5c
jne 0x4bf96b
mov ebx, 1
jmp 0x4bf96d
xor ebx, ebx
test ebx, ebx
je 0x4bf9f6
add eax, esi
push eax
lea eax, [ebp - 0xc]
push eax
push 0x72d994
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0048a010
lea ecx, [ebp - 0x628]
add esp, 0x14
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf9a0
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.00697f8b
lea ecx, [ebp - 0x218]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bf9d4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xa30]
push eax
call fcn.0049f660
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x4bf9f6
test ebx, ebx
jne 0x4bfa13
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x4bf8f0
pop edi
pop esi
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
setne al
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4bfe80
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d4752
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], 0
push 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push str.unknown
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.0049f560
mov ax, word [0x729d34]
push 0x1fe
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x318], 1
call fcn.00682620
add esp, 0xc
mov dword [ebp - 0x314], 0x100
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x4bff9a
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00682620
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bff82
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.0049f560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret

Function at 0x4c00f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d4752
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], 0
push 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push str.unknown
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.0049f560
mov ax, word [0x729d34]
push 0x1fe
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x318], 1
call fcn.00682620
add esp, 0xc
mov dword [ebp - 0x314], 0x100
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x4c020a
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.00682620
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c01f2
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.0049f560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4c0270
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.00682620
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x4c02d1
push 0x104
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.006984ab
add esp, 0xc
lea edx, [ebp - 0x108]
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4c02e0
sub edx, ecx
lea eax, [ebp - 0x108]
push edx
push eax
mov ecx, esi
call fcn.0049bb50
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4c1f20
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d53d7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x806f14]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x4c1f5a
mov byte [ebx + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea edi, [ebx + 8]
push edi
push 0x72e0c8
push 1
push 0
push 0x72e0a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x4c2064
cmp dword [edi], 0
je 0x4c203e
push 0xc
call fcn.0066c51d
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
test edi, edi
je 0x4c1fea
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
push str.ROOTCIMV2
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x4c20c0
jmp 0x4c1fec
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4c20ca
mov ecx, dword [ebx + 8]
lea eax, [ebx + 4]
push eax
push 0
push 0
mov esi, dword [ecx]
push 0
push 0
push 0
mov esi, dword [esi + 0xc]
push 0
push dword [edi]
mov dword [ebp - 4], 1
push ecx
mov ecx, esi
call dword [0x71e5fc]
call esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.004a03e0
lea edi, [ebx + 8]
test esi, esi
js 0x4c2064
mov eax, dword [ebx + 4]
test eax, eax
je 0x4c2060
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov esi, eax
test esi, esi
jns 0x4c20ae
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4c207b
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x71e5fc]
call esi
mov ecx, dword [edi]
test ecx, ecx
je 0x4c2091
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x71e5fc]
call esi
cmp byte [ebx + 0xc], 0
je 0x4c209d
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebx + 4], 0
mov dword [edi], 0
mov byte [ebx + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8007000e
call fcn.004c3750
push 0x8007000e
call fcn.004c3750
int3
Function at 0x4c2dc0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0066c8f0
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.0048a000
push ebx
push 0
push edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test esi, esi
jne 0x4c2e52
push 0xffd
lea edx, [ebp - 0x1004]
or ecx, 1
push edx
push eax
push ecx
call fcn.00690fac
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x4c2e23
lea eax, [ebp + eax - 0x1004]
jmp 0x4c2e2b
cmp eax, 0xffffffff
jne 0x4c2e63
lea eax, [ebp - 7]
mov word [eax], 0xa0d
mov byte [eax + 2], 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
push esi
push eax
push ecx
call fcn.00690e58
push esi
call fcn.006997b1
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret

Function at 0x4c3690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4c3707
test edi, edi
je 0x4c3707
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c36b5
sub ecx, edx
je 0x4c3707
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.004c3e50
add esp, 8
test eax, eax
jne 0x4c3707
mov eax, dword [ebp - 0x20]
inc eax
push 1
push eax
call fcn.006978c0
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4c3707
push 0x728bb0
push edi
call fcn.004c3b90
mov edi, eax
add esp, 8
mov eax, dword [esi]
test edi, edi
jne 0x4c371a
push eax
call fcn.006970b0
add esp, 4
mov dword [esi], edi
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x20]
push 1
push eax
call fcn.0068c399
push edi
mov esi, eax
call fcn.0068bfa4
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4c3940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
dec eax
push esi
push edi
cmp eax, 0xfe
ja case.0x4c396b.2
movzx eax, byte [eax + 0x4c3a58]
jmp dword [eax*4 + 0x4c3a38]
mov esi, 0x2b
jmp 0x4c39a1
mov esi, 0x23
jmp 0x4c39a1
mov esi, 0x1a
jmp 0x4c39a1
mov esi, 0x1c
jmp 0x4c39a1
mov esi, 0x2a
jmp 0x4c39a1
mov esi, 0x26
jmp 0x4c39a1
mov esi, 0x2c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
mov eax, esi
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4c39e1
cmp esi, 0x2c
jne 0x4c3a25
push 1
push ebx
call fcn.004c3940
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call fcn.004c3460
mov edi, eax
add esp, 4
test edi, edi
je 0x4c3a25
push 0x104
push edi
push 0x104
push ebx
call fcn.004c33b0
push edi
mov esi, eax
call fcn.006970b0
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret

Function at 0x4c3c30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004c3400
mov edi, eax
add esp, 4
test edi, edi
je 0x4c3c5d
push esi
push edi
call fcn.0069ad46
push edi
mov esi, eax
call fcn.006970b0
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebp
ret
push 0x16
call fcn.00697a17
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
ret

Function at 0x4c3e80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4c3f0f
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004c3460
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c3ec4
sub ecx, edx
je 0x4c3eda
cmp byte [ecx + esi - 1], 0x5c
jne 0x4c3eda
mov byte [ecx + esi - 1], al
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c3ee0
sub ecx, edx
push ecx
push esi
push dword [ebp + 0xc]
push edi
call fcn.004c33b0
push esi
call fcn.006970b0
add esp, 0x14
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4c9f30
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 8
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4c9fae
call esi
cmp eax, 0x3f0
jne 0x4c9f8f
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4c9fae
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x4c9f98
call esi
cmp eax, 0x7a
jne 0x4c9f98
mov esi, dword [ebp - 0x18]
mov eax, esi
call fcn.0066d430
mov ebx, esp
test ebx, ebx
je 0x4c9f98
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x4c9f98
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x222
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4c9f98
xor esi, esi
mov byte [ebp - 0xd], 0
cmp dword [ebx], esi
jbe 0x4ca040
lea edi, [ebx + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4ca03c
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x4ca023
jmp 0x4ca040
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret
Function at 0x4cdce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 1
mov dword [ebp - 0x18], eax
mov esi, ecx
lea eax, [ebp - 0x14]
push 0xe
push eax
call fcn.0068c399
add esp, 0x10
cmp eax, 1
jne 0x4cde70
mov edx, dword [ebp - 0x14]
mov di, word [ebp - 0xe]
mov bx, word [ebp - 0xc]
mov ecx, dword [ebp - 0x12]
mov eax, dword [ebp - 0xa]
mov byte [esi], dl
mov byte [esi + 1], dh
mov dword [esi + 4], ecx
mov word [esi + 8], di
mov word [esi + 0xa], bx
mov dword [esi + 0xc], eax
cmp dl, 0x42
jne 0x4cde70
cmp dh, 0x4d
jne 0x4cde70
test di, di
jne 0x4cde70
test bx, bx
jne 0x4cde70
lea eax, [ecx - 0x37]
cmp eax, 0x1e8449
ja 0x4cde70
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4cdd7e
push eax
call fcn.006970b0
mov ecx, dword [esi + 4]
add esp, 4
push ecx
call fcn.00697980
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x4cdda6
pop edi
pop esi
mov eax, 0xfffffff9
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret 4
xor edx, edx
nop dword [eax + eax]
mov ecx, dword [esi + 0x3c]
movzx eax, byte [ebp + edx - 0x14]
mov byte [edx + ecx], al
mov ecx, dword [esi + 0x3c]
movzx eax, byte [ebp + edx - 0x13]
mov byte [ecx + edx + 1], al
add edx, 2
cmp edx, 0xe
jl 0x4cddb0
push dword [ebp - 0x18]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 4]
sub eax, 0xe
push 1
push eax
lea eax, [ecx + 0xe]
push eax
call fcn.0068c399
mov edx, dword [esi + 0x3c]
add esp, 0x10
cmp eax, 1
jne 0x4cde60
mov eax, dword [edx + 0xe]
mov dword [esi + 0x10], eax
mov eax, dword [edx + 0x12]
mov dword [esi + 0x14], eax
mov eax, dword [edx + 0x16]
mov dword [esi + 0x18], eax
movzx ecx, word [edx + 0x1a]
mov dword [esi + 0x1c], ecx
movzx eax, word [edx + 0x1c]
mov dword [esi + 0x20], eax
mov edi, eax
mov ebx, dword [edx + 0x1e]
mov dword [esi + 0x24], ebx
mov eax, dword [edx + 0x22]
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x26]
mov dword [esi + 0x2c], eax
mov eax, dword [edx + 0x2a]
mov dword [esi + 0x30], eax
mov eax, dword [edx + 0x2e]
mov dword [esi + 0x34], eax
mov eax, dword [edx + 0x32]
mov dword [esi + 0x38], eax
cmp ecx, 1
jne 0x4cde60
test ebx, ebx
jne 0x4cde60
cmp edi, 0x18
je 0x4cde4b
cmp edi, 0x20
jne 0x4cde60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret 4
push edx
call fcn.006970b0
mov dword [esi + 0x3c], 0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 0xfffffffe
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret 4
Function at 0x4cdee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x806f14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
push 0x72f410
push eax
mov dword [ebp - 0x20], ebx
call fcn.004c3b90
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x4cdf26
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0066c50c
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebx + 0x3c]
push edi
test esi, esi
jne 0x4cdf3a
mov esi, 0xfffffffd
mov edi, eax
jmp 0x4ce036
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4cdf4c
mov edi, dword [ebp - 0x14]
lea esi, [eax - 4]
jmp 0x4ce036
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cdf51
mov eax, dword [ebx + 0x18]
sub ecx, edx
imul eax, dword [ebx + 0x14]
inc ecx
mov dword [ebp - 0x18], ecx
lea eax, [eax + eax*2]
cmp ecx, eax
jbe 0x4cdf79
mov edi, dword [ebp - 0x14]
mov esi, 0xfffffffb
jmp 0x4ce036
mov ecx, dword [ebx + 0x20]
xor edx, edx
mov eax, dword [ebx + 0xc]
xor edi, edi
shr ecx, 3
add eax, esi
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x8040201
mov dword [ebp - 8], 0x80402010
cmp dword [ebp - 0x18], edx
jbe 0x4ce017
mov esi, dword [ebp + 0xc]
mov al, byte [ebx + esi]
test byte [ebp + edi - 0xc], al
mov eax, dword [ebp - 0x10]
mov al, byte [eax + edx]
jne 0x4cdfc6
test al, 1
je 0x4cdfd5
mov ecx, dword [ebp - 0x10]
dec al
mov byte [ecx + edx], al
mov ecx, dword [ebp - 0x1c]
jmp 0x4cdfd5
test al, 1
jne 0x4cdfd5
mov esi, dword [ebp - 0x10]
inc al
mov byte [esi + edx], al
mov esi, dword [ebp + 0xc]
inc edx
cmp ecx, 4
jne 0x4cdfef
mov eax, edx
and eax, 0x80000003
jns 0x4cdfe9
dec eax
or eax, 0xfffffffc
inc eax
cmp eax, 3
jne 0x4cdfef
inc edx
cmp edi, 7
lea eax, [ebx + 1]
cmovne eax, ebx
xor ecx, ecx
cmp edi, 7
mov ebx, eax
lea eax, [edi + 1]
cmovne ecx, eax
mov edi, ecx
mov ecx, dword [ebp - 0x1c]
cmp ebx, dword [ebp - 0x18]
jb 0x4cdfa6
mov eax, dword [ebp - 0x20]
mov esi, dword [eax + 0x3c]
jmp 0x4ce01a
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
push edi
push 1
push dword [eax + 4]
push esi
call fcn.0069cbfd
add esp, 0x10
lea esi, [eax - 1]
neg esi
sbb esi, esi
and esi, 0xfffffffa
push edi
call fcn.0068bfa4
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, esi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0066c50c
mov esp, ebp
pop ebp
ret 8

Function at 0x4ce080
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
mov esi, ecx
xor bh, bh
push edi
mov dword [esi + 0x204], 9
movq xmm0, qword [str.Adobe_ALM]
movq qword [esi + 0x102], xmm0
mov al, byte [0x730afc]
mov byte [esi + 0x10a], al
xor eax, eax
mov word [esi + 0x100], 0
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x4ce0b7
xor edi, edi
mov eax, edi
mov bl, byte [edi + esi]
cdq
idiv dword [esi + 0x204]
movzx eax, byte [edx + esi + 0x102]
add al, bl
add bh, al
movzx ecx, bh
movzx eax, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov byte [ecx + esi], bl
cmp edi, 0x100
jl 0x4ce0c4
pop edi
mov eax, esi
pop esi
pop ebx
ret