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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x14], 0
jne 0x443ffc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0
push ebx
call fcn.004a3000
mov edx, dword [ebp + 0x10]
add esp, 0xc
push 0
push edx
push esi
mov esi, dword [ebp + 0x14]
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x4440bb
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x30]
test dl, 6
je 0x4440af
shr edx, 2
test dl, 1
je 0x4440af
call fcn.004447f0
mov ebx, eax
mov dword [ebp - 4], eax
lea eax, [ebx + 1]
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x444050
sub ebx, eax
xor edi, edi
mov eax, dword [ebp + 0x10]
cmp dword [eax], edi
jbe 0x4440bb
mov ecx, dword [esi + 0x10]
xor edx, edx
add ecx, edi
mov esi, 0x400
and ecx, 0x3ff
mov eax, ecx
sub esi, ecx
div ebx
lea eax, [esi + edi]
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
cmp eax, ecx
jbe 0x44408d
mov esi, ecx
sub esi, edi
mov ecx, dword [ebp + 8]
mov edx, esi
push dword [ebp + 0xc]
push dword [ebp - 4]
lea ecx, [edi + ecx]
call fcn.004081e0
add edi, esi
add esp, 8
mov esi, dword [ebp + 0x10]
cmp edi, dword [esi]
mov esi, dword [ebp + 0x14]
jb 0x444062
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4440bb
add dword [esi + 0x10], eax
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov edi, dword [eax + 0x38]
cmp edx, edi
cmova edx, edi
test ecx, ecx
je 0x4440d6
mov eax, dword [ecx]
push edi
push edx
call dword [eax]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45b9d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x3c]
push esi
call fcn.0045bb80
test al, al
je 0x45ba26
push dword [esi]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.LanguageSupport.cpp
push str.Using_command_line_language__d
push eax
mov dword [esp + 0x18], 0x34
call fcn.0040b3b0
mov eax, dword [esi]
add esp, 0xc
mov ecx, edi
mov dword [edi + 0x38], eax
call fcn.0045c200
mov byte [edi + 0x40], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov ecx, edi
push eax
call fcn.0045bb80
test al, al
je 0x45ba6d
mov esi, dword [ebp + 8]
lea eax, [esp + 8]
push esi
push str.Using_installed_language__d
push eax
mov dword [esp + 0x14], str.LanguageSupport.cpp
mov dword [esp + 0x18], 0x43
call fcn.0040b3b0
add esp, 0xc
mov dword [edi + 0x38], esi
mov ecx, edi
call fcn.0045c200
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
lea esi, [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov ecx, edi
push esi
mov dword [esi], eax
call fcn.0045bb80
test al, al
je 0x45baba
push dword [esi]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.LanguageSupport.cpp
push str.Using_user_default_language__d
push eax
mov dword [esp + 0x18], 0x4c
call fcn.0040b3b0
add esp, 0xc
mov ecx, edi
call fcn.0045c200
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov ecx, edi
push esi
mov dword [esi], eax
call fcn.0045bb80
test al, al
je 0x45bb04
push dword [esi]
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.LanguageSupport.cpp
push str.Using_system_default_language__d
push eax
mov dword [esp + 0x18], 0x54
call fcn.0040b3b0
add esp, 0xc
mov ecx, edi
call fcn.0045c200
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.004982a5
movzx eax, ax
mov ecx, edi
push esi
mov dword [esi], eax
call fcn.0045bb80
test al, al
mov dword [esp + 8], str.LanguageSupport.cpp
lea eax, [esp + 8]
je 0x45bb4d
push dword [esi]
mov dword [esp + 0x10], 0x5c
push str.Using_system_default_UI_language__d
push eax
call fcn.0040b3b0
add esp, 0xc
mov ecx, edi
call fcn.0045c200
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [edi + 0x34]
mov dword [esp + 0x10], 0x61
push str.Using_default_language__d
push eax
call fcn.0040b3b0
mov eax, dword [edi + 0x34]
add esp, 0xc
mov ecx, edi
mov dword [esi], eax
call fcn.0045c200
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4678f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfde8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ecx], vtable.CParcelHandler.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], 1
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], vtable.CRebootHandler.0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov byte [ecx + 0x30], 0
mov dword [ecx + 0x34], vtable.CProxyExeCallbackWrapper.0
mov dword [ecx], vtable.CExeParcelHandler.2.0
mov dword [ecx + 0x14], vtable.CExeParcelHandler.1.0
mov dword [ecx + 0x34], vtable.CExeParcelHandler.0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x467a30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfe53
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ecx], vtable.CParcelHandler.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], 1
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], vtable.CMsiUIHandlerProxy.0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 1
mov word [ecx + 0x28], 0x100
mov byte [ebp - 4], 1
mov al, byte [ebp + 0xc]
mov dword [ecx + 0x2c], vtable.CRebootHandler.0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov byte [ecx + 0x48], 0
mov dword [ecx], vtable.CMsiParcelHandler.2.0
mov dword [ecx + 0x14], vtable.CMsiParcelHandler.1.0
mov dword [ecx + 0x2c], vtable.CMsiParcelHandler.0
mov byte [ecx + 0x4c], al
mov word [ecx + 0x4d], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x467db0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cff11
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ecx], vtable.CParcelHandler.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], 1
mov dword [ebp - 4], 0
mov dword [ecx + 0x14], vtable.CRebootHandler.0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov byte [ecx + 0x30], 0
mov dword [ecx + 0x34], vtable.CIspProxyUIHandler.0
mov byte [ebp - 4], 1
lea eax, [ecx + 0x38]
mov dword [ecx], vtable.CIspParcelHandler.2.0
mov dword [ecx + 0x14], vtable.CIspParcelHandler.1.0
mov dword [ecx + 0x34], vtable.CIspParcelHandler.0
mov dword [ebp + 8], eax
mov dword [eax], 0
mov byte [ebp - 4], 3
lea eax, [ecx + 0x44]
mov byte [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ebp + 8], eax
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x468e10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d08fa
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xf
lea ecx, [esi + 0x2e0]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xf
call fcn.00404c20
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x2b0]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xe
call fcn.00404c20
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x280]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xd
call fcn.00404c20
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x250]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
call fcn.00404c20
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x220]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
call fcn.00404c20
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x1f0]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
call fcn.00404c20
mov byte [ebp - 4], 9
lea ecx, [esi + 0x1c0]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
call fcn.00404c20
mov byte [ebp - 4], 8
lea ecx, [esi + 0x190]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
call fcn.00404c20
mov byte [ebp - 4], 7
lea ecx, [esi + 0x160]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
call fcn.00404c20
mov byte [ebp - 4], 6
lea ecx, [esi + 0x130]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
call fcn.00404c20
mov byte [ebp - 4], 5
lea ecx, [esi + 0x100]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
call fcn.00404c20
mov byte [ebp - 4], 4
lea ecx, [esi + 0xd0]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.00404c20
mov byte [ebp - 4], 3
lea ecx, [esi + 0xa0]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
call fcn.00404c20
mov byte [ebp - 4], 2
lea ecx, [esi + 0x70]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.00404c20
mov byte [ebp - 4], 1
lea ecx, [esi + 0x40]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.00404c20
mov byte [ebp - 4], 0
lea ecx, [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0
call fcn.00404c20
mov dword [ebp - 4], 0xffffffff
mov dword [esi], vtable.CProperties.0
mov dword [ebp - 4], 0xffffffff
add esi, 4
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0x23
mov ecx, esi
mov eax, dword [esi]
push eax
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00461c90
mov dword [ebp - 4], 0xffffffff
push dword [esi]
call fcn.004a1035
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x470e50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 0
jne 0x470e65
mov eax, 0x57
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x18], 8
push esi
lea esi, [ecx + 4]
jb 0x470e73
mov eax, dword [esi]
jmp 0x470e75
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x470e8a
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x470e99
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xe
push 0x3ffe
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x470ecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
test eax, eax
je 0x470f02
mov ecx, dword [ebp - 8]
cmp ecx, 1
je 0x470ee0
cmp ecx, 5
jne 0x470f02
push ecx
lea edx, [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00470de0
add esp, 4
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push eax
mov esi, 0x32
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4795b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
mov edi, ecx
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4795f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x479681
jmp 0x4795f8
xor esi, esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi + 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], eax
test ecx, ecx
je 0x479620
push 1
push ecx
call fcn.004a1725
mov eax, dword [ebp - 0xc]
add esp, 8
mov dword [edi + 0x1c], 0
test eax, eax
je 0x479681
push eax
call fcn.004a1050
add esp, 4
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x479649
mov eax, 0xc0000017
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a103a
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push ecx
push dword [ebp - 0xc]
push eax
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47967f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a103a
mov esp, ebp
pop ebp
ret
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a103a
mov esp, ebp
pop ebp
ret
Function at 0x47cb60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d47d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
mov dword [edi], vtable.CNamedPipeHandler.0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
mov dword [edi + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x20], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [ebp - 4], eax
lea esi, [edi + 0x24]
mov dword [edi], vtable.CProxyHandler.0
mov dword [ebp + 8], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0047d4d0
mov dword [esi], eax
mov byte [ebp - 4], 3
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x47ccc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d47d3
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 8]
mov dword [edi + 0x20], eax
xor eax, eax
mov dword [edi], vtable.CNamedPipeHandler.0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 8], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [ebp - 4], eax
lea esi, [edi + 0x24]
mov dword [edi], vtable.CProxyHandler.0
mov dword [ebp + 8], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.0047d4d0
mov dword [esi], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov byte [edi + 0x2c], 0
mov dword [edi + 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x47cef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2c], 0
je 0x47cf72
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0xde55adff
push eax
push dword [esi + 0x20]
mov dword [ebp - 8], 0x55adffde
mov dword [ebp - 0x10], 4
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47cf4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x30]
mov byte [esi + 0x2c], 0
test eax, eax
je 0x47cf72
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a103a
mov esp, ebp
pop ebp
ret
Function at 0x47dd70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ecx + 0x14], 0
jne 0x47dd85
mov eax, 0x57
mov esp, ebp
pop ebp
ret
cmp dword [ecx + 0x18], 8
push esi
lea esi, [ecx + 4]
jb 0x47dd93
mov eax, dword [esi]
jmp 0x47dd95
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x47ddaa
mov eax, 2
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x47ddb9
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
push 0x3ffe
push esi
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x47ddec
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0
je 0x47de6e
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x47ddff
cmp eax, 5
jne 0x47de6e
push str.TrustedPeople
push 0x20000
push 0
push dword [ebp - 8]
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
mov esi, eax
test esi, esi
jne 0x47de34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push 0
push 3
push dword [eax + 8]
push dword [eax + 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.CRYPT32.dll_CertAddEncodedCertificateToStore]
test eax, eax
je 0x47de1c
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
test eax, eax
je 0x47de1c
push dword [ebp - 4]
xor esi, esi
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
mov esi, 0x32
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x47f190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x4e7908
mov dword [ebp - 0x34], 0x4e793c
call edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x34]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00403f10
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [esi + 8]
push 1
push 0x64
push dword [ebp + 0xc]
add ecx, 0x14
push dword [eax]
call fcn.004612f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00404c20
movzx ecx, word [ebp - 0x60]
lea eax, [ebp - 0x64]
push 0
push eax
xor edx, edx
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0x10], dl
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [ebx + 0x20]
cmovne edx, ecx
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x18], dx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x2c], 0xde55adff
mov dword [ebp - 0x20], 0x55adffde
mov dword [ebp - 0x28], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47f2be
call edi
test eax, eax
jne 0x47f2d9
push 0
lea eax, [ebp - 0x64]
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x47f2d9
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a103a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x481f80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x52a0b0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov ecx, dword [ebp + 0xc]
mov esi, dword [edi + 8]
call fcn.00403f10
lea ecx, [esp + 0x10]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [edi + 8]
push dword [eax]
lea eax, [esi + 0x20]
neg esi
sbb esi, esi
add ecx, 0x14
and esi, eax
push esi
call fcn.004610b0
mov ecx, dword [esp + 0x10]
mov esi, eax
xor eax, eax
mov dword [esp + 0x18], esi
push eax
mov word [esp + 0x20], ax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x10
lea eax, [esp + 0x30]
mov dword [esp + 0x2c], ecx
push eax
push dword [ebx + 0x20]
mov dword [esp + 0x38], 0xde55adff
mov dword [esp + 0x44], 0x55adffde
mov dword [esp + 0x3c], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48202d
call edi
test eax, eax
jne 0x48204a
push 0
lea eax, [esp + 0x18]
push eax
push 0xc
lea eax, [esp + 0x24]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48204a
call edi
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a103a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x482060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x52a0b0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 8], 0
mov ecx, dword [ebp + 0xc]
call fcn.00403f10
lea ecx, [esp + 8]
push ecx
push dword [ebp + 0x18]
mov ecx, dword [esi + 8]
push dword [ebp + 0x14]
add ecx, 0x14
push dword [ebp + 0x10]
push dword [eax]
call fcn.004612f0
mov cx, word [esp + 8]
mov esi, eax
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x14], esi
push eax
push 0x10
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0
push eax
push dword [ebx + 0x20]
mov word [esp + 0x28], cx
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0xde55adff
mov dword [esp + 0x3c], 0x55adffde
mov dword [esp + 0x34], reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], 0xc
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48210b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48212c
push 0
lea eax, [esp + 0x10]
push eax
push 0xc
lea eax, [esp + 0x1c]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x48212c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004a103a
mov esp, ebp
pop ebp
ret 0x14